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


Performing analysis on: 4FGL_J0521.8-3848_daily_bin1423
RA = 80.4718, Dec = -38.8066
tmin = 608169601, tmax = 608428801
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='244968', job_status='RUN', time_executed='2021-08-22 12:27:00.517159', time_epoch_executed='1629660420.52' WHERE source_name='4FGL J0521.8-3848' and cadence='daily' and bin_id='1423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/244968

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/244968/ft1_4FGL_J0521.8-3848_daily_bin1423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/244968/ft2_4FGL_J0521.8-3848_daily_bin1423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/244968/ft1_4FGL_J0521.8-3848_daily_bin1423.fits outfile=/scratch/kocevski/244968/ft1_filteredMKT_4FGL_J0521.8-3848_daily_bin1423.fits ra=80.4718 dec=-38.8066 rad=12.0 tmin=608169601.0 tmax=608428801.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 4.70
user 3.42
sys 1.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/244968/ft1_filtered_4FGL_J0521.8-3848_daily_bin1423.fits" evtable="EVENTS" scfile=/scratch/kocevski/244968/ft2_4FGL_J0521.8-3848_daily_bin1423.fits sctable="SC_DATA" outfile=/scratch/kocevski/244968/ltcube_608169601_608428801_4FGL_J0521.8-3848_daily_bin1423.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/244968/ft2_4FGL_J0521.8-3848_daily_bin1423.fits
.....................!
real 13.03
user 11.48
sys 1.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/244968/ft1_filtered_4FGL_J0521.8-3848_daily_bin1423.fits evtable="EVENTS" scfile=/scratch/kocevski/244968/ft2_4FGL_J0521.8-3848_daily_bin1423.fits sctable="SC_DATA" expcube=/scratch/kocevski/244968/ltcube_608169601_608428801_4FGL_J0521.8-3848_daily_bin1423.fits outfile=/scratch/kocevski/244968/expmap_608169601_608428801_4FGL_J0521.8-3848_daily_bin1423.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/244968/ltcube_608169601_608428801_4FGL_J0521.8-3848_daily_bin1423.fits
.....................!
real 191.25
user 185.09
sys 5.80

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/244968/ft1_filtered_4FGL_J0521.8-3848_daily_bin1423.fits scfile=/scratch/kocevski/244968/ft2_4FGL_J0521.8-3848_daily_bin1423.fits outfile=/scratch/kocevski/244968/cmap_608169601_608428801_4FGL_J0521.8-3848_daily_bin1423.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 1.54
user 0.38
sys 1.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/244968/ft1_filtered_4FGL_J0521.8-3848_daily_bin1423.fits scfile=/scratch/kocevski/244968/ft2_4FGL_J0521.8-3848_daily_bin1423.fits outfile=/scratch/kocevski/244968/cmap_HighResolution_608169601_608428801_4FGL_J0521.8-3848_daily_bin1423.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 1.55
user 0.39
sys 1.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/244968/ft1_filtered_4FGL_J0521.8-3848_daily_bin1423.fits evtable="EVENTS" scfile=/scratch/kocevski/244968/ft2_4FGL_J0521.8-3848_daily_bin1423.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/244968/Model_4FGL_J0521.8-3848_daily_bin1423.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/244968/ft1_filtered_4FGL_J0521.8-3848_daily_bin1423.fits.....................!
real 65.57
user 62.89
sys 2.54

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8568       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8274       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2093       1.0000         .10000E-03   10000.    
     4 'norm      '    23.953       1.0000         .10000E-03   10000.    
     5 'norm      '    5.8843       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11604E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7496       1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.314       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.179       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.737       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1885       1.0000         .10000E-03   10000.    
    15 'norm      '    7.1833       1.0000         .10000E-03   10000.    
    16 'Prefactor '    63.473       1.0000         .10000E-03   10000.    
    17 'norm      '    44.317       1.0000         .10000E-03   10000.    
    18 'norm      '    .48972       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.3417       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0043       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .20746E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.0925       1.0000         .10000E-03   10000.    
    25 'norm      '    2.7381       1.0000         .10000E-03   10000.    
    26 'norm      '    18.184       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .44788E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0056       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .94684       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=   5727.908     FROM MIGRAD    STATUS=CONVERGED    767 CALLS     3962 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8568        14.870        .11663E-06   -.79512E-04
   2  norm          1.8275        .92462       -.18753E-07    .44682E-04
   3  Prefactor     6.2072        3.8027        .24709E-06   -.18510E-03
   4  norm          23.948        12.924        .29858E-06    .13721E-05
   5  norm          5.8824        2.3691        .21908E-06   -.61030E-05
   6  Prefactor     .10001E-03    1.9559       -.28280E-06** at limit **
   7  Prefactor     .10000E-03    6.5997       -.18171E-06** at limit **
   8  norm          1.7462        2.3401        .26335E-06   -.85291E-03
   9  Prefactor     33.323        40.256       -.45549E-06   -.33657E-04
  10  Prefactor     .10000E-03    9.5692       -.13744E-05** at limit **
  11  Prefactor     15.179        15.831       -.89647E-08   -.22669E-06
  12  Prefactor     .10000E-03    26.235       -.80436E-06** at limit **
  13  Prefactor     16.737        4.7660        .13495E-06    .10743E-03
  14  Prefactor     2.1910        6.0883       -.32924E-06   -.18130E-04
  15  norm          7.1814        3.8473        .74443E-07    .15066E-03
  16  Prefactor     63.468        62.037        .27545E-07    .24976E-04
  17  norm          44.319        10.627       -.11031E-06   -.65087E-04
  18  norm          .48721        4.7552        .25833E-06   -.18859E-03
  19  Prefactor     6.3413        6.9808        .32350E-06    .29538E-04
  20  Prefactor     1.0056        12.765       -.22497E-06   -.25133E-04
  21  Prefactor     .10000E-03    14.220       -.40266E-06** at limit **
  22  norm          .10000E-03    9.3292       -.13780E-05** at limit **
  23  Prefactor     .10000E-03    15.014        .15395E-07** at limit **
  24  norm          2.0926        1.1858       -.66442E-08   -.47598E-05
  25  norm          2.7380        2.6460       -.82545E-08    .35083E-04
  26  norm          18.186        15.673       -.57290E-07   -.14698E-05
  27  Prefactor     .10000E-03    94.842       -.31372E-05** at limit **
  28  Prefactor     .10000E-03    12.041       -.32641E-06** at limit **
  29  Normalizat    1.0055        .26071       -.10722E-05    .14573E-03
  30  Prefactor     .94680        .20203        .21092E-05    .27754E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.8568
  norm       = 1.82754
  Prefactor  = 6.20723
  norm       = 23.9482
  norm       = 5.88237
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 1.74624
  Prefactor  = 33.3229
  Prefactor  = 0.0001
  Prefactor  = 15.1794
  Prefactor  = 0.0001
  Prefactor  = 16.7367
  Prefactor  = 2.19097
  norm       = 7.18144
  Prefactor  = 63.4679
  norm       = 44.3186
  norm       = 0.487212
  Prefactor  = 6.3413
  Prefactor  = 1.00563
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.09259
  norm       = 2.73802
  norm       = 18.1856
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00552
  Prefactor  = 0.946801
 **********
 **   18 **HESSE 
 **********

 FCN=   5727.908     FROM HESSE     STATUS=OK           600 CALLS     4562 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8568        15.374        .71526E-03   -1.5147    
   2  norm          1.8275        .93820        .43969E-04   -1.5438    
   3  Prefactor     6.2072        3.7693        .53829E-03   -1.5210    
   4  norm          23.948        12.886        .81846E-04   -1.4729    
   5  norm          5.8824        2.3471        .69606E-04   -1.5223    
   6  Prefactor     .10001E-03    7.0343        .18570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.6178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7462        4.7897        .13064E-02   -1.5444    
   9  Prefactor     33.323        40.325        .69426E-04   -1.4553    
  10  Prefactor     .10000E-03    9.7487        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.179        15.834        .10280E-03   -1.4929    
  12  Prefactor     .10000E-03    26.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.737        4.7805        .81631E-04   -1.4890    
  14  Prefactor     2.1910        5.9915        .26337E-03   -1.5412    
  15  norm          7.1814        3.7986        .93509E-04   -1.5172    
  16  Prefactor     63.468        62.295        .50369E-04   -1.4113    
  17  norm          44.319        10.240        .60224E-04   -1.4376    
  18  norm          .48721        8.9598        .28277E-02   -1.5568    
  19  Prefactor     6.3413        6.9110        .15939E-03   -1.5204    
  20  Prefactor     1.0056        42.624        .49507E-02   -1.5507    
  21  Prefactor     .10000E-03    14.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    9.6694        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.0926        1.1830        .59399E-04   -1.5419    
  25  norm          2.7380        2.6349        .11549E-03   -1.5377    
  26  norm          18.186        15.677        .93924E-04   -1.4855    
  27  Prefactor     .10000E-03    101.57        .60154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    12.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0055        .29937        .33160E-03   -.92846    
  30  Prefactor     .94680        .22415        .27632E-03   -.94524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.1542e-08
