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


Performing analysis on: 4FGL_J0521.8-3848_daily_bin1158
RA = 80.4718, Dec = -38.8066
tmin = 539481601, tmax = 539740801
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='243367', job_status='RUN', time_executed='2021-08-22 12:22:56.301254', time_epoch_executed='1629660176.3' WHERE source_name='4FGL J0521.8-3848' and cadence='daily' and bin_id='1158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/243367

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/243367/ft1_4FGL_J0521.8-3848_daily_bin1158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/243367/ft2_4FGL_J0521.8-3848_daily_bin1158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/243367/ft1_4FGL_J0521.8-3848_daily_bin1158.fits outfile=/scratch/kocevski/243367/ft1_filteredMKT_4FGL_J0521.8-3848_daily_bin1158.fits ra=80.4718 dec=-38.8066 rad=12.0 tmin=539481601.0 tmax=539740801.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 8.52
user 4.92
sys 3.50

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/243367/ft1_filtered_4FGL_J0521.8-3848_daily_bin1158.fits" evtable="EVENTS" scfile=/scratch/kocevski/243367/ft2_4FGL_J0521.8-3848_daily_bin1158.fits sctable="SC_DATA" outfile=/scratch/kocevski/243367/ltcube_539481601_539740801_4FGL_J0521.8-3848_daily_bin1158.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/243367/ft2_4FGL_J0521.8-3848_daily_bin1158.fits
.....................!
real 15.59
user 11.33
sys 4.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/243367/ft1_filtered_4FGL_J0521.8-3848_daily_bin1158.fits evtable="EVENTS" scfile=/scratch/kocevski/243367/ft2_4FGL_J0521.8-3848_daily_bin1158.fits sctable="SC_DATA" expcube=/scratch/kocevski/243367/ltcube_539481601_539740801_4FGL_J0521.8-3848_daily_bin1158.fits outfile=/scratch/kocevski/243367/expmap_539481601_539740801_4FGL_J0521.8-3848_daily_bin1158.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/243367/ltcube_539481601_539740801_4FGL_J0521.8-3848_daily_bin1158.fits
.....................!
real 195.82
user 185.04
sys 9.96

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/243367/ft1_filtered_4FGL_J0521.8-3848_daily_bin1158.fits scfile=/scratch/kocevski/243367/ft2_4FGL_J0521.8-3848_daily_bin1158.fits outfile=/scratch/kocevski/243367/cmap_539481601_539740801_4FGL_J0521.8-3848_daily_bin1158.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 3.81
user 0.36
sys 3.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/243367/ft1_filtered_4FGL_J0521.8-3848_daily_bin1158.fits scfile=/scratch/kocevski/243367/ft2_4FGL_J0521.8-3848_daily_bin1158.fits outfile=/scratch/kocevski/243367/cmap_HighResolution_539481601_539740801_4FGL_J0521.8-3848_daily_bin1158.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 3.85
user 0.37
sys 3.43

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/243367/ft1_filtered_4FGL_J0521.8-3848_daily_bin1158.fits evtable="EVENTS" scfile=/scratch/kocevski/243367/ft2_4FGL_J0521.8-3848_daily_bin1158.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/243367/Model_4FGL_J0521.8-3848_daily_bin1158.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/243367/ft1_filtered_4FGL_J0521.8-3848_daily_bin1158.fits.....................!
real 58.33
user 52.26
sys 5.57

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5277       1.0000         .10000E-03   10000.    
     2 'norm      '    .93090       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .33226       1.0000         .10000E-03   10000.    
     4 'norm      '    43.707       1.0000         .10000E-03   10000.    
     5 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7315       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1557       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .40023E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.045       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.6363       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18927E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.5373       1.0000         .10000E-03   10000.    
    18 'norm      '    2.6268       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .30430       1.0000         .10000E-03   10000.    
    25 'norm      '    5.4442       1.0000         .10000E-03   10000.    
    26 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .89375       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1540       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=   4893.619     FROM MIGRAD    STATUS=CONVERGED    820 CALLS     3386 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5295        10.911       -.74134E-06   -.48863E-04
   2  norm          .93085        .66319        .19727E-09    .53684E-04
   3  Prefactor     .32703        3.3702       -.32319E-05    .12180E-02
   4  norm          43.728        19.163        .86248E-05    .42407E-03
   5  norm          .10000E-03    .72916       -.11964E-06** at limit **
   6  Prefactor     4.7355        5.1833       -.18516E-05    .14663E-02
   7  Prefactor     .10000E-03    33.333       -.21782E-07** at limit **
   8  norm          .10000E-03    4.6158        .13494E-07** at limit **
   9  Prefactor     5.8286        203.12       -.14293E-05    .13655E-04
  10  Prefactor     .10004E-03    8.4169        .96684E-06** at limit **
  11  Prefactor     .10000E-03    18.501        .19542E-06** at limit **
  12  Prefactor     .10000E-03    12.610       -.15639E-06** at limit **
  13  Prefactor     19.046        4.8265        .94393E-06    .27312E-03
  14  Prefactor     .10000E-03    1.5100        .47516E-07** at limit **
  15  norm          3.6368        2.5880        .18485E-07   -.10130E-03
  16  Prefactor     .10000E-03    141.86        .62593E-05** at limit **
  17  norm          5.5379        5.3054        .30814E-07   -.52857E-04
  18  norm          2.6253        3.6537       -.24643E-06   -.88389E-04
  19  Prefactor     .10000E-03    5.1104        .15908E-08** at limit **
  20  Prefactor     .10000E-03    7.0580        .71510E-07** at limit **
  21  Prefactor     .10000E-03    9.4349        .26159E-06** at limit **
  22  norm          .10000E-03    4.5067        .60399E-07** at limit **
  23  Prefactor     .10000E-03    19.924       -.55662E-06** at limit **
  24  norm          .30483        1.0989       -.60948E-06   -.15382E-02
  25  norm          5.4382        3.4556        .36976E-07   -.17744E-03
  26  norm          .10000E-03    5.4162       -.51671E-07** at limit **
  27  Prefactor     .10000E-03    6.6665        .23520E-06** at limit **
  28  Prefactor     .10000E-03    10.491       -.67849E-07** at limit **
  29  Normalizat    .89364        .26757       -.16746E-05    .30863E-03
  30  Prefactor     1.1539        .20267        .36068E-06    .22138E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.52947
  norm       = 0.930846
  Prefactor  = 0.327034
  norm       = 43.7277
  norm       = 0.0001
  Prefactor  = 4.73555
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.82864
  Prefactor  = 0.000100035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0459
  Prefactor  = 0.0001
  norm       = 3.63677
  Prefactor  = 0.0001
  norm       = 5.53793
  norm       = 2.62529
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.304832
  norm       = 5.43819
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.893641
  Prefactor  = 1.15392
 **********
 **   18 **HESSE 
 **********

 FCN=   4893.619     FROM HESSE     STATUS=OK           584 CALLS     3970 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5295        10.910        .18920E-03   -1.5282    
   2  norm          .93085        .66215        .43989E-04   -1.5515    
   3  Prefactor     .32703        23.543        .20352E-02   -1.5594    
   4  norm          43.728        19.536        .60641E-04   -1.4384    
   5  norm          .10000E-03    .73353        .58265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.7355        5.1555        .13014E-03   -1.5273    
   7  Prefactor     .10000E-03    33.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.6529        .14653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.8286        202.76        .16181E-03   -1.5225    
  10  Prefactor     .10004E-03    56.180        .37838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.046        4.8297        .71796E-04   -1.4835    
  14  Prefactor     .10000E-03    1.5140        .83919E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.6368        2.5867        .90973E-04   -1.5327    
  16  Prefactor     .10000E-03    144.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.5379        5.2939        .14350E-03   -1.5237    
  18  norm          2.6253        3.6391        .14516E-03   -1.5384    
  19  Prefactor     .10000E-03    5.1549        .15435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.0674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.4649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.5745        .14491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .30483        1.1193        .13077E-03   -1.5598    
  25  norm          5.4382        3.4540        .99323E-04   -1.5242    
  26  norm          .10000E-03    5.4177        .15901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.6710        .17641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    10.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .89364        .31409        .32726E-03   -.96684    
  30  Prefactor     1.1539        .24474        .24050E-03   -.87761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30738e-08
