/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: Dan/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 145 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_gnumber of points = 7474
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0310.6-5017_daily_bin1639
RA = 47.6544, Dec = -50.2901
tmin = 664156801, tmax = 664416001
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='191878', job_status='RUN', time_executed='2022-01-21 00:09:00.990207', time_epoch_executed='1642752540.99' WHERE source_name='4FGL J0310.6-5017' and cadence='daily' and bin_id='1639'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191878

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191878/ft1_4FGL_J0310.6-5017_daily_bin1639.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191878/ft2_4FGL_J0310.6-5017_daily_bin1639.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191878/ft1_4FGL_J0310.6-5017_daily_bin1639.fits outfile=/scratch/kocevski/191878/ft1_filteredMKT_4FGL_J0310.6-5017_daily_bin1639.fits ra=47.6544 dec=-50.2901 rad=12.0 tmin=664156801.0 tmax=664416001.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.03
user 3.74
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/191878/ft2_4FGL_J0310.6-5017_daily_bin1639.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191878/ft2_4FGL_J0310.6-5017_daily_bin1639.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/191878/ft1_filteredMKT_4FGL_J0310.6-5017_daily_bin1639.fits evtable="EVENTS" outfile="/scratch/kocevski/191878/ft1_filtered_4FGL_J0310.6-5017_daily_bin1639.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 2.28
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191878/ft1_filtered_4FGL_J0310.6-5017_daily_bin1639.fits" evtable="EVENTS" scfile=/scratch/kocevski/191878/ft2_4FGL_J0310.6-5017_daily_bin1639.fits sctable="SC_DATA" outfile=/scratch/kocevski/191878/ltcube_664156801_664416001_4FGL_J0310.6-5017_daily_bin1639.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/191878/ft2_4FGL_J0310.6-5017_daily_bin1639.fits
.....................!
real 21.03
user 19.59
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191878/ft1_filtered_4FGL_J0310.6-5017_daily_bin1639.fits evtable="EVENTS" scfile=/scratch/kocevski/191878/ft2_4FGL_J0310.6-5017_daily_bin1639.fits sctable="SC_DATA" expcube=/scratch/kocevski/191878/ltcube_664156801_664416001_4FGL_J0310.6-5017_daily_bin1639.fits outfile=/scratch/kocevski/191878/expmap_664156801_664416001_4FGL_J0310.6-5017_daily_bin1639.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/191878/ltcube_664156801_664416001_4FGL_J0310.6-5017_daily_bin1639.fits
.....................!
real 192.50
user 187.28
sys 4.22

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 189 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 J0310.6-5017 @ 47.6544 -50.2901

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/191878/ft1_filtered_4FGL_J0310.6-5017_daily_bin1639.fits scfile=/scratch/kocevski/191878/ft2_4FGL_J0310.6-5017_daily_bin1639.fits outfile=/scratch/kocevski/191878/cmap_664156801_664416001_4FGL_J0310.6-5017_daily_bin1639.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=47.6544 yref=-50.2901 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191878/ft1_filtered_4FGL_J0310.6-5017_daily_bin1639.fits scfile=/scratch/kocevski/191878/ft2_4FGL_J0310.6-5017_daily_bin1639.fits outfile=/scratch/kocevski/191878/cmap_HighResolution_664156801_664416001_4FGL_J0310.6-5017_daily_bin1639.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=47.6544 yref=-50.2901 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.91
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/191878/ft1_filtered_4FGL_J0310.6-5017_daily_bin1639.fits evtable="EVENTS" scfile=/scratch/kocevski/191878/ft2_4FGL_J0310.6-5017_daily_bin1639.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191878/Model_4FGL_J0310.6-5017_daily_bin1639.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/191878/ft1_filtered_4FGL_J0310.6-5017_daily_bin1639.fits.....................!
real 100.73
user 98.92
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/191878/ft1_filtered_4FGL_J0310.6-5017_daily_bin1639.fits', '/scratch/kocevski/191878/ft2_4FGL_J0310.6-5017_daily_bin1639.fits', expMap='/scratch/kocevski/191878/expmap_664156801_664416001_4FGL_J0310.6-5017_daily_bin1639.fits', expCube='/scratch/kocevski/191878/ltcube_664156801_664416001_4FGL_J0310.6-5017_daily_bin1639.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/191878/Model_4FGL_J0310.6-5017_daily_bin1639.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0310.6-5017'

4FGL J0310.6-5017
   Spectrum: PowerLaw
