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


Performing analysis on: 4FGL_J0312.8+0134_daily_bin613
RA = 48.2222, Dec = 1.5724
tmin = 398217601, tmax = 398476801
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='268411', job_status='RUN', time_executed='2021-08-17 21:01:51.038943', time_epoch_executed='1629259311.04' WHERE source_name='4FGL J0312.8+0134' and cadence='daily' and bin_id='613'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268411

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268411/ft1_4FGL_J0312.8+0134_daily_bin613.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268411/ft2_4FGL_J0312.8+0134_daily_bin613.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268411/ft1_4FGL_J0312.8+0134_daily_bin613.fits outfile=/scratch/kocevski/268411/ft1_filteredMKT_4FGL_J0312.8+0134_daily_bin613.fits ra=48.2222 dec=1.5724 rad=12.0 tmin=398217601.0 tmax=398476801.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.06
user 6.23
sys 0.60

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268411/ft1_filtered_4FGL_J0312.8+0134_daily_bin613.fits" evtable="EVENTS" scfile=/scratch/kocevski/268411/ft2_4FGL_J0312.8+0134_daily_bin613.fits sctable="SC_DATA" outfile=/scratch/kocevski/268411/ltcube_398217601_398476801_4FGL_J0312.8+0134_daily_bin613.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/268411/ft2_4FGL_J0312.8+0134_daily_bin613.fits
.....................!
real 12.30
user 11.29
sys 0.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268411/ft1_filtered_4FGL_J0312.8+0134_daily_bin613.fits evtable="EVENTS" scfile=/scratch/kocevski/268411/ft2_4FGL_J0312.8+0134_daily_bin613.fits sctable="SC_DATA" expcube=/scratch/kocevski/268411/ltcube_398217601_398476801_4FGL_J0312.8+0134_daily_bin613.fits outfile=/scratch/kocevski/268411/expmap_398217601_398476801_4FGL_J0312.8+0134_daily_bin613.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/268411/ltcube_398217601_398476801_4FGL_J0312.8+0134_daily_bin613.fits
.....................!
real 194.88
user 185.75
sys 5.68

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/268411/ft1_filtered_4FGL_J0312.8+0134_daily_bin613.fits scfile=/scratch/kocevski/268411/ft2_4FGL_J0312.8+0134_daily_bin613.fits outfile=/scratch/kocevski/268411/cmap_398217601_398476801_4FGL_J0312.8+0134_daily_bin613.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 1.26
user 0.37
sys 0.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268411/ft1_filtered_4FGL_J0312.8+0134_daily_bin613.fits scfile=/scratch/kocevski/268411/ft2_4FGL_J0312.8+0134_daily_bin613.fits outfile=/scratch/kocevski/268411/cmap_HighResolution_398217601_398476801_4FGL_J0312.8+0134_daily_bin613.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 1.02
user 0.38
sys 0.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1136       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.3566       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.887       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0844       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.8692       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.0998       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7796       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19115E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2423       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.0408       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17994E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.9907       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .86495       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0012       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=   5418.642     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     2025 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1128        16.813        .75234E-08   -.66550E-05
   2  Prefactor     8.3558        14.908        .18808E-08   -.68033E-05
   3  Prefactor     .10000E-03    48.128        .76140E-06** at limit **
   4  Prefactor     12.888        20.638        .21797E-06   -.45526E-04
   5  Prefactor     .10000E-03    25.431       -.12070E-06** at limit **
   6  Prefactor     7.0841        7.2422        .25778E-06   -.35040E-03
   7  norm          .10000E-03    4.4568       -.48737E-07** at limit **
   8  norm          7.8691        5.8092       -.21517E-07   -.97922E-05
   9  Prefactor     .10000E-03    13.999        .15773E-07** at limit **
  10  Prefactor     7.0999        6.6704       -.22826E-06    .18225E-03
  11  norm          1.7786        1.0095       -.16010E-07   -.13629E-03
  12  Prefactor     .10000E-03    25.185       -.30500E-05** at limit **
  13  Prefactor     2.2471        100.64        .93824E-05    .29282E-04
  14  Prefactor     7.0406        5.9925        .75719E-07   -.16092E-03
  15  Prefactor     .10001E-03    12.834       -.25137E-06** at limit **
  16  norm          3.9907        1.8830       -.65124E-08    .19131E-03
  17  Normalizat    .86485        .24312       -.42110E-06    .99576E-04
  18  Prefactor     1.0013        .10048        .11770E-06    .30562E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.11276
  Prefactor  = 8.35584
  Prefactor  = 0.000100002
  Prefactor  = 12.8884
  Prefactor  = 0.0001
  Prefactor  = 7.08409
  norm       = 0.0001
  norm       = 7.86911
  Prefactor  = 0.0001
  Prefactor  = 7.09989
  norm       = 1.77857
  Prefactor  = 0.000100001
  Prefactor  = 2.24709
  Prefactor  = 7.04057
  Prefactor  = 0.000100006
  norm       = 3.99073
  Normalizat = 0.864853
  Prefactor  = 1.00127
 **********
 **   18 **HESSE 
 **********

 FCN=   5418.642     FROM HESSE     STATUS=OK           256 CALLS     2281 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1128        16.815        .66381E-03   -1.5104    
   2  Prefactor     8.3558        14.934        .69340E-03   -1.5130    
   3  Prefactor     .10000E-03    49.370        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.888        20.815        .11158E-03   -1.4990    
   5  Prefactor     .10000E-03    25.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.0841        7.1616        .15071E-03   -1.5176    
   7  norm          .10000E-03    4.4578        .15175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.8691        5.8130        .71469E-03   -1.5147    
   9  Prefactor     .10000E-03    14.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.0999        6.6291        .15055E-03   -1.5175    
  11  norm          1.7786        6.9858        .15687E-02   -1.5441    
  12  Prefactor     .10000E-03    139.27        .60171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.2471        107.64        .27446E-03   -1.5408    
  14  Prefactor     7.0406        6.0181        .15118E-03   -1.5177    
  15  Prefactor     .10001E-03    79.784        .50437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.9907        1.8837        .66754E-04   -1.5308    
  17  Normalizat    .86485        .26442        .38220E-03   -.97706    
  18  Prefactor     1.0013        .11200        .15883E-03   -.92687    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94921e-10