Minuit parameter uncertainties:
  1  15.3817
  2  0.938203
  3  3.76948
  4  12.887
  5  2.34716
  6  0.000375256
  7  1.55299e-05
  8  4.79078
  9  40.3581
  10  7.38335e-07
  11  15.8383
  12  7.12563e-05
  13  4.7806
  14  5.9931
  15  3.79871
  16  62.3591
  17  10.2406
  18  4.17898
  19  6.91182
  20  13.1035
  21  9.32089e-06
  22  8.68503e-06
  23  4.50229e-06
  24  1.18302
  25  2.63497
  26  15.6808
  27  0.000320153
  28  3.20934e-06
  29  0.299872
  30  0.224367
Done.

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

Extracting fit parameters...

4FGL J0521.8-3848
   Spectrum: PowerLaw
282    Prefactor:  2.191e+00  5.993e+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:  9.468e-01  2.244e-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.006e+00  2.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/244968/likelihoodResults_608169601_608428801_4FGL_J0521.8-3848_daily_bin1423.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) = 5727.26482124
delta logL = 0.643045711085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5727.23664324
delta logL = 0.671223708137

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56924       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3893       1.0000          .0000       10.000    
     3 'Normalizat'    .92449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98815       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=   5727.237     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      258 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .56754        8.4420        .11026E-01    .85378E-03
   2  Index         4.3911        3.3556        .12870        .11248E-03
   3  Normalizat    .92447        .56263E-01    .77648E-01   -.45783E-06
   4  Prefactor     .98819        .45938E-01    .46119E-01   -.45994E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.567538
  Index      = 4.39113
  Normalizat = 0.924468
  Prefactor  = 0.988192
 **********
 **   18 **HESSE 
 **********

 FCN=   5727.237     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      293 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .56754        22.220        .50274E-03   -1.5557    
   2  Index         4.3911        7.1938        .64227E-02   -.12208    
   3  Normalizat    .92447        .21675        .34367E-03   -.95606    
   4  Prefactor     .98819        .17575        .27100E-03   -.93124    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.19418e-07
