/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 40 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 = 7241
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0319.9-3821_daily_bin1600
RA = 49.9975, Dec = -38.3577
tmin = 654048001, tmax = 654307201
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='253600', job_status='RUN', time_executed='2021-09-26 00:05:45.582502', time_epoch_executed='1632639945.58' WHERE source_name='4FGL J0319.9-3821' and cadence='daily' and bin_id='1600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253600

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253600/ft1_4FGL_J0319.9-3821_daily_bin1600.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253600/ft2_4FGL_J0319.9-3821_daily_bin1600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253600/ft1_4FGL_J0319.9-3821_daily_bin1600.fits outfile=/scratch/kocevski/253600/ft1_filteredMKT_4FGL_J0319.9-3821_daily_bin1600.fits ra=49.9975 dec=-38.3577 rad=12.0 tmin=654048001.0 tmax=654307201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.56
user 3.32
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/253600/ft2_4FGL_J0319.9-3821_daily_bin1600.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/253600/ft2_4FGL_J0319.9-3821_daily_bin1600.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/253600/ft1_filteredMKT_4FGL_J0319.9-3821_daily_bin1600.fits evtable="EVENTS" outfile="/scratch/kocevski/253600/ft1_filtered_4FGL_J0319.9-3821_daily_bin1600.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253600/ft1_filtered_4FGL_J0319.9-3821_daily_bin1600.fits" evtable="EVENTS" scfile=/scratch/kocevski/253600/ft2_4FGL_J0319.9-3821_daily_bin1600.fits sctable="SC_DATA" outfile=/scratch/kocevski/253600/ltcube_654048001_654307201_4FGL_J0319.9-3821_daily_bin1600.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/253600/ft2_4FGL_J0319.9-3821_daily_bin1600.fits
.....................!
real 13.68
user 13.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253600/ft1_filtered_4FGL_J0319.9-3821_daily_bin1600.fits evtable="EVENTS" scfile=/scratch/kocevski/253600/ft2_4FGL_J0319.9-3821_daily_bin1600.fits sctable="SC_DATA" expcube=/scratch/kocevski/253600/ltcube_654048001_654307201_4FGL_J0319.9-3821_daily_bin1600.fits outfile=/scratch/kocevski/253600/expmap_654048001_654307201_4FGL_J0319.9-3821_daily_bin1600.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/253600/ltcube_654048001_654307201_4FGL_J0319.9-3821_daily_bin1600.fits
.....................!
real 193.77
user 186.88
sys 5.45

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 180 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0319.9-3821 @ 49.9975 -38.3577

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/253600/ft1_filtered_4FGL_J0319.9-3821_daily_bin1600.fits scfile=/scratch/kocevski/253600/ft2_4FGL_J0319.9-3821_daily_bin1600.fits outfile=/scratch/kocevski/253600/cmap_654048001_654307201_4FGL_J0319.9-3821_daily_bin1600.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=49.9975 yref=-38.3577 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.61
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253600/ft1_filtered_4FGL_J0319.9-3821_daily_bin1600.fits scfile=/scratch/kocevski/253600/ft2_4FGL_J0319.9-3821_daily_bin1600.fits outfile=/scratch/kocevski/253600/cmap_HighResolution_654048001_654307201_4FGL_J0319.9-3821_daily_bin1600.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=49.9975 yref=-38.3577 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/253600/ft1_filtered_4FGL_J0319.9-3821_daily_bin1600.fits evtable="EVENTS" scfile=/scratch/kocevski/253600/ft2_4FGL_J0319.9-3821_daily_bin1600.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/253600/Model_4FGL_J0319.9-3821_daily_bin1600.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/253600/ft1_filtered_4FGL_J0319.9-3821_daily_bin1600.fits.....................!
real 103.32
user 101.81
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/253600/ft1_filtered_4FGL_J0319.9-3821_daily_bin1600.fits', '/scratch/kocevski/253600/ft2_4FGL_J0319.9-3821_daily_bin1600.fits', expMap='/scratch/kocevski/253600/expmap_654048001_654307201_4FGL_J0319.9-3821_daily_bin1600.fits', expCube='/scratch/kocevski/253600/ltcube_654048001_654307201_4FGL_J0319.9-3821_daily_bin1600.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/253600/Model_4FGL_J0319.9-3821_daily_bin1600.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0319.9-3821'

