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


Performing analysis on: 4FGL_J0524.6-2819_daily_bin1374
RA = 81.1732, Dec = -28.3288
tmin = 595468801, tmax = 595728001
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='263324', job_status='RUN', time_executed='2021-08-22 13:27:24.270913', time_epoch_executed='1629664044.27' WHERE source_name='4FGL J0524.6-2819' and cadence='daily' and bin_id='1374'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263324

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263324/ft1_4FGL_J0524.6-2819_daily_bin1374.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263324/ft2_4FGL_J0524.6-2819_daily_bin1374.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263324/ft1_4FGL_J0524.6-2819_daily_bin1374.fits outfile=/scratch/kocevski/263324/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin1374.fits ra=81.1732 dec=-28.3288 rad=12.0 tmin=595468801.0 tmax=595728001.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 2.71
user 2.52
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/263324/ft2_4FGL_J0524.6-2819_daily_bin1374.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/263324/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin1374.fits evtable="EVENTS" outfile="/scratch/kocevski/263324/ft1_filtered_4FGL_J0524.6-2819_daily_bin1374.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263324/ft1_filtered_4FGL_J0524.6-2819_daily_bin1374.fits" evtable="EVENTS" scfile=/scratch/kocevski/263324/ft2_4FGL_J0524.6-2819_daily_bin1374.fits sctable="SC_DATA" outfile=/scratch/kocevski/263324/ltcube_595468801_595728001_4FGL_J0524.6-2819_daily_bin1374.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/263324/ft2_4FGL_J0524.6-2819_daily_bin1374.fits
.....................!
real 12.68
user 12.34
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263324/ft1_filtered_4FGL_J0524.6-2819_daily_bin1374.fits evtable="EVENTS" scfile=/scratch/kocevski/263324/ft2_4FGL_J0524.6-2819_daily_bin1374.fits sctable="SC_DATA" expcube=/scratch/kocevski/263324/ltcube_595468801_595728001_4FGL_J0524.6-2819_daily_bin1374.fits outfile=/scratch/kocevski/263324/expmap_595468801_595728001_4FGL_J0524.6-2819_daily_bin1374.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/263324/ltcube_595468801_595728001_4FGL_J0524.6-2819_daily_bin1374.fits
.....................!
real 190.53
user 186.13
sys 4.07

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

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263324/ft1_filtered_4FGL_J0524.6-2819_daily_bin1374.fits scfile=/scratch/kocevski/263324/ft2_4FGL_J0524.6-2819_daily_bin1374.fits outfile=/scratch/kocevski/263324/cmap_HighResolution_595468801_595728001_4FGL_J0524.6-2819_daily_bin1374.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=81.1732 yref=-28.3288 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/263324/ft1_filtered_4FGL_J0524.6-2819_daily_bin1374.fits evtable="EVENTS" scfile=/scratch/kocevski/263324/ft2_4FGL_J0524.6-2819_daily_bin1374.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263324/Model_4FGL_J0524.6-2819_daily_bin1374.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/263324/ft1_filtered_4FGL_J0524.6-2819_daily_bin1374.fits.....................!
real 96.92
user 95.43
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    195.49       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.949       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16688E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    2.4221       1.0000         .10000E-03   10000.    
     6 'Prefactor '    60.089       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8069       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.0883       1.0000         .10000E-03   10000.    
    11 'Prefactor '    61.633       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .71087       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.7292       1.0000         .10000E-03   10000.    
    15 'norm      '    3.6085       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.4476       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.086       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.619       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.085       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0513       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0574       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=   8464.431     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     2943 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          195.50        152.66        .11145E-05    .13595E-04
   2  Prefactor     .10000E-03    60.223        .33364E-05** at limit **
   3  norm          11.948        4.9421        .11468E-07    .23788E-04
   4  Prefactor     .10006E-03    3.0072       -.16638E-06** at limit **
   5  norm          2.4221        .34836        .76699E-09   -.20872E-03
   6  Prefactor     60.098        40.944        .43895E-05    .20721E-03
   7  Prefactor     1.8096        18.690        .24636E-05   -.31816E-03
   8  norm          .10000E-03    34.500       -.87595E-06** at limit **
   9  Prefactor     .10000E-03    2.1013       -.57617E-07** at limit **
  10  norm          3.0890        1.9294       -.15398E-06   -.87389E-03
  11  Prefactor     61.640        35.383        .24257E-05    .16199E-03
  12  Prefactor     .10000E-03    1.7093       -.23354E-07** at limit **
  13  Prefactor     .70211        9.0409        .24722E-05   -.65243E-03
  14  Prefactor     9.7297        8.9904       -.47311E-06   -.14660E-03
  15  norm          3.6091        5.0115        .16280E-06   -.40968E-03
  16  Prefactor     .10000E-03    8.4051       -.36923E-07** at limit **
  17  norm          2.4480        2.0986       -.29788E-07   -.22038E-03
  18  norm          .10000E-03    3.1295        .57487E-08** at limit **
  19  Prefactor     16.087        10.411       -.12137E-05   -.30088E-03
  20  Prefactor     15.620        58.126        .16871E-05    .30310E-05
  21  Prefactor     .10000E-03    13.279       -.46222E-07** at limit **
  22  Prefactor     .10000E-03    93.675       -.31537E-06** at limit **
  23  Prefactor     25.065        25.717       -.26869E-05   -.15604E-03
  24  Normalizat    1.0511        .19974       -.10004E-05   -.14878E-03
  25  Prefactor     1.0574        .15214        .22157E-06   -.23850E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 195.496
  Prefactor  = 0.000100001
  norm       = 11.9477
  Prefactor  = 0.00010006
  norm       = 2.4221
  Prefactor  = 60.0985
  Prefactor  = 1.80958
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.08904
  Prefactor  = 61.6397
  Prefactor  = 0.0001
  Prefactor  = 0.702108
  Prefactor  = 9.72972
  norm       = 3.60906
  Prefactor  = 0.0001
  norm       = 2.44796
  norm       = 0.0001
  Prefactor  = 16.0874
  Prefactor  = 15.6205
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 25.0648
  Normalizat = 1.05109
  Prefactor  = 1.05743
 **********
 **   18 **HESSE 
 **********

 FCN=   8464.431     FROM HESSE     STATUS=OK           427 CALLS     3370 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          195.50        152.69        .28892E-04   -1.2902    
   2  Prefactor     .10000E-03    60.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.948        4.8936        .11589E-03   -1.5017    
   4  Prefactor     .10006E-03    68.605        .29542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.4221        .34901        .19705E-04   -1.5397    
   6  Prefactor     60.098        41.087        .51759E-04   -1.4156    
   7  Prefactor     1.8096        77.477        .15544E-02   -1.5439    
   8  norm          .10000E-03    34.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.1566        .25984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.0890        1.9203        .92983E-04   -1.5356    
  11  Prefactor     61.640        35.433        .51111E-04   -1.4136    
  12  Prefactor     .10000E-03    1.7145        .11739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .70211        46.021        .48159E-02   -1.5540    
  14  Prefactor     9.7297        8.9512        .12847E-03   -1.5084    
  15  norm          3.6091        4.9946        .20350E-03   -1.5328    
  16  Prefactor     .10000E-03    8.4148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.4480        2.0957        .11413E-03   -1.5395    
  18  norm          .10000E-03    3.1322        .15895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.087        10.451        .99860E-04   -1.4906    
  20  Prefactor     15.620        58.176        .10134E-03   -1.4917    
  21  Prefactor     .10000E-03    13.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    95.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     25.065        25.804        .79981E-04   -1.4706    
  24  Normalizat    1.0511        .23593        .30779E-03   -.91338    
  25  Prefactor     1.0574        .18213        .25370E-03   -.90839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03302e-08