278    Prefactor:  2.636e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
279        Index:  1.809e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  3.782e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/191878/ft1_filtered_4FGL_J0310.6-5017_daily_bin1639.fits
Spacecraft file(s): /scratch/kocevski/191878/ft2_4FGL_J0310.6-5017_daily_bin1639.fits
Exposure map: /scratch/kocevski/191878/expmap_664156801_664416001_4FGL_J0310.6-5017_daily_bin1639.fits
Exposure cube: /scratch/kocevski/191878/ltcube_664156801_664416001_4FGL_J0310.6-5017_daily_bin1639.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/191878/Model_4FGL_J0310.6-5017_daily_bin1639.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) = 4686.67396991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.0672       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .57791E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.231       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .16371E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.704       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .42049       1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.288       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9285       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.669       1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10155E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6652       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.7243       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.649       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.553       1.0000         .10000E-03   10000.    
    22 'norm      '    2.9416       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2440       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .77244       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4686.635     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3279 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    35.703       -.98538E-05** at limit **
   2  Prefactor     .10000E-03    2.8842       -.15495E-06** at limit **
   3  norm          4.0676        1.7831       -.24176E-07   -.22854E-03
   4  Prefactor     .10002E-03    178.08       -.20884E-03** at limit **
   5  Prefactor     19.241        27.103        .12132E-04   -.58159E-04
   6  Prefactor     .10000E-03    14.264        .67827E-05** at limit **
   7  norm          .10000E-03    2.0989        .24392E-05** at limit **
   8  Prefactor     20.702        17.908       -.39573E-05   -.93162E-04
   9  Prefactor     .10000E-03    15.566       -.52304E-05** at limit **
  10  norm          .42121        .70034       -.47959E-06   -.40040E-02
  11  Prefactor     31.286        54.705       -.19792E-05   -.16823E-05
  12  Prefactor     7.9249        7.8218        .79388E-07   -.47284E-03
  13  Prefactor     .10000E-03    16.908       -.65813E-05** at limit **
  14  Prefactor     15.675        18.170        .33315E-05   -.23684E-04
  15  norm          .10000E-03    2.5234        .81977E-08** at limit **
  16  norm          .10000E-03    .64877        .11530E-06** at limit **
  17  Prefactor     3.6651        31.216       -.13906E-05   -.23358E-05
  18  Prefactor     .10000E-03    3.8469       -.38580E-05** at limit **
  19  Prefactor     5.7160        53.090       -.23869E-04   -.11881E-04
  20  Prefactor     19.653        18.134        .17052E-05   -.18486E-04
  21  Prefactor     17.557        11.397       -.65027E-07   -.27282E-04
  22  norm          2.9419        1.3353        .13804E-07   -.74479E-04
  23  Prefactor     .10000E-03    31.601        .20432E-04** at limit **
  24  Prefactor     .10000E-03    4.7501        .20661E-06** at limit **
  25  norm          .10000E-03    1.7605        .15093E-07** at limit **
  26  Normalizat    1.2437        .20386       -.17915E-05    .49111E-04
  27  Prefactor     .77247        .20639        .14359E-05   -.30436E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.06763
  Prefactor  = 0.000100023
  Prefactor  = 19.2412
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 20.702
  Prefactor  = 0.0001
  norm       = 0.421215
  Prefactor  = 31.286
  Prefactor  = 7.92487
  Prefactor  = 0.0001
  Prefactor  = 15.6746
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.66507
  Prefactor  = 0.0001
  Prefactor  = 5.71603
  Prefactor  = 19.6525
  Prefactor  = 17.5568
  norm       = 2.94188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.24375
  Prefactor  = 0.772469
 **********
 **   18 **HESSE 
 **********

 FCN=   4686.635     FROM HESSE     STATUS=OK           492 CALLS     3771 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    35.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.9027        .11342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.0676        1.7808        .58360E-04   -1.5305    
   4  Prefactor     .10002E-03    178.06        .21084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.241        27.077        .91332E-04   -1.4830    
   6  Prefactor     .10000E-03    14.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.7865        .18787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.702        17.908        .88026E-04   -1.4798    
   9  Prefactor     .10000E-03    15.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .42121        .70129        .21884E-03   -1.5578    
  11  Prefactor     31.286        54.450        .71632E-04   -1.4589    
  12  Prefactor     7.9249        7.7393        .14240E-03   -1.5145    
  13  Prefactor     .10000E-03    16.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.675        18.189        .10118E-03   -1.4916    
  15  norm          .10000E-03    2.5250        .10620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.8499        .10614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.6651        31.099        .21099E-03   -1.5325    
  18  Prefactor     .10000E-03    3.8527        .13096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.7160        53.200        .16788E-03   -1.5230    
  20  Prefactor     19.653        18.148        .90357E-04   -1.4821    
  21  Prefactor     17.557        11.369        .95597E-04   -1.4870    
  22  norm          2.9419        1.3368        .51538E-04   -1.5365    
  23  Prefactor     .10000E-03    31.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.7535        .14572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.7642        .88709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2437        .24498        .22569E-03   -.85261    
  27  Prefactor     .77247        .24578        .28967E-03   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46331e-09
