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


Performing analysis on: 4FGL_J0521.8-3848_daily_bin1142
RA = 80.4718, Dec = -38.8066
tmin = 535334401, tmax = 535593601
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='243341', job_status='RUN', time_executed='2021-08-22 12:23:17.250131', time_epoch_executed='1629660197.25' WHERE source_name='4FGL J0521.8-3848' and cadence='daily' and bin_id='1142'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/243341

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/243341/ft1_4FGL_J0521.8-3848_daily_bin1142.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/243341/ft2_4FGL_J0521.8-3848_daily_bin1142.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/243341/ft1_4FGL_J0521.8-3848_daily_bin1142.fits outfile=/scratch/kocevski/243341/ft1_filteredMKT_4FGL_J0521.8-3848_daily_bin1142.fits ra=80.4718 dec=-38.8066 rad=12.0 tmin=535334401.0 tmax=535593601.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 9.86
user 4.82
sys 5.00

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/243341/ft2_4FGL_J0521.8-3848_daily_bin1142.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/243341/ft1_filteredMKT_4FGL_J0521.8-3848_daily_bin1142.fits evtable="EVENTS" outfile="/scratch/kocevski/243341/ft1_filtered_4FGL_J0521.8-3848_daily_bin1142.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 5.36
user 0.33
sys 4.97

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/243341/ft1_filtered_4FGL_J0521.8-3848_daily_bin1142.fits" evtable="EVENTS" scfile=/scratch/kocevski/243341/ft2_4FGL_J0521.8-3848_daily_bin1142.fits sctable="SC_DATA" outfile=/scratch/kocevski/243341/ltcube_535334401_535593601_4FGL_J0521.8-3848_daily_bin1142.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/243341/ft2_4FGL_J0521.8-3848_daily_bin1142.fits
.....................!
real 17.05
user 11.30
sys 5.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/243341/ft1_filtered_4FGL_J0521.8-3848_daily_bin1142.fits evtable="EVENTS" scfile=/scratch/kocevski/243341/ft2_4FGL_J0521.8-3848_daily_bin1142.fits sctable="SC_DATA" expcube=/scratch/kocevski/243341/ltcube_535334401_535593601_4FGL_J0521.8-3848_daily_bin1142.fits outfile=/scratch/kocevski/243341/expmap_535334401_535593601_4FGL_J0521.8-3848_daily_bin1142.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/243341/ltcube_535334401_535593601_4FGL_J0521.8-3848_daily_bin1142.fits
.....................!
real 198.03
user 186.54
sys 11.09

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/243341/ft1_filtered_4FGL_J0521.8-3848_daily_bin1142.fits scfile=/scratch/kocevski/243341/ft2_4FGL_J0521.8-3848_daily_bin1142.fits outfile=/scratch/kocevski/243341/cmap_535334401_535593601_4FGL_J0521.8-3848_daily_bin1142.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 5.71
user 0.36
sys 4.86

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/243341/ft1_filtered_4FGL_J0521.8-3848_daily_bin1142.fits scfile=/scratch/kocevski/243341/ft2_4FGL_J0521.8-3848_daily_bin1142.fits outfile=/scratch/kocevski/243341/cmap_HighResolution_535334401_535593601_4FGL_J0521.8-3848_daily_bin1142.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 4.86
user 0.38
sys 4.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/243341/ft1_filtered_4FGL_J0521.8-3848_daily_bin1142.fits evtable="EVENTS" scfile=/scratch/kocevski/243341/ft2_4FGL_J0521.8-3848_daily_bin1142.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/243341/Model_4FGL_J0521.8-3848_daily_bin1142.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/243341/ft1_filtered_4FGL_J0521.8-3848_daily_bin1142.fits.....................!
real 55.85
user 47.49
sys 7.49

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/243341/ft1_filtered_4FGL_J0521.8-3848_daily_bin1142.fits', '/scratch/kocevski/243341/ft2_4FGL_J0521.8-3848_daily_bin1142.fits', expMap='/scratch/kocevski/243341/expmap_535334401_535593601_4FGL_J0521.8-3848_daily_bin1142.fits', expCube='/scratch/kocevski/243341/ltcube_535334401_535593601_4FGL_J0521.8-3848_daily_bin1142.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/243341/Model_4FGL_J0521.8-3848_daily_bin1142.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/243341/ft1_filtered_4FGL_J0521.8-3848_daily_bin1142.fits
Spacecraft file(s): /scratch/kocevski/243341/ft2_4FGL_J0521.8-3848_daily_bin1142.fits
Exposure map: /scratch/kocevski/243341/expmap_535334401_535593601_4FGL_J0521.8-3848_daily_bin1142.fits
Exposure cube: /scratch/kocevski/243341/ltcube_535334401_535593601_4FGL_J0521.8-3848_daily_bin1142.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/243341/Model_4FGL_J0521.8-3848_daily_bin1142.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) = 4216.04052575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.091       1.0000         .10000E-03   10000.    
     2 'norm      '    .68865       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.7245       1.0000         .10000E-03   10000.    
     4 'norm      '    14.374       1.0000         .10000E-03   10000.    
     5 'norm      '    5.0456       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .91381       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10902E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.8588       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0868       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4456       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8203       1.0000         .10000E-03   10000.    
    15 'norm      '    15.477       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.5895       1.0000         .10000E-03   10000.    
    18 'norm      '    1.4464       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .29813E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    12.841       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.3805       1.0000         .10000E-03   10000.    
    25 'norm      '    .48990       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.7655       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1329       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .83206       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=   4215.932     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     3341 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.093        17.056       -.28761E-07    .40806E-06
   2  norm          .68835        .69436       -.14931E-07   -.64941E-04
   3  Prefactor     8.7230        6.3272        .42573E-06    .15445E-03
   4  norm          14.375        14.105       -.34554E-07    .90425E-06
   5  norm          5.0464        2.7924       -.21221E-06   -.27334E-04
   6  Prefactor     .91029        6.9500        .13616E-05    .26482E-04
   7  Prefactor     .10000E-03    62.968       -.11595E-04** at limit **
   8  norm          4.8528        7.5659       -.24145E-06    .18414E-03
   9  Prefactor     .10000E-03    62.072       -.67931E-05** at limit **
  10  Prefactor     1.0866        8.3986        .58807E-06   -.14764E-03
  11  Prefactor     .10000E-03    26.512       -.12621E-04** at limit **
  12  Prefactor     .10000E-03    29.733       -.39329E-05** at limit **
  13  Prefactor     6.4446        4.2855       -.13691E-05   -.17723E-03
  14  Prefactor     1.8163        2.7598        .13134E-05   -.28654E-02
  15  norm          15.476        5.2207       -.77663E-07   -.47097E-03
  16  Prefactor     .10000E-03    16.804        .85379E-05** at limit **
  17  norm          1.5900        3.4204        .47656E-06    .30344E-04
  18  norm          1.4464        2.9470       -.74487E-07   -.27052E-04
  19  Prefactor     .10001E-03    8.4490       -.62881E-06** at limit **
  20  Prefactor     .10000E-03    38.883        .26000E-04** at limit **
  21  Prefactor     .10000E-03    6.8083        .20581E-07** at limit **
  22  norm          12.841        8.1772       -.36722E-07   -.14133E-03
  23  Prefactor     .10000E-03    19.452       -.35097E-05** at limit **
  24  norm          2.3803        1.1999        .54136E-07    .34072E-04
  25  norm          .48870        2.7394       -.59266E-06    .45039E-04
  26  norm          .10000E-03    8.6260        .24131E-06** at limit **
  27  Prefactor     .10000E-03    12.853       -.25904E-05** at limit **
  28  Prefactor     6.7612        14.409        .34585E-06    .16207E-04
  29  Normalizat    1.1332        .28920        .57709E-06   -.19112E-04
  30  Prefactor     .83182        .21038       -.13604E-06    .13013E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.0929
  norm       = 0.688345
  Prefactor  = 8.72304
  norm       = 14.3751
  norm       = 5.04637
  Prefactor  = 0.910294
  Prefactor  = 0.0001
  norm       = 4.8528
  Prefactor  = 0.0001
  Prefactor  = 1.08664
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.44456
  Prefactor  = 1.81631
  norm       = 15.4755
  Prefactor  = 0.0001
  norm       = 1.58998
  norm       = 1.44644
  Prefactor  = 0.000100007
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 12.8412
  Prefactor  = 0.0001
  norm       = 2.3803
  norm       = 0.488699
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.76118
  Normalizat = 1.13321
  Prefactor  = 0.831821
 **********
 **   18 **HESSE 
 **********

 FCN=   4215.932     FROM HESSE     STATUS=OK           598 CALLS     3939 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.093        17.003        .81611E-04   -1.4726    
   2  norm          .68835        .68235        .50167E-04   -1.5542    
   3  Prefactor     8.7230        6.1584        .11618E-03   -1.5117    
   4  norm          14.375        14.069        .10565E-03   -1.4949    
   5  norm          5.0464        2.7262        .70106E-04   -1.5259    
   6  Prefactor     .91029        5.8677        .25172E-03   -1.5517    
   7  Prefactor     .10000E-03    63.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.8528        7.4142        .18249E-03   -1.5267    
   9  Prefactor     .10000E-03    62.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0866        8.3651        .36107E-03   -1.5499    
  11  Prefactor     .10000E-03    26.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    29.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.4446        4.2823        .99388E-04   -1.5200    
  14  Prefactor     1.8163        6.0881        .13283E-02   -1.5438    
  15  norm          15.476        5.3888        .79071E-04   -1.4921    
  16  Prefactor     .10000E-03    16.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5900        3.3697        .16111E-03   -1.5456    
  18  norm          1.4464        2.8958        .14596E-03   -1.5467    
  19  Prefactor     .10001E-03    37.527        .35628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    39.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.8098        .16541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          12.841        8.1871        .11178E-03   -1.4991    
  23  Prefactor     .10000E-03    19.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.3803        1.1987        .48571E-04   -1.5399    
  25  norm          .48870        4.6789        .20309E-02   -1.5568    
  26  norm          .10000E-03    8.6384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    12.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     6.7612        14.418        .15426E-03   -1.5188    
  29  Normalizat    1.1332        .33814        .29911E-03   -.88693    
  30  Prefactor     .83182        .24583        .27163E-03   -.98566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6351e-08