Minuit parameter uncertainties:
  1  152.998
  2  0.000388177
  3  4.8938
  4  0.00406533
  5  0.349014
  6  41.1067
  7  23.7135
  8  7.09895e-05
  9  1.23874e-05
  10  1.92034
  11  35.4453
  12  4.85893e-06
  13  11.3771
  14  8.95239
  15  4.99521
  16  1.22343e-05
  17  2.09581
  18  3.02276e-06
  19  10.452
  20  58.3887
  21  6.6035e-06
  22  0.000454706
  23  25.8154
  24  0.236163
  25  0.182235
Done.

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

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  6.164e+01  3.545e+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:  1.057e+00  1.822e-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.051e+00  2.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.13
Ra Dec: 81.173 -28.329
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 7.24e-08 +/- 4.16e-08
Energy Flux (Fixed Index): 1.95e-05 +/- 1.12e-05

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) = 8463.87695513
delta logL = 0.553979392575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8463.8537235
delta logL = 0.577211020245

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    74.857       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0611       1.0000          .0000       10.000    
     3 'Normalizat'    1.0857       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0391       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=   8463.854     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      299 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     74.830        44.995        .23204E-03   -.91131E-05
   2  Index         2.0613        .46064        .79859E-02   -.10663E-04
   3  Normalizat    1.0855        .21716        .30348E-03   -.87959E-04
   4  Prefactor     1.0392        .17830        .25547E-03    .60700E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 74.8298
  Index      = 2.06132
  Normalizat = 1.08554
  Prefactor  = 1.03916
 **********
 **   18 **HESSE 
 **********

 FCN=   8463.854     FROM HESSE     STATUS=OK            23 CALLS      322 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     74.830        45.105        .92814E-05   -1.3976    
   2  Index         2.0613        .46163        .31944E-03   -.62826    
   3  Normalizat    1.0855        .21737        .12139E-04   -.90218    
   4  Prefactor     1.0392        .17847        .10219E-04   -.91435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.7636e-11
