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


Performing analysis on: 4FGL_J0312.8+0134_daily_bin614
RA = 48.2222, Dec = 1.5724
tmin = 398476801, tmax = 398736001
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='268412', job_status='RUN', time_executed='2021-08-17 21:00:41.432374', time_epoch_executed='1629259241.43' WHERE source_name='4FGL J0312.8+0134' and cadence='daily' and bin_id='614'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268412

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268412/ft1_4FGL_J0312.8+0134_daily_bin614.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268412/ft2_4FGL_J0312.8+0134_daily_bin614.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268412/ft1_4FGL_J0312.8+0134_daily_bin614.fits outfile=/scratch/kocevski/268412/ft1_filteredMKT_4FGL_J0312.8+0134_daily_bin614.fits ra=48.2222 dec=1.5724 rad=12.0 tmin=398476801.0 tmax=398736001.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 17.29
user 7.25
sys 9.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/268412/ft2_4FGL_J0312.8+0134_daily_bin614.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/268412/ft1_filteredMKT_4FGL_J0312.8+0134_daily_bin614.fits evtable="EVENTS" outfile="/scratch/kocevski/268412/ft1_filtered_4FGL_J0312.8+0134_daily_bin614.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 10.29
user 0.34
sys 8.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268412/ft1_filtered_4FGL_J0312.8+0134_daily_bin614.fits" evtable="EVENTS" scfile=/scratch/kocevski/268412/ft2_4FGL_J0312.8+0134_daily_bin614.fits sctable="SC_DATA" outfile=/scratch/kocevski/268412/ltcube_398476801_398736001_4FGL_J0312.8+0134_daily_bin614.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/268412/ft2_4FGL_J0312.8+0134_daily_bin614.fits
.....................!
real 26.35
user 13.99
sys 10.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268412/ft1_filtered_4FGL_J0312.8+0134_daily_bin614.fits evtable="EVENTS" scfile=/scratch/kocevski/268412/ft2_4FGL_J0312.8+0134_daily_bin614.fits sctable="SC_DATA" expcube=/scratch/kocevski/268412/ltcube_398476801_398736001_4FGL_J0312.8+0134_daily_bin614.fits outfile=/scratch/kocevski/268412/expmap_398476801_398736001_4FGL_J0312.8+0134_daily_bin614.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/268412/ltcube_398476801_398736001_4FGL_J0312.8+0134_daily_bin614.fits
.....................!
real 204.15
user 185.16
sys 16.92

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/268412/ft1_filtered_4FGL_J0312.8+0134_daily_bin614.fits scfile=/scratch/kocevski/268412/ft2_4FGL_J0312.8+0134_daily_bin614.fits outfile=/scratch/kocevski/268412/cmap_398476801_398736001_4FGL_J0312.8+0134_daily_bin614.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 9.97
user 0.39
sys 9.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268412/ft1_filtered_4FGL_J0312.8+0134_daily_bin614.fits scfile=/scratch/kocevski/268412/ft2_4FGL_J0312.8+0134_daily_bin614.fits outfile=/scratch/kocevski/268412/cmap_HighResolution_398476801_398736001_4FGL_J0312.8+0134_daily_bin614.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 10.69
user 0.38
sys 9.02

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/268412/ft1_filtered_4FGL_J0312.8+0134_daily_bin614.fits', '/scratch/kocevski/268412/ft2_4FGL_J0312.8+0134_daily_bin614.fits', expMap='/scratch/kocevski/268412/expmap_398476801_398736001_4FGL_J0312.8+0134_daily_bin614.fits', expCube='/scratch/kocevski/268412/ltcube_398476801_398736001_4FGL_J0312.8+0134_daily_bin614.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/268412/Model_4FGL_J0312.8+0134_daily_bin614.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/268412/ft1_filtered_4FGL_J0312.8+0134_daily_bin614.fits
Spacecraft file(s): /scratch/kocevski/268412/ft2_4FGL_J0312.8+0134_daily_bin614.fits
Exposure map: /scratch/kocevski/268412/expmap_398476801_398736001_4FGL_J0312.8+0134_daily_bin614.fits
Exposure cube: /scratch/kocevski/268412/ltcube_398476801_398736001_4FGL_J0312.8+0134_daily_bin614.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/268412/Model_4FGL_J0312.8+0134_daily_bin614.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) = 3359.22133559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4148       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.879       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    42.848       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    49.292       1.0000         .10000E-03   10000.    
     8 'norm      '    6.0000       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3701       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.792       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10468E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .34094E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7389       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .53702       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .99519       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=   3359.214     FROM MIGRAD    STATUS=CONVERGED    354 CALLS     1704 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4301        57.281        .19441E-04   -.14988E-04
   2  Prefactor     .10000E-03    22.968        .92307E-05** at limit **
   3  Prefactor     22.879        31.033       -.64834E-05   -.35594E-04
   4  Prefactor     .10000E-03    27.720        .27807E-05** at limit **
   5  Prefactor     42.879        94.116        .40987E-04    .48023E-06
   6  Prefactor     .10000E-03    5.5549       -.87189E-07** at limit **
   7  norm          49.293        24.797       -.42254E-06    .22068E-04
   8  norm          5.9999        5.5920       -.32135E-05    .46466E-05
   9  Prefactor     2.3744        39.864       -.14013E-04   -.71484E-04
  10  Prefactor     .10000E-03    4.6079        .67137E-07** at limit **
  11  norm          .10000E-03    5.2960        .26002E-06** at limit **
  12  Prefactor     24.795        20.676       -.73698E-06    .10885E-03
  13  Prefactor     .10000E-03    23.711       -.12138E-04** at limit **
  14  Prefactor     .10000E-03    2.7028        .38720E-07** at limit **
  15  Prefactor     .10000E-03    21.180        .14986E-06** at limit **
  16  norm          2.7390        1.9911        .23197E-07   -.54121E-04
  17  Normalizat    .53688        .29918       -.33674E-05    .17128E-04
  18  Prefactor     .99520        .12307        .11816E-05   -.27739E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.43012
  Prefactor  = 0.0001
  Prefactor  = 22.8787
  Prefactor  = 0.000100001
  Prefactor  = 42.8787
  Prefactor  = 0.0001
  norm       = 49.2926
  norm       = 5.99988
  Prefactor  = 2.37443
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.7945
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 2.73896
  Normalizat = 0.536884
  Prefactor  = 0.995201
 **********
 **   18 **HESSE 
 **********

 FCN=   3359.214     FROM HESSE     STATUS=OK           244 CALLS     1948 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4301        56.599        .15847E-03   -1.5201    
   2  Prefactor     .10000E-03    23.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.879        31.063        .83742E-04   -1.4751    
   4  Prefactor     .10000E-03    27.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     42.879        94.060        .61243E-04   -1.4397    
   6  Prefactor     .10000E-03    5.5966        .13337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          49.293        24.786        .57117E-04   -1.4303    
   8  norm          5.9999        5.5901        .12706E-03   -1.5218    
   9  Prefactor     2.3744        40.233        .26614E-03   -1.5400    
  10  Prefactor     .10000E-03    4.6343        .12148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.3527        .13025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.795        20.646        .80452E-04   -1.4712    
  13  Prefactor     .10000E-03    23.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.7126        .93051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    156.29        .50449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7390        1.9852        .66686E-04   -1.5377    
  17  Normalizat    .53688        .30996        .43398E-03   -1.1074    
  18  Prefactor     .99520        .12987        .14462E-03   -.92890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94819e-10