4FGL J0319.9-3821
   Spectrum: PowerLaw
267    Prefactor:  2.804e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
268        Index:  2.469e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  9.189e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/253600/ft1_filtered_4FGL_J0319.9-3821_daily_bin1600.fits
Spacecraft file(s): /scratch/kocevski/253600/ft2_4FGL_J0319.9-3821_daily_bin1600.fits
Exposure map: /scratch/kocevski/253600/expmap_654048001_654307201_4FGL_J0319.9-3821_daily_bin1600.fits
Exposure cube: /scratch/kocevski/253600/ltcube_654048001_654307201_4FGL_J0319.9-3821_daily_bin1600.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/253600/Model_4FGL_J0319.9-3821_daily_bin1600.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) = 4898.57218755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5383       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    102.87       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    184.15       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.984       1.0000         .10000E-03   10000.    
    12 'norm      '    3.5620       1.0000         .10000E-03   10000.    
    13 'norm      '    5.2651       1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.046       1.0000         .10000E-03   10000.    
    15 'Prefactor '    88.952       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.062       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.295       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.1332       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.281       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4209       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .70940       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4898.449     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     3016 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.635       -.51354E-06** at limit **
   2  norm          1.5382        3.4366       -.22086E-06   -.64613E-03
   3  Prefactor     .10000E-03    17.649       -.37386E-05** at limit **
   4  Prefactor     102.87        61.739       -.20090E-05    .67643E-05
   5  Prefactor     .10000E-03    3.4949       -.49898E-07** at limit **
   6  norm          .10000E-03    .43620       -.23916E-07** at limit **
   7  Prefactor     184.11        345.88       -.29434E-04    .22193E-05
   8  Prefactor     .10000E-03    8.9742        .19782E-06** at limit **
   9  Prefactor     .10000E-03    18.718        .29831E-05** at limit **
  10  Prefactor     .10000E-03    13.760        .12092E-05** at limit **
  11  Prefactor     14.987        35.686        .35989E-05   -.46076E-05
  12  norm          3.5619        3.9458       -.18444E-06   -.23747E-03
  13  norm          5.2651        1.5269       -.12041E-07   -.22892E-04
  14  Prefactor     46.044        49.490       -.31087E-05   -.40731E-06
  15  Prefactor     88.954        71.638        .20218E-05   -.11079E-06
  16  Prefactor     10.061        18.392       -.16881E-06   -.22375E-04
  17  Prefactor     .10000E-03    79.449       -.20243E-06** at limit **
  18  norm          .10000E-03    .10602       -.86509E-08** at limit **
  19  norm          13.295        8.7634       -.88277E-07   -.18833E-04
  20  Prefactor     8.1337        54.546        .54752E-06   -.60713E-05
  21  Prefactor     15.281        20.133       -.19903E-06   -.11165E-04
  22  Normalizat    1.4209        .21105        .51844E-06   -.79821E-05
  23  Prefactor     .70939        .23127        .89565E-06   -.50819E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.53825
  Prefactor  = 0.0001
  Prefactor  = 102.87
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 184.106
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9872
  norm       = 3.56194
  norm       = 5.26508
  Prefactor  = 46.0436
  Prefactor  = 88.9541
  Prefactor  = 10.0613
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.2949
  Prefactor  = 8.13365
  Prefactor  = 15.2808
  Normalizat = 1.42091
  Prefactor  = 0.709389
 **********
 **   18 **HESSE 
 **********

 FCN=   4898.449     FROM HESSE     STATUS=OK           374 CALLS     3390 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5382        3.4637        .18422E-03   -1.5460    
   3  Prefactor     .10000E-03    17.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     102.87        61.402        .19821E-03   -1.3676    
   5  Prefactor     .10000E-03    7.9496        .25422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .65311        .89920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     184.11        342.60        .14876E-03   -1.2986    
   8  Prefactor     .10000E-03    8.9878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.987        35.611        .10347E-03   -1.4934    
  12  norm          3.5619        3.9426        .13994E-03   -1.5330    
  13  norm          5.2651        1.5281        .44407E-04   -1.5249    
  14  Prefactor     46.044        49.515        .59087E-04   -1.4350    
  15  Prefactor     88.954        71.590        .42602E-04   -1.3819    
  16  Prefactor     10.061        18.376        .12632E-03   -1.5073    
  17  Prefactor     .10000E-03    79.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .11172        .44283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.295        8.7520        .10985E-03   -1.4979    
  20  Prefactor     8.1337        54.706        .14058E-03   -1.5137    
  21  Prefactor     15.281        20.119        .10246E-03   -1.4926    
  22  Normalizat    1.4209        .25045        .22628E-03   -.80026    
  23  Prefactor     .70939        .27062        .34240E-03   -1.0316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63784e-10