Minuit parameter uncertainties:
  1  1.84507e-06
  2  5.55207e-07
  3  1.7808
  4  0.00404894
  5  27.0941
  6  0.00014071
  7  0.000262371
  8  17.9128
  9  6.59449e-06
  10  0.7013
  11  54.5368
  12  7.74027
  13  5.70717e-06
  14  18.1955
  15  2.74356e-06
  16  1.75757e-05
  17  21.3669
  18  2.71262e-06
  19  34.9171
  20  18.1528
  21  11.3701
  22  1.33682
  23  1.40295e-05
  24  1.94483e-06
  25  8.39601e-07
  26  0.245211
  27  0.246124
Done.

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

Extracting fit parameters...

4FGL J0310.6-5017
   Spectrum: PowerLaw
278    Prefactor:  3.665e+00  2.137e+01  1.000e-04  1.000e+04 ( 1.000e-14)
279        Index:  1.809e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  3.782e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  7.725e-01  2.461e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.244e+00  2.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 47.654 -50.290
Photon Flux Upper Limit: 6.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191878/likelihoodResults_664156801_664416001_4FGL_J0310.6-5017_daily_bin1639.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) = 4686.60870316
delta logL = 0.0259778920572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4686.59937074
delta logL = 0.0353103134939

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4686.599     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      246 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94364        150.31        .12964E-01    .15934E-02
   2  Index         2.7922        6.0209        .78029E-01    .15317E-03
   3  Normalizat    1.2317        .43046E-01    .51253E-01    .72447E-05
   4  Prefactor     .77949        .44149E-01    .65199E-01    .19065E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.943644
  Index      = 2.79224
  Normalizat = 1.23167
  Prefactor  = 0.779492
 **********
 **   18 **HESSE 
 **********

 FCN=   4686.599     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      279 TOTAL
                     EDM=   .46E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94364        461.80        .20804E-03   -1.5514    
   2  Index         2.7922        8.2563        .14113E-01   -.45733    
   3  Normalizat    1.2317        .16723        .22660E-03   -.85630    
   4  Prefactor     .77949        .15157        .28843E-03   -1.0049    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.61904e-06
Minuit parameter uncertainties:
  1  42.0786
  2  16.6949
  3  0.167304
  4  0.151647
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191878': 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) = 4686.59937047
delta logL = 0.0353105783797

Extracting fit parameters...

4FGL J0310.6-5017
   Spectrum: PowerLaw
278    Prefactor:  9.436e-01  4.208e+01  1.000e-04  1.000e+04 ( 1.000e-14)
279        Index:  2.792e+00  1.669e+01  0.000e+00  1.000e+01 (-1.000e+00)
280        Scale:  3.782e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  7.795e-01  1.516e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.232e+00  1.673e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 47.654 -50.290

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/191878/cmap_HighResolution_664156801_664416001_4FGL_J0310.6-5017_daily_bin1639.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.53e-03', job_status='DONE', photon_flux_upper_limit='6.14e-08', time_completed='2022-01-21 00:21:43.187391', job_id='191878', GAL2='0.78', fit_tolerance='1e-08', EG2='1.23', EG='1.24', time_epoch_completed='1642753303.19', return_code2='102', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='3.53e-02', ts2='0.11', photon_index_error='0.00', photon_index='1.81' WHERE bin_id='1639' AND source_name='4FGL J0310.6-5017' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 21 00:21:43 PST 2022

'SUCCESS', return_code='0', GAL='0.77', dlogl='3.53e-02', ts2='0.11', photon_index_error='0.00', photon_index='1.81' WHERE bin_id='1639' AND source_name='4FGL J0310.6-5017' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 21 00:21:38 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 191926: <4FGL_J0310.6-5017_daily_bin1639> in cluster <slac> Done

Job <4FGL_J0310.6-5017_daily_bin1639> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Jan 21 00:05:47 2022
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 21 00:06:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 21 00:06:23 2022
Terminated at Fri Jan 21 00:21:38 2022
Results reported at Fri Jan 21 00:21:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0310.6-5017_daily_bin1639 47.6544 -50.2901 664156801 664416001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0310.6-5017 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   728.00 sec.
    Max Memory :                                 619 MB
    Average Memory :                             266.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            951 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 191878: <4FGL_J0310.6-5017_daily_bin1639> in cluster <slac> Done

Job <4FGL_J0310.6-5017_daily_bin1639> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Jan 21 00:05:45 2022
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 21 00:06:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 21 00:06:18 2022
Terminated at Fri Jan 21 00:21:44 2022
Results reported at Fri Jan 21 00:21:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0310.6-5017_daily_bin1639 47.6544 -50.2901 664156801 664416001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0310.6-5017 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   737.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            959 sec.

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