Minuit parameter uncertainties:
  1  17.0064
  2  0.682362
  3  6.15887
  4  14.0724
  5  2.7263
  6  4.62267
  7  0.000257757
  8  7.41562
  9  0.000250324
  10  6.03078
  11  0.000247108
  12  9.75753e-05
  13  4.28249
  14  6.09014
  15  5.38893
  16  0.000152807
  17  3.37011
  18  2.89606
  19  0.00104289
  20  0.000382112
  21  6.70356e-07
  22  8.18778
  23  8.71706e-05
  24  1.19874
  25  3.02427
  26  1.66197e-06
  27  4.73379e-05
  28  14.4253
  29  0.338788
  30  0.246158
Done.

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

Extracting fit parameters...

4FGL J0521.8-3848
   Spectrum: PowerLaw
282    Prefactor:  1.816e+00  6.090e+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:  8.318e-01  2.462e-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.133e+00  3.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 80.472 -38.807
Photon Flux Upper Limit: 1.80e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.41e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/243341/likelihoodResults_535334401_535593601_4FGL_J0521.8-3848_daily_bin1142.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) = 4214.98502454
delta logL = 0.94717658171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4214.97505722
delta logL = 0.957143903381

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1153       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1534       1.0000          .0000       10.000    
     3 'Normalizat'    1.1344       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82949       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.

 FCN=   4214.975     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      213 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1184        2.5985        .70903E-02   -.35878E-04
   2  Index         1.1539        .40127        .18447       -.60664E-04
   3  Normalizat    1.1344        .25717        .67515E-01    .73335E-05
   4  Prefactor     .82944        .20447        .44100E-01    .83575E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.11839
  Index      = 1.15387
  Normalizat = 1.13439
  Prefactor  = 0.829442
 **********
 **   18 **HESSE 
 **********

 FCN=   4214.975     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1184        4.5334        .10734E-03   -1.5417    
   2  Index         1.1539        .75114        .75757E-02   -.87763    
   3  Normalizat    1.1344        .29535        .29870E-03   -.88655    
   4  Prefactor     .82944        .23509        .27179E-03   -.98652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0078e-12
