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


Performing analysis on: 4FGL_J0312.8+0134_daily_bin959
RA = 48.2222, Dec = 1.5724
tmin = 487900801, tmax = 488160001
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='271615', job_status='RUN', time_executed='2021-08-17 21:09:15.563409', time_epoch_executed='1629259755.56' WHERE source_name='4FGL J0312.8+0134' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271615

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271615/ft1_4FGL_J0312.8+0134_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271615/ft2_4FGL_J0312.8+0134_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271615/ft1_4FGL_J0312.8+0134_daily_bin959.fits outfile=/scratch/kocevski/271615/ft1_filteredMKT_4FGL_J0312.8+0134_daily_bin959.fits ra=48.2222 dec=1.5724 rad=12.0 tmin=487900801.0 tmax=488160001.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.31
user 5.74
sys 1.13

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/271615/ft2_4FGL_J0312.8+0134_daily_bin959.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/271615/ft2_4FGL_J0312.8+0134_daily_bin959.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/271615/ft1_filteredMKT_4FGL_J0312.8+0134_daily_bin959.fits evtable="EVENTS" outfile="/scratch/kocevski/271615/ft1_filtered_4FGL_J0312.8+0134_daily_bin959.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.87
user 0.33
sys 1.02

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/271615/ft1_filtered_4FGL_J0312.8+0134_daily_bin959.fits" evtable="EVENTS" scfile=/scratch/kocevski/271615/ft2_4FGL_J0312.8+0134_daily_bin959.fits sctable="SC_DATA" outfile=/scratch/kocevski/271615/ltcube_487900801_488160001_4FGL_J0312.8+0134_daily_bin959.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/271615/ft2_4FGL_J0312.8+0134_daily_bin959.fits
.....................!
real 14.04
user 12.19
sys 1.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271615/ft1_filtered_4FGL_J0312.8+0134_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/271615/ft2_4FGL_J0312.8+0134_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/271615/ltcube_487900801_488160001_4FGL_J0312.8+0134_daily_bin959.fits outfile=/scratch/kocevski/271615/expmap_487900801_488160001_4FGL_J0312.8+0134_daily_bin959.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/271615/ltcube_487900801_488160001_4FGL_J0312.8+0134_daily_bin959.fits
.....................!
real 195.47
user 185.70
sys 5.98

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J0312.8+0134 @ 48.2222 1.5724

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/271615/ft1_filtered_4FGL_J0312.8+0134_daily_bin959.fits scfile=/scratch/kocevski/271615/ft2_4FGL_J0312.8+0134_daily_bin959.fits outfile=/scratch/kocevski/271615/cmap_487900801_488160001_4FGL_J0312.8+0134_daily_bin959.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=48.2222 yref=1.5724 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.52
user 0.38
sys 1.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/271615/ft1_filtered_4FGL_J0312.8+0134_daily_bin959.fits scfile=/scratch/kocevski/271615/ft2_4FGL_J0312.8+0134_daily_bin959.fits outfile=/scratch/kocevski/271615/cmap_HighResolution_487900801_488160001_4FGL_J0312.8+0134_daily_bin959.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=48.2222 yref=1.5724 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 2.42
user 0.39
sys 0.99

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/271615/ft1_filtered_4FGL_J0312.8+0134_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/271615/ft2_4FGL_J0312.8+0134_daily_bin959.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/271615/Model_4FGL_J0312.8+0134_daily_bin959.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/271615/ft1_filtered_4FGL_J0312.8+0134_daily_bin959.fits.....................!
real 93.83
user 85.32
sys 2.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/271615/ft1_filtered_4FGL_J0312.8+0134_daily_bin959.fits', '/scratch/kocevski/271615/ft2_4FGL_J0312.8+0134_daily_bin959.fits', expMap='/scratch/kocevski/271615/expmap_487900801_488160001_4FGL_J0312.8+0134_daily_bin959.fits', expCube='/scratch/kocevski/271615/ltcube_487900801_488160001_4FGL_J0312.8+0134_daily_bin959.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/271615/Model_4FGL_J0312.8+0134_daily_bin959.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0312.8+0134'

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  4.030e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.327e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.257e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/271615/ft1_filtered_4FGL_J0312.8+0134_daily_bin959.fits
Spacecraft file(s): /scratch/kocevski/271615/ft2_4FGL_J0312.8+0134_daily_bin959.fits
Exposure map: /scratch/kocevski/271615/expmap_487900801_488160001_4FGL_J0312.8+0134_daily_bin959.fits
Exposure cube: /scratch/kocevski/271615/ltcube_487900801_488160001_4FGL_J0312.8+0134_daily_bin959.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/271615/Model_4FGL_J0312.8+0134_daily_bin959.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) = 7193.70028189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0202       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.5683       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22603E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8549       1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.299       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4584       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.521       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7792       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3922       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.160       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.6368       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .71349       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .94558       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7193.656     FROM MIGRAD    STATUS=CONVERGED    344 CALLS     1484 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0068        25.185       -.25640E-04   -.15645E-03
   2  Prefactor     8.5692        11.040        .95429E-06    .80935E-05
   3  Prefactor     .10001E-03    6.7426        .15327E-05** at limit **
   4  Prefactor     1.8554        16.142        .67736E-07   -.19168E-03
   5  Prefactor     52.282        46.706       -.20463E-04    .81006E-05
   6  Prefactor     2.4597        5.0405       -.10993E-05   -.78131E-03
   7  norm          .10000E-03    2.9129        .16344E-07** at limit **
   8  norm          11.521        5.0506       -.15322E-06   -.13114E-03
   9  Prefactor     4.7684        11.795       -.61831E-05   -.10339E-03
  10  Prefactor     1.3926        2.8755       -.37306E-06   -.64797E-03
  11  norm          .10000E-03    4.6951        .15427E-05** at limit **
  12  Prefactor     22.158        13.171       -.12572E-05    .17771E-04
  13  Prefactor     .10000E-03    5.6564       -.69938E-06** at limit **
  14  Prefactor     .10000E-03    .99616        .15190E-07** at limit **
  15  Prefactor     .10000E-03    4.4475       -.11378E-05** at limit **
  16  norm          6.6365        1.9760       -.20883E-06   -.71997E-04
  17  Normalizat    .71360        .18986        .67515E-05   -.13126E-03
  18  Prefactor     .94555        .81063E-01   -.62106E-06    .19914E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.00677
  Prefactor  = 8.56918
  Prefactor  = 0.000100008
  Prefactor  = 1.85544
  Prefactor  = 52.2824
  Prefactor  = 2.45969
  norm       = 0.0001
  norm       = 11.5214
  Prefactor  = 4.76839
  Prefactor  = 1.39257
  norm       = 0.0001
  Prefactor  = 22.1579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.63647
  Normalizat = 0.713598
  Prefactor  = 0.945554
 **********
 **   18 **HESSE 
 **********

 FCN=   7193.656     FROM HESSE     STATUS=OK           250 CALLS     1734 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0068        25.883        .29117E-03   -1.5425    
   2  Prefactor     8.5692        11.028        .13694E-03   -1.5122    
   3  Prefactor     .10001E-03    26.897        .42248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8554        16.196        .30605E-03   -1.5436    
   5  Prefactor     52.282        46.037        .27730E-03   -1.4261    
   6  Prefactor     2.4597        5.0498        .26085E-03   -1.5394    
   7  norm          .10000E-03    2.9143        .14137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.521        5.0532        .11803E-03   -1.5029    
   9  Prefactor     4.7684        11.836        .18404E-03   -1.5271    
  10  Prefactor     1.3926        2.8304        .20106E-03   -1.5472    
  11  norm          .10000E-03    4.7336        .17934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.158        13.164        .85089E-04   -1.4766    
  13  Prefactor     .10000E-03    5.6612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .99683        .82669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.4615        .17470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.6365        1.9758        .61208E-04   -1.5193    
  17  Normalizat    .71360        .20037        .37043E-03   -1.0336    
  18  Prefactor     .94555        .86885E-01    .15224E-03   -.94567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74616e-09