Minuit parameter uncertainties:
  1  1.13665e-06
  2  3.46416
  3  4.28248e-05
  4  61.4397
  5  4.26183e-06
  6  2.02718e-06
  7  346.425
  8  3.9721e-06
  9  1.94894e-07
  10  2.70353e-06
  11  35.6615
  12  3.94293
  13  1.52814
  14  49.5592
  15  71.6591
  16  18.386
  17  3.74621e-05
  18  2.4546e-07
  19  8.75287
  20  42.2438
  21  20.1279
  22  0.250666
  23  0.271123
Done.

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

Extracting fit parameters...

4FGL J0319.9-3821
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.949e-07  1.000e-04  1.000e+04 ( 1.000e-13)
268        Index:  2.469e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  9.189e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  7.094e-01  2.711e-01  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.421e+00  2.507e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 49.998 -38.358
Photon Flux Upper Limit: 8.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253600/likelihoodResults_654048001_654307201_4FGL_J0319.9-3821_daily_bin1600.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) = 4898.44963922
delta logL = -0.000253829958638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4898.4493869
delta logL = -1.50965934154e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4898.449     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      204 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6571.5        .90712E-02** at limit **
   2  Index         2.3934        6.0425        .50000       -.28404E-05
   3  Normalizat    1.4209        .10815        .51182E-01    .26689E-05
   4  Prefactor     .70939        .12021        .77341E-01    .21231E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.3934
  Normalizat = 1.42091
  Prefactor  = 0.709389
 **********
 **   18 **HESSE 
 **********

 FCN=   4898.449     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3934        6.1115        .50000       -.54840    
   3  Normalizat    1.4209        .23987        .22628E-03   -.80026    
   4  Prefactor     .70939        .26685        .34240E-03   -1.0316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26033e-11
Minuit parameter uncertainties:
  1  5.95486e-06
  2  5.47983
  3  0.240058
  4  0.267336
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253600': 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) = 4898.44938544
delta logL = -5.32681951881e-08

Extracting fit parameters...

4FGL J0319.9-3821
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  5.955e-06  1.000e-04  1.000e+04 ( 1.000e-13)
268        Index:  2.393e+00  5.480e+00  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  9.189e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  7.094e-01  2.673e-01  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.421e+00  2.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 49.998 -38.358

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/253600/cmap_HighResolution_654048001_654307201_4FGL_J0319.9-3821_daily_bin1600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.93e-03', job_status='DONE', photon_flux_upper_limit='8.93e-08', time_completed='2021-09-26 00:17:12.732000', job_id='253600', GAL2='0.71', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1632640632.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='-5.33e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1600' AND source_name='4FGL J0319.9-3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 00:17:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 253600: <4FGL_J0319.9-3821_daily_bin1600> in cluster <slac> Done

Job <4FGL_J0319.9-3821_daily_bin1600> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 26 00:00:52 2021
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 00:04:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 00:04:48 2021
Terminated at Sun Sep 26 00:17:13 2021
Results reported at Sun Sep 26 00:17:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0319.9-3821_daily_bin1600 49.9975 -38.3577 654048001 654307201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0319.9-3821 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   688.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            981 sec.

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