Minuit parameter uncertainties:
  1  4.53413
  2  0.758241
  3  0.295781
  4  0.235378
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/243341': 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) = 4214.975057
delta logL = 0.957144117448

Extracting fit parameters...

4FGL J0521.8-3848
   Spectrum: PowerLaw
282    Prefactor:  2.118e+00  4.534e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  1.154e+00  7.582e-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:  8.294e-01  2.354e-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.134e+00  2.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.03
Ra Dec: 80.472 -38.807
Photon Index (Free Index): 1.15 +/- 0.76
Photon Flux (Free Index): 8.83e-09 +/- 1.43e-08
Energy Flux (Free Index): 8.45e-05 +/- 1.33e-04

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/243341/cmap_HighResolution_535334401_535593601_4FGL_J0521.8-3848_daily_bin1142.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', comment='SUCCESS', energy_flux2='8.45e-05', dlogl='9.57e-01', photon_flux2='8.83e-09', job_status='DONE', time_completed='2021-08-22 12:36:21.602526', photon_index_error2='0.76', photon_index2='1.15', ts='0.11', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.80e-07', energy_flux_error2='1.33e-04', EG='1.13', time_epoch_completed='1629660981.6', return_code='0', job_id='243341', GAL2='0.83', EG2='1.13', return_code2='0', photon_flux_error2='1.43e-08', ts2='2.03', photon_index='2.59' WHERE bin_id='1142' AND source_name='4FGL J0521.8-3848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 12:36:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 243341: <4FGL_J0521.8-3848_daily_bin1142> in cluster <slac> Done

Job <4FGL_J0521.8-3848_daily_bin1142> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 22 12:20:42 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 12:20:43 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:20:43 2021
Terminated at Sun Aug 22 12:36:23 2021
Results reported at Sun Aug 22 12:36:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0521.8-3848_daily_bin1142 80.4718 -38.8066 535334401 535593601 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 :                                   831.24 sec.
    Max Memory :                                 1155 MB
    Average Memory :                             264.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            941 sec.

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