Minuit parameter uncertainties:
  1  38.2024
  2  9.82477e-05
  3  31.0853
  4  0.000248906
  5  94.3879
  6  2.43399e-05
  7  24.7917
  8  5.59055
  9  19.563
  10  1.50027e-05
  11  5.8751e-06
  12  20.6517
  13  7.11509e-05
  14  8.56101e-07
  15  0.00175694
  16  1.98527
  17  0.310962
  18  0.129907
Done.

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

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  2.479e+01  2.065e+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.952e-01  1.299e-01  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:  5.369e-01  3.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.82
Ra Dec: 48.222 1.572
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 6.76e-08 +/- 5.63e-08
Energy Flux (Fixed Index): 2.45e-05 +/- 2.04e-05

TS (Fixed Index): 2.82
Ra Dec: 48.222 1.572
Photon Flux Upper Limit: 2.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.58e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/268412/likelihoodResults_398476801_398736001_4FGL_J0312.8+0134_daily_bin614.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) = 3359.08869451
delta logL = 0.125366071857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3359.08858353
delta logL = 0.125477053907

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.900       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0167       1.0000          .0000       10.000    
     3 'Normalizat'    .54887       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99248       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3359.089     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      297 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.928        31.751        .34412E-03    .59796E-05
   2  Index         2.0174        .59745        .61975E-02    .90381E-05
   3  Normalizat    .54882        .28412        .42949E-03    .48030E-04
   4  Prefactor     .99245        .12684        .14478E-03   -.99998E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.9283
  Index      = 2.01744
  Normalizat = 0.54882
  Prefactor  = 0.992448
 **********
 **   18 **HESSE 
 **********

 FCN=   3359.089     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.928        31.210        .13765E-04   -1.4542    
   2  Index         2.0174        .58720        .24790E-03   -.63915    
   3  Normalizat    .54882        .28412        .17180E-04   -1.1020    
   4  Prefactor     .99245        .12686        .28957E-04   -.92982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.50329e-11
Minuit parameter uncertainties:
  1  31.2252
  2  0.58932
  3  0.284879
  4  0.126894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268412': 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) = 3359.08858134
delta logL = 0.125479247521

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  3.393e+01  3.123e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.017e+00  5.893e-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.924e-01  1.269e-01  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:  5.488e-01  2.849e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.06
Ra Dec: 48.222 1.572
Photon Index (Free Index): 2.02 +/- 0.59
Photon Flux (Free Index): 5.50e-08 +/- 5.43e-08
Energy Flux (Free Index): 3.64e-05 +/- 4.45e-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/268412/cmap_HighResolution_398476801_398736001_4FGL_J0312.8+0134_daily_bin614.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-02', comment='SUCCESS', photon_flux='6.76e-08', energy_flux2='3.64e-05', photon_flux_error='5.63e-08', dlogl='1.25e-01', energy_flux='2.45e-05', photon_flux2='5.50e-08', job_status='DONE', time_completed='2021-08-17 21:11:28.863134', photon_index_error2='0.59', photon_index2='2.02', ts='2.82', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='2.06e-07', energy_flux_error2='4.45e-05', EG='0.54', time_epoch_completed='1629259888.86', return_code='0', job_id='268412', GAL2='0.99', EG2='0.55', return_code2='0', energy_flux_error='2.04e-05', photon_flux_error2='5.43e-08', ts2='3.06', photon_index='2.33' WHERE bin_id='614' AND source_name='4FGL J0312.8+0134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 21:11:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 268412: <4FGL_J0312.8+0134_daily_bin614> in cluster <slac> Done

Job <4FGL_J0312.8+0134_daily_bin614> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Aug 17 20:55:42 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 20:56:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 17 20:56:02 2021
Terminated at Tue Aug 17 21:11:31 2021
Results reported at Tue Aug 17 21:11:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0312.8+0134_daily_bin614 48.2222 1.5724 398476801 398736001 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 :                                   753.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             214.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            949 sec.

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

