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


Performing analysis on: 4FGL_J0521.8-3848_daily_bin1447
RA = 80.4718, Dec = -38.8066
tmin = 614390401, tmax = 614649601
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='245006', job_status='RUN', time_executed='2021-08-22 12:25:59.213313', time_epoch_executed='1629660359.21' WHERE source_name='4FGL J0521.8-3848' and cadence='daily' and bin_id='1447'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/245006

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/245006/ft1_4FGL_J0521.8-3848_daily_bin1447.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/245006/ft2_4FGL_J0521.8-3848_daily_bin1447.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/245006/ft1_4FGL_J0521.8-3848_daily_bin1447.fits outfile=/scratch/kocevski/245006/ft1_filteredMKT_4FGL_J0521.8-3848_daily_bin1447.fits ra=80.4718 dec=-38.8066 rad=12.0 tmin=614390401.0 tmax=614649601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.98
user 3.70
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/245006/ft2_4FGL_J0521.8-3848_daily_bin1447.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/245006/ft2_4FGL_J0521.8-3848_daily_bin1447.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/245006/ft1_filteredMKT_4FGL_J0521.8-3848_daily_bin1447.fits evtable="EVENTS" outfile="/scratch/kocevski/245006/ft1_filtered_4FGL_J0521.8-3848_daily_bin1447.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.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/245006/ft1_filtered_4FGL_J0521.8-3848_daily_bin1447.fits" evtable="EVENTS" scfile=/scratch/kocevski/245006/ft2_4FGL_J0521.8-3848_daily_bin1447.fits sctable="SC_DATA" outfile=/scratch/kocevski/245006/ltcube_614390401_614649601_4FGL_J0521.8-3848_daily_bin1447.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/245006/ft2_4FGL_J0521.8-3848_daily_bin1447.fits
.....................!
real 12.00
user 11.65
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/245006/ft1_filtered_4FGL_J0521.8-3848_daily_bin1447.fits evtable="EVENTS" scfile=/scratch/kocevski/245006/ft2_4FGL_J0521.8-3848_daily_bin1447.fits sctable="SC_DATA" expcube=/scratch/kocevski/245006/ltcube_614390401_614649601_4FGL_J0521.8-3848_daily_bin1447.fits outfile=/scratch/kocevski/245006/expmap_614390401_614649601_4FGL_J0521.8-3848_daily_bin1447.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/245006/ltcube_614390401_614649601_4FGL_J0521.8-3848_daily_bin1447.fits
.....................!
real 190.44
user 185.45
sys 4.63

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 194 point sources and 0 extended sources

Setting source of interest to:
4FGL J0521.8-3848 @ 80.4718 -38.8066

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/245006/ft1_filtered_4FGL_J0521.8-3848_daily_bin1447.fits scfile=/scratch/kocevski/245006/ft2_4FGL_J0521.8-3848_daily_bin1447.fits outfile=/scratch/kocevski/245006/cmap_614390401_614649601_4FGL_J0521.8-3848_daily_bin1447.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=80.4718 yref=-38.8066 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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/245006/ft1_filtered_4FGL_J0521.8-3848_daily_bin1447.fits scfile=/scratch/kocevski/245006/ft2_4FGL_J0521.8-3848_daily_bin1447.fits outfile=/scratch/kocevski/245006/cmap_HighResolution_614390401_614649601_4FGL_J0521.8-3848_daily_bin1447.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=80.4718 yref=-38.8066 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/245006/ft1_filtered_4FGL_J0521.8-3848_daily_bin1447.fits evtable="EVENTS" scfile=/scratch/kocevski/245006/ft2_4FGL_J0521.8-3848_daily_bin1447.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/245006/Model_4FGL_J0521.8-3848_daily_bin1447.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/245006/ft1_filtered_4FGL_J0521.8-3848_daily_bin1447.fits.....................!
real 87.30
user 85.89
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/245006/ft1_filtered_4FGL_J0521.8-3848_daily_bin1447.fits', '/scratch/kocevski/245006/ft2_4FGL_J0521.8-3848_daily_bin1447.fits', expMap='/scratch/kocevski/245006/expmap_614390401_614649601_4FGL_J0521.8-3848_daily_bin1447.fits', expCube='/scratch/kocevski/245006/ltcube_614390401_614649601_4FGL_J0521.8-3848_daily_bin1447.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/245006/Model_4FGL_J0521.8-3848_daily_bin1447.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0521.8-3848'

4FGL J0521.8-3848
   Spectrum: PowerLaw