Minuit parameter uncertainties:
  1  14.4212
  2  11.0308
  3  0.000919017
  4  10.9675
  5  46.0684
  6  5.05071
  7  1.49145e-07
  8  5.0534
  9  11.8421
  10  2.83063
  11  1.46557e-05
  12  13.166
  13  2.52469e-06
  14  1.05398e-06
  15  9.40581e-06
  16  1.97582
  17  0.20058
  18  0.0868979
Done.

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

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  2.216e+01  1.317e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.327e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.257e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  9.456e-01  8.690e-02  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  7.136e-01  2.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.51
Ra Dec: 48.222 1.572
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 6.04e-08 +/- 3.59e-08
Energy Flux (Fixed Index): 2.19e-05 +/- 1.30e-05

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) = 7193.4439697
delta logL = 0.212141338559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7193.44387712
delta logL = 0.212233916232

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7193.444     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      274 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.173        496.54        .18535E-02    .65445E-04
   2  Index         2.0123        5.8830        .14923        .12706E-03
   3  Normalizat    .72637        .15880        .82977E-01    .39300E-04
   4  Prefactor     .94282        .50558E-01    .34494E-01    .72181E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.1726
  Index      = 2.01232
  Normalizat = 0.726367
  Prefactor  = 0.942824
 **********
 **   18 **HESSE 
 **********

 FCN=   7193.444     FROM HESSE     STATUS=OK            31 CALLS      305 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.173        19.567        .74141E-04   -1.4627    
   2  Index         2.0123        .47348        .74260E-02   -.64043    
   3  Normalizat    .72637        .18139        .36748E-03   -1.0286    
   4  Prefactor     .94282        .84859E-01    .15243E-03   -.94660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96902e-11
