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


Performing analysis on: 4FGL_J0521.8-3848_daily_bin1233
RA = 80.4718, Dec = -38.8066
tmin = 558921601, tmax = 559180801
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='244671', job_status='RUN', time_executed='2021-08-22 12:27:39.998853', time_epoch_executed='1629660460.0' WHERE source_name='4FGL J0521.8-3848' and cadence='daily' and bin_id='1233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/244671

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/244671/ft1_4FGL_J0521.8-3848_daily_bin1233.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/244671/ft2_4FGL_J0521.8-3848_daily_bin1233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/244671/ft1_4FGL_J0521.8-3848_daily_bin1233.fits outfile=/scratch/kocevski/244671/ft1_filteredMKT_4FGL_J0521.8-3848_daily_bin1233.fits ra=80.4718 dec=-38.8066 rad=12.0 tmin=558921601.0 tmax=559180801.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 7.13
user 3.32
sys 3.72

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/244671/ft1_filtered_4FGL_J0521.8-3848_daily_bin1233.fits" evtable="EVENTS" scfile=/scratch/kocevski/244671/ft2_4FGL_J0521.8-3848_daily_bin1233.fits sctable="SC_DATA" outfile=/scratch/kocevski/244671/ltcube_558921601_559180801_4FGL_J0521.8-3848_daily_bin1233.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/244671/ft2_4FGL_J0521.8-3848_daily_bin1233.fits
.....................!
real 16.00
user 11.67
sys 4.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/244671/ft1_filtered_4FGL_J0521.8-3848_daily_bin1233.fits evtable="EVENTS" scfile=/scratch/kocevski/244671/ft2_4FGL_J0521.8-3848_daily_bin1233.fits sctable="SC_DATA" expcube=/scratch/kocevski/244671/ltcube_558921601_559180801_4FGL_J0521.8-3848_daily_bin1233.fits outfile=/scratch/kocevski/244671/expmap_558921601_559180801_4FGL_J0521.8-3848_daily_bin1233.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/244671/ltcube_558921601_559180801_4FGL_J0521.8-3848_daily_bin1233.fits
.....................!
real 197.07
user 187.79
sys 8.74

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/244671/ft1_filtered_4FGL_J0521.8-3848_daily_bin1233.fits scfile=/scratch/kocevski/244671/ft2_4FGL_J0521.8-3848_daily_bin1233.fits outfile=/scratch/kocevski/244671/cmap_558921601_559180801_4FGL_J0521.8-3848_daily_bin1233.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.96
user 0.38
sys 3.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/244671/ft1_filtered_4FGL_J0521.8-3848_daily_bin1233.fits scfile=/scratch/kocevski/244671/ft2_4FGL_J0521.8-3848_daily_bin1233.fits outfile=/scratch/kocevski/244671/cmap_HighResolution_558921601_559180801_4FGL_J0521.8-3848_daily_bin1233.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.96
user 0.40
sys 3.54

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/244671/ft1_filtered_4FGL_J0521.8-3848_daily_bin1233.fits evtable="EVENTS" scfile=/scratch/kocevski/244671/ft2_4FGL_J0521.8-3848_daily_bin1233.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/244671/Model_4FGL_J0521.8-3848_daily_bin1233.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/244671/ft1_filtered_4FGL_J0521.8-3848_daily_bin1233.fits..............................!
real 24.81
user 18.77
sys 5.75

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.535       1.0000         .10000E-03   10000.    
     2 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.4749       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    40.855       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19962E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    80.348       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.402       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14368E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.669       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .19932E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11532E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    20.133       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .11791E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.8225       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=   747.4545     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     4445 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.527        64.365       -.12117E-04   -.28689E-05
   2  norm          .10000E-03    1.1963        .18702E-06** at limit **
   3  Prefactor     .10000E-03    19.791       -.34008E-07** at limit **
   4  norm          3.2570        1666.1        .61756E-04   -.19589E-04
   5  norm          .10000E-03    6.6941       -.14390E-06** at limit **
   6  Prefactor     40.887        55.834       -.48894E-05    .11204E-03
   7  Prefactor     .10000E-03    452.03        .28239E-06** at limit **
   8  norm          .10000E-03    88.203        .31113E-06** at limit **
   9  Prefactor     81.436        1218.9       -.18186E-04    .85054E-05
  10  Prefactor     13.398        17.671       -.14894E-07   -.37412E-03
  11  Prefactor     .10002E-03    1568.0       -.27328E-05** at limit **
  12  Prefactor     .10001E-03    213.81        .58484E-05** at limit **
  13  Prefactor     .10000E-03    33.194        .44426E-07** at limit **
  14  Prefactor     14.662        28.598        .10173E-05   -.15097E-03
  15  norm          .10000E-03    5.1216        .52846E-07** at limit **
  16  Prefactor     .10000E-03    43.918       -.14219E-06** at limit **
  17  norm          .10000E-03    362.98        .26084E-06** at limit **
  18  norm          .10000E-03    672.42       -.84646E-06** at limit **
  19  Prefactor     .10000E-03    85.887       -.11893E-05** at limit **
  20  Prefactor     .10000E-03    103.82       -.93419E-06** at limit **
  21  Prefactor     .10000E-03    27.000       -.24506E-07** at limit **
  22  norm          .10000E-03    35.409       -.78186E-07** at limit **
  23  Prefactor     .10000E-03    196.53       -.29541E-06** at limit **
  24  norm          20.133        22.746        .32784E-07   -.22772E-04
  25  norm          .10002E-03    5.4608        .20240E-06** at limit **
  26  norm          .10000E-03    411.72        .11623E-06** at limit **
  27  Prefactor     .10000E-03    143.52       -.30088E-06** at limit **
  28  Prefactor     .10000E-03    259.81        .30485E-06** at limit **
  29  Normalizat    .10000E-01    .46926        .28782E-04** at limit **
  30  Prefactor     1.8224        .35739       -.43515E-05   -.34942E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5269
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.25697
  norm       = 0.0001
  Prefactor  = 40.8866
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 81.4358
  Prefactor  = 13.3984
  Prefactor  = 0.00010002
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 14.662
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 20.1333
  norm       = 0.000100017
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.82238
 **********
 **   18 **HESSE 
 **********

 FCN=   747.4545     FROM HESSE     STATUS=OK           572 CALLS     5017 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.527        62.951        .10887E-03   -1.4972    
   2  norm          .10000E-03    1.2129        .29148E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.791        .11885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.2570        1673.1        .21693E-02   -1.5347    
   5  norm          .10000E-03    6.6927        .69085E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     40.887        55.056        .62713E-04   -1.4428    
   7  Prefactor     .10000E-03    452.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    88.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     81.436        1196.5        .22403E-03   -1.3901    
  10  Prefactor     13.398        17.705        .10941E-03   -1.4976    
  11  Prefactor     .10002E-03    1560.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    212.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    33.192        .15395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.662        28.505        .10458E-03   -1.4942    
  15  norm          .10000E-03    5.1267        .60412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    43.937        .17710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    362.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    671.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    85.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    103.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.027        .13882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    35.979        .15879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    196.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          20.133        22.746        .89264E-04   -1.4810    
  25  norm          .10002E-03    49.871        .12037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    411.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    143.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    259.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .66644        .10959E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.8224        .35542        .20755E-03   -.68869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93635e-09