282    Prefactor:  1.199e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  2.594e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  7.225e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/245006/ft1_filtered_4FGL_J0521.8-3848_daily_bin1447.fits
Spacecraft file(s): /scratch/kocevski/245006/ft2_4FGL_J0521.8-3848_daily_bin1447.fits
Exposure map: /scratch/kocevski/245006/expmap_614390401_614649601_4FGL_J0521.8-3848_daily_bin1447.fits
Exposure cube: /scratch/kocevski/245006/ltcube_614390401_614649601_4FGL_J0521.8-3848_daily_bin1447.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/245006/Model_4FGL_J0521.8-3848_daily_bin1447.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) = 9003.24123061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1852       1.0000         .10000E-03   10000.    
     2 'norm      '    .47820       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    26.177       1.0000         .10000E-03   10000.    
     5 'norm      '    3.3801       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.7556       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .93708E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2478       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4856       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.349       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1092       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2551       1.0000         .10000E-03   10000.    
    15 'norm      '    5.8461       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    22.893       1.0000         .10000E-03   10000.    
    18 'norm      '    .83537       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.4076       1.0000         .10000E-03   10000.    
    22 'norm      '    .10233E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.0421       1.0000         .10000E-03   10000.    
    25 'norm      '    3.4279       1.0000         .10000E-03   10000.    
    26 'norm      '    5.2023       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .23850E-02   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1477       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0932       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9003.190     FROM MIGRAD    STATUS=CONVERGED    777 CALLS     3413 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1762        10.133        .51585E-05   -.29683E-03
   2  norm          .47856        .50851       -.25312E-06    .18246E-03
   3  Prefactor     .10000E-03    1.2610        .13657E-06** at limit **
   4  norm          26.176        12.736       -.95868E-07    .42037E-04
   5  norm          3.3806        2.1676        .17437E-07   -.19954E-03
   6  Prefactor     9.7526        4.4110       -.71524E-07    .28769E-03
   7  Prefactor     .10000E-03    34.246        .58932E-06** at limit **
   8  norm          .10000E-03    3.6519        .16249E-06** at limit **
   9  Prefactor     .10000E-03    37.821       -.10821E-06** at limit **
  10  Prefactor     3.2467        4.7542        .15726E-06   -.14121E-03
  11  Prefactor     4.4737        30.014        .23698E-06   -.55848E-04
  12  Prefactor     17.326        28.552        .28613E-06   -.27412E-03
  13  Prefactor     6.1084        2.7341        .23712E-07   -.35357E-04
  14  Prefactor     5.2556        3.7004        .52004E-07    .19128E-03
  15  norm          5.8468        2.5060        .12770E-06    .10939E-02
  16  Prefactor     .10000E-03    66.305        .38686E-07** at limit **
  17  norm          22.893        6.3965        .29161E-07   -.91187E-05
  18  norm          .83432        2.4700        .11639E-06   -.12810E-03
  19  Prefactor     .10000E-03    2.5240        .61463E-08** at limit **
  20  Prefactor     .10000E-03    3.2607        .85353E-08** at limit **
  21  Prefactor     9.4269        6.7672        .16370E-05    .14059E-02
  22  norm          .10000E-03    2.5013       -.24430E-05** at limit **
  23  Prefactor     .10000E-03    5.7832        .11569E-08** at limit **
  24  norm          6.0419        1.4249        .29995E-08    .22204E-03
  25  norm          3.4280        1.8868        .65150E-07    .38540E-03
  26  norm          5.2006        11.820        .14585E-05   -.10571E-03
  27  Prefactor     .10000E-03    9.6395        .31530E-07** at limit **
  28  Prefactor     .10006E-03    5.6399       -.19212E-05** at limit **
  29  Normalizat    1.1478        .19972       -.60963E-06    .52198E-03
  30  Prefactor     1.0933        .15668        .15585E-06    .50395E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.1762
  norm       = 0.478564
  Prefactor  = 0.0001
  norm       = 26.1762
  norm       = 3.38058
  Prefactor  = 9.75259
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.24667
  Prefactor  = 4.4737
  Prefactor  = 17.3256
  Prefactor  = 6.10844
  Prefactor  = 5.25555
  norm       = 5.84683
  Prefactor  = 0.0001
  norm       = 22.8925
  norm       = 0.834321
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.42694
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.04186
  norm       = 3.42802
  norm       = 5.20057
  Prefactor  = 0.0001
  Prefactor  = 0.000100056
  Normalizat = 1.14781
  Prefactor  = 1.09325
 **********
 **   18 **HESSE 
 **********

 FCN=   9003.190     FROM HESSE     STATUS=OK           592 CALLS     4005 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1762        10.588        .11353E-02   -1.5352    
   2  norm          .47856        .49411        .60756E-03   -1.5570    
   3  Prefactor     .10000E-03    1.2749        .10388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          26.176        12.727        .78298E-04   -1.4684    
   5  norm          3.3806        2.1821        .95023E-04   -1.5340    
   6  Prefactor     9.7526        4.4674        .10555E-03   -1.5083    
   7  Prefactor     .10000E-03    35.267        .41609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.6898        .17672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    37.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.2467        4.7556        .22474E-03   -1.5348    
  11  Prefactor     4.4737        29.940        .19011E-03   -1.5285    
  12  Prefactor     17.326        28.261        .96157E-04   -1.4875    
  13  Prefactor     6.1084        2.7317        .98853E-04   -1.5214    
  14  Prefactor     5.2556        3.6940        .14262E-03   -1.5249    
  15  norm          5.8468        2.5058        .91083E-04   -1.5224    
  16  Prefactor     .10000E-03    68.498        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          22.893        6.1295        .83716E-04   -1.4751    
  18  norm          .83432        2.3916        .22736E-03   -1.5525    
  19  Prefactor     .10000E-03    2.5498        .14705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.2632        .16731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.4269        7.1438        .13066E-03   -1.5094    
  22  norm          .10000E-03    5.1292        .26557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.7839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.0419        1.4235        .51968E-04   -1.5216    
  25  norm          3.4280        1.8857        .93241E-04   -1.5338    
  26  norm          5.2006        11.884        .88121E-03   -1.5252    
  27  Prefactor     .10000E-03    9.6815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10006E-03    33.219        .40116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1478        .23539        .31364E-03   -.88231    
  30  Prefactor     1.0933        .18505        .27077E-03   -.89683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13349e-09