Minuit parameter uncertainties:
  1  16.8236
  2  14.9409
  3  0.000607784
  4  20.827
  5  6.23544e-05
  6  7.16244
  7  9.60664e-06
  8  5.8134
  9  4.2385e-06
  10  6.62982
  11  6.98896
  12  0.000778255
  13  31.1642
  14  6.01859
  15  0.00139036
  16  1.88373
  17  0.264812
  18  0.112022
Done.

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

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  7.783e-04  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:  1.001e+00  1.120e-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:  8.649e-01  2.648e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/268411/likelihoodResults_398217601_398476801_4FGL_J0312.8+0134_daily_bin613.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) = 5418.64228667
delta logL = -3.38794252457e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5418.64228667
delta logL = -3.38730906151e-05

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5418.320     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      254 TOTAL
                     EDM=   .26E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42306        6.5362        .39399E-05   -.43129E-05
   2  Index         4.2025        3.1272       -.50657E-04   -.11943E-06
   3  Normalizat    .80533        .24516        .29620E-05    .10198E-04
   4  Prefactor     1.0137        .10822       -.17743E-05    .11858E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.423058
  Index      = 4.20252
  Normalizat = 0.805325
  Prefactor  = 1.01369
 **********
 **   18 **HESSE 
 **********

 FCN=   5418.320     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      295 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42306        10.737        .14272E-01   -1.5578    
   2  Index         4.2025        3.0404        .11028       -.16018    
   3  Normalizat    .80533        .51531E-01    .89119E-01   -.99871    
   4  Prefactor     1.0137        .23006E-01    .45252E-01   -.92275    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10318e-10
Minuit parameter uncertainties:
  1  4.26289
  2  3.27557
  3  0.0515344
  4  0.0230067
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268411': 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) = 5418.32047245
delta logL = 0.321780344118

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  4.231e-01  4.263e+00  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  4.203e+00  3.276e+00  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:  1.014e+00  2.301e-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:  8.053e-01  5.153e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 48.222 1.572

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/268411/cmap_HighResolution_398217601_398476801_4FGL_J0312.8+0134_daily_bin613.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.38e-07', time_completed='2021-08-17 21:11:46.360433', job_id='268411', GAL2='1.01', fit_tolerance='1e-08', EG2='0.81', EG='0.86', time_epoch_completed='1629259906.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.22e-01', ts2='0.69', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='613' AND source_name='4FGL J0312.8+0134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 21:11:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 268411: <4FGL_J0312.8+0134_daily_bin613> in cluster <slac> Done

Job <4FGL_J0312.8+0134_daily_bin613> 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) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 20:56:03 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:03 2021
Terminated at Tue Aug 17 21:11:47 2021
Results reported at Tue Aug 17 21:11:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0312.8+0134_daily_bin613 48.2222 1.5724 398217601 398476801 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.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             249.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            965 sec.

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