Minuit parameter uncertainties:
  1  58.4629
  2  1.81153e-05
  3  4.36048e-05
  4  152.124
  5  2.76768e-05
  6  55.1242
  7  0.000107451
  8  0.000116982
  9  640.328
  10  17.7117
  11  0.0114713
  12  0.00236092
  13  1.81541e-05
  14  28.5314
  15  1.10759e-06
  16  3.17557e-05
  17  0.000501165
  18  0.0022244
  19  0.000503746
  20  8.65372e-05
  21  2.51067e-05
  22  0.000153478
  23  0.000269786
  24  22.7557
  25  0.00182663
  26  0.000252551
  27  0.000306112
  28  0.000549629
  29  1.45629e-05
  30  0.355923
Done.

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

Extracting fit parameters...

4FGL J0521.8-3848
   Spectrum: PowerLaw
282    Prefactor:  1.466e+01  2.853e+01  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.822e+00  3.559e-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.000e-02  1.456e-05  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/244671/likelihoodResults_558921601_559180801_4FGL_J0521.8-3848_daily_bin1233.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) = 747.446824041
delta logL = 0.00771774108534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 747.445346299
delta logL = 0.00919548322008

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.184       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7602       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.8210       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=   747.4453     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      238 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.186        28.677        .11031E-03   -.41072E-03
   2  Index         2.7599        1.2550        .58846E-02   -.12652E-03
   3  Normalizat    .10000E-01    .66006        .10925E-01** at limit **
   4  Prefactor     1.8207        .30963        .20758E-03    .27655E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.1861
  Index      = 2.75989
  Normalizat = 0.01
  Prefactor  = 1.82069
 **********
 **   18 **HESSE 
 **********

 FCN=   747.4453     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.186        28.057        .22063E-04   -1.4982    
   2  Index         2.7599        1.2285        .23538E-03   -.46455    
   3  Normalizat    .10000E-01    .66030        .21850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8207        .30945        .41517E-04   -.68912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20668e-09
Minuit parameter uncertainties:
  1  28.0847
  2  1.24449
  3  2.53096e-07
  4  0.309782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/244671': 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) = 747.445345857
delta logL = 0.00919592511707

Extracting fit parameters...

4FGL J0521.8-3848
   Spectrum: PowerLaw
282    Prefactor:  1.319e+01  2.808e+01  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  2.760e+00  1.244e+00  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.821e+00  3.098e-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.000e-02  2.531e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.34
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/244671/cmap_HighResolution_558921601_559180801_4FGL_J0521.8-3848_daily_bin1233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.54e-02', job_status='DONE', photon_flux_upper_limit='9.64e-07', time_completed='2021-08-22 12:35:11.878224', job_id='244671', GAL2='1.82', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629660911.88', return_code2='0', ts='0.34', comment='SUCCESS', return_code='0', GAL='1.82', dlogl='9.20e-03', ts2='0.36', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1233' AND source_name='4FGL J0521.8-3848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 12:35:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 244671: <4FGL_J0521.8-3848_daily_bin1233> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0521.8-3848_daily_bin1233 80.4718 -38.8066 558921601 559180801 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 :                                   503.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             258.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   589 sec.
    Turnaround time :                            590 sec.

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