Minuit parameter uncertainties:
  1  10.5938
  2  0.494116
  3  7.26242e-06
  4  12.7285
  5  2.18214
  6  4.46759
  7  5.19987e-05
  8  1.57846e-05
  9  0.00035569
  10  4.75614
  11  23.1633
  12  28.2831
  13  2.73173
  14  3.69421
  15  2.50581
  16  0.000174853
  17  6.12971
  18  2.39187
  19  1.56035e-08
  20  3.39016e-07
  21  7.14441
  22  5.77568e-05
  23  5.33324e-06
  24  1.42346
  25  1.88578
  26  11.8894
  27  1.17876e-05
  28  0.00272236
  29  0.235604
  30  0.185159
Done.

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

Extracting fit parameters...

4FGL J0521.8-3848
   Spectrum: PowerLaw
282    Prefactor:  5.256e+00  3.694e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  2.594e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  7.225e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
635    Prefactor:  1.093e+00  1.852e-01  0.000e+00  1.000e+01 ( 1.000e+00)
636        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
637        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
634   Normalization:  1.148e+00  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.70
Ra Dec: 80.472 -38.807
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 5.58e-08 +/- 3.92e-08
Energy Flux (Fixed Index): 1.47e-05 +/- 1.03e-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) = 9003.02640678
delta logL = 0.164019551836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9003.02240704
delta logL = 0.16801929434

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9610       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1545       1.0000          .0000       10.000    
     3 'Normalizat'    1.1724       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0807       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9003.022     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      301 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9714        4.3891        .82221E-03   -.69771E-04
   2  Index         2.1567        .71917        .10684E-01    .44917E-04
   3  Normalizat    1.1723        .21325        .31089E-03   -.12557E-03
   4  Prefactor     1.0807        .17840        .27211E-03   -.48965E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.97141
  Index      = 2.15674
  Normalizat = 1.17226
  Prefactor  = 1.08068
 **********
 **   18 **HESSE 
 **********

 FCN=   9003.022     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9714        4.4072        .32888E-04   -1.5219    
   2  Index         2.1567        .72182        .42737E-03   -.60487    
   3  Normalizat    1.1723        .21335        .12436E-04   -.87464    
   4  Prefactor     1.0807        .17849        .54423E-04   -.90086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.07615e-10
Minuit parameter uncertainties:
  1  4.40747
  2  0.725575
  3  0.213506
  4  0.178589
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/245006': 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) = 9003.02240023
delta logL = 0.168026104853

Extracting fit parameters...

4FGL J0521.8-3848
   Spectrum: PowerLaw
282    Prefactor:  5.971e+00  4.407e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  2.157e+00  7.256e-01  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  7.225e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
635    Prefactor:  1.081e+00  1.786e-01  0.000e+00  1.000e+01 ( 1.000e+00)
636        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
637        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
634   Normalization:  1.172e+00  2.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.03
Ra Dec: 80.472 -38.807
Photon Index (Free Index): 2.16 +/- 0.73
Photon Flux (Free Index): 3.67e-08 +/- 4.24e-08
Energy Flux (Free Index): 1.79e-05 +/- 1.64e-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/245006/cmap_HighResolution_614390401_614649601_4FGL_J0521.8-3848_daily_bin1447.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.58e-08', energy_flux2='1.79e-05', photon_flux_error='3.92e-08', dlogl='1.68e-01', energy_flux='1.47e-05', photon_flux2='3.67e-08', job_status='DONE', time_completed='2021-08-22 12:42:20.151824', photon_index_error2='0.73', photon_index2='2.16', ts='4.70', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.64e-05', EG='1.15', time_epoch_completed='1629661340.15', return_code='0', job_id='245006', GAL2='1.08', EG2='1.17', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='4.24e-08', ts2='5.03', photon_index='2.59' WHERE bin_id='1447' AND source_name='4FGL J0521.8-3848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 12:42:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 245006: <4FGL_J0521.8-3848_daily_bin1447> in cluster <slac> Done

Job <4FGL_J0521.8-3848_daily_bin1447> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 22 12:25:47 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 12:25: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 12:25:48 2021
Terminated at Sun Aug 22 12:42:21 2021
Results reported at Sun Aug 22 12:42:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0521.8-3848_daily_bin1447 80.4718 -38.8066 614390401 614649601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0521.8-3848 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   973.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             363.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            994 sec.

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