Minuit parameter uncertainties:
  1  10.915
  2  0.66215
  3  5.551
  4  19.5386
  5  4.91945e-06
  6  5.15595
  7  0.000232366
  8  2.35979e-05
  9  69.0087
  10  0.00282227
  11  2.69932e-06
  12  3.90508e-06
  13  4.82975
  14  8.61721e-07
  15  2.58677
  16  0.000480415
  17  5.29435
  18  3.63941
  19  9.89846e-06
  20  2.67375e-06
  21  5.81085e-07
  22  5.79723e-06
  23  2.68566e-05
  24  1.11934
  25  3.45411
  26  3.45962e-06
  27  1.34223e-06
  28  1.03832e-05
  29  0.314737
  30  0.244984
Done.

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

Extracting fit parameters...

4FGL J0521.8-3848
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  8.617e-07  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.154e+00  2.450e-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:  8.936e-01  3.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 80.472 -38.807
Photon Flux Upper Limit: 8.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/243367/likelihoodResults_539481601_539740801_4FGL_J0521.8-3848_daily_bin1158.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) = 4893.62179531
delta logL = -0.00303250893739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4893.61876253
delta logL = 2.69542397291e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4893.619     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      259 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.181        .84702E-02** at limit **
   2  Index         1.8144        7.9110        .50000       -.32881E-06
   3  Normalizat    .89364        .25062E-01    .32726E-03   -.25679E-03
   4  Prefactor     1.1539        .20772E-01    .24050E-03   -.33184E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.81443
  Normalizat = 0.893636
  Prefactor  = 1.15393
 **********
 **   18 **HESSE 
 **********

 FCN=   4893.619     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      288 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    246.92        .96856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8144        8.4764        .50000       -.69075    
   3  Normalizat    .89364        .81091E-01    .13090E-04   -.96684    
   4  Prefactor     1.1539        .67214E-01    .48100E-04   -.87761    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.13083e-09
Minuit parameter uncertainties:
  1  5.76361e-05
  2  914.198
  3  0.0811022
  4  0.0672193
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/243367': 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) = 4893.61875461
delta logL = 8.18844273454e-06

Extracting fit parameters...

4FGL J0521.8-3848
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  5.764e-05  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  1.814e+00  9.142e+02  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.154e+00  6.722e-02  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:  8.936e-01  8.110e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 80.472 -38.807

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/243367/cmap_HighResolution_539481601_539740801_4FGL_J0521.8-3848_daily_bin1158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-03', job_status='DONE', photon_flux_upper_limit='8.20e-08', time_completed='2021-08-22 12:36:29.420815', job_id='243367', GAL2='1.15', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1629660989.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='8.19e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1158' AND source_name='4FGL J0521.8-3848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 12:36:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 243367: <4FGL_J0521.8-3848_daily_bin1158> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0521.8-3848_daily_bin1158 80.4718 -38.8066 539481601 539740801 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 :                                   837.51 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            946 sec.

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