Minuit parameter uncertainties:
  1  45.1258
  2  0.462637
  3  0.21755
  4  0.17857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263324': 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) = 8463.85372304
delta logL = 0.577211487685

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  7.483e+01  4.513e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.061e+00  4.626e-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:  1.039e+00  1.786e-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.086e+00  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.24
Ra Dec: 81.173 -28.329
Photon Index (Free Index): 2.06 +/- 0.46
Photon Flux (Free Index): 4.61e-08 +/- 3.80e-08
Energy Flux (Free Index): 2.75e-05 +/- 2.12e-05

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/263324/cmap_HighResolution_595468801_595728001_4FGL_J0524.6-2819_daily_bin1374.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.24e-08', energy_flux2='2.75e-05', photon_flux_error='4.16e-08', dlogl='5.77e-01', energy_flux='1.95e-05', photon_flux2='4.61e-08', job_status='DONE', time_completed='2021-08-22 13:40:12.904887', photon_index_error2='0.46', photon_index2='2.06', ts='7.13', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='2.12e-05', EG='1.05', time_epoch_completed='1629664812.9', return_code='0', job_id='263324', GAL2='1.04', EG2='1.09', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='3.80e-08', ts2='8.24', photon_index='2.57' WHERE bin_id='1374' AND source_name='4FGL J0524.6-2819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 13:40:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 263324: <4FGL_J0524.6-2819_daily_bin1374> in cluster <slac> Done

Job <4FGL_J0524.6-2819_daily_bin1374> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 22 13:26:13 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 13:26:15 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:26:15 2021
Terminated at Sun Aug 22 13:40:13 2021
Results reported at Sun Aug 22 13:40:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0524.6-2819_daily_bin1374 81.1732 -28.3288 595468801 595728001 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 :                                   761.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             371.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            840 sec.

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