Minuit parameter uncertainties:
  1  7.10452
  2  7.37588
  3  0.216959
  4  0.175847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/244968': 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) = 5727.23664273
delta logL = 0.671224214826

Extracting fit parameters...

4FGL J0521.8-3848
   Spectrum: PowerLaw
282    Prefactor:  5.675e-01  7.105e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        Index:  4.391e+00  7.376e+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:  9.882e-01  1.758e-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:  9.245e-01  2.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.64
Ra Dec: 80.472 -38.807
Photon Index (Free Index): 4.39 +/- 7.38
Photon Flux (Free Index): 9.93e-08 +/- 8.67e-08
Energy Flux (Free Index): 1.41e-05 +/- 1.85e-05

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/244968/cmap_HighResolution_608169601_608428801_4FGL_J0521.8-3848_daily_bin1423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', comment='SUCCESS', energy_flux2='1.41e-05', dlogl='6.71e-01', photon_flux2='9.93e-08', job_status='DONE', time_completed='2021-08-22 12:41:56.480587', photon_index_error2='7.38', photon_index2='4.39', ts='0.19', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.56e-07', energy_flux_error2='1.85e-05', EG='1.01', time_epoch_completed='1629661316.48', return_code='0', job_id='244968', GAL2='0.99', EG2='0.92', return_code2='102', photon_flux_error2='8.67e-08', ts2='1.64', photon_index='2.59' WHERE bin_id='1423' AND source_name='4FGL J0521.8-3848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 12:41:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 244968: <4FGL_J0521.8-3848_daily_bin1423> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0521.8-3848_daily_bin1423 80.4718 -38.8066 608169601 608428801 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 :                                   902.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            973 sec.

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