Minuit parameter uncertainties:
  1  19.5716
  2  0.474583
  3  0.181535
  4  0.0848705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271615': 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) = 7193.44387127
delta logL = 0.212239762058

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  2.917e+01  1.957e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.012e+00  4.746e-01  0.000e+00  1.000e+01 (-1.000e+00)
304        Scale:  1.257e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  9.428e-01  8.487e-02  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  7.264e-01  1.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.91
Ra Dec: 48.222 1.572
Photon Index (Free Index): 2.01 +/- 0.47
Photon Flux (Free Index): 4.69e-08 +/- 3.57e-08
Energy Flux (Free Index): 3.15e-05 +/- 2.91e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/271615/cmap_HighResolution_487900801_488160001_4FGL_J0312.8+0134_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.04e-08', energy_flux2='3.15e-05', photon_flux_error='3.59e-08', dlogl='2.12e-01', energy_flux='2.19e-05', photon_flux2='4.69e-08', job_status='DONE', time_completed='2021-08-17 21:19:07.475845', photon_index_error2='0.47', photon_index2='2.01', ts='6.51', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='2.91e-05', EG='0.71', time_epoch_completed='1629260347.48', return_code='0', job_id='271615', GAL2='0.94', EG2='0.73', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='3.57e-08', ts2='6.91', photon_index='2.33' WHERE bin_id='959' AND source_name='4FGL J0312.8+0134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 21:19:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 271615: <4FGL_J0312.8+0134_daily_bin959> in cluster <slac> Done

Job <4FGL_J0312.8+0134_daily_bin959> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 17 21:06:25 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 21:06:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 17 21:06:29 2021
Terminated at Tue Aug 17 21:19:08 2021
Results reported at Tue Aug 17 21:19:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0312.8+0134_daily_bin959 48.2222 1.5724 487900801 488160001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0312.8+0134 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   582.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            763 sec.

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

