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


Performing analysis on: 4FGL_J0312.8+0134_daily_bin649
RA = 48.2222, Dec = 1.5724
tmin = 407548801, tmax = 407808001
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='268467', job_status='RUN', time_executed='2021-08-17 20:58:54.474256', time_epoch_executed='1629259134.47' WHERE source_name='4FGL J0312.8+0134' and cadence='daily' and bin_id='649'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268467

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268467/ft1_4FGL_J0312.8+0134_daily_bin649.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268467/ft2_4FGL_J0312.8+0134_daily_bin649.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268467/ft1_4FGL_J0312.8+0134_daily_bin649.fits outfile=/scratch/kocevski/268467/ft1_filteredMKT_4FGL_J0312.8+0134_daily_bin649.fits ra=48.2222 dec=1.5724 rad=12.0 tmin=407548801.0 tmax=407808001.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.31
user 3.32
sys 3.08

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/268467/ft2_4FGL_J0312.8+0134_daily_bin649.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/268467/ft1_filteredMKT_4FGL_J0312.8+0134_daily_bin649.fits evtable="EVENTS" outfile="/scratch/kocevski/268467/ft1_filtered_4FGL_J0312.8+0134_daily_bin649.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 5.29
user 0.35
sys 3.01

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268467/ft1_filtered_4FGL_J0312.8+0134_daily_bin649.fits" evtable="EVENTS" scfile=/scratch/kocevski/268467/ft2_4FGL_J0312.8+0134_daily_bin649.fits sctable="SC_DATA" outfile=/scratch/kocevski/268467/ltcube_407548801_407808001_4FGL_J0312.8+0134_daily_bin649.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/268467/ft2_4FGL_J0312.8+0134_daily_bin649.fits
.....................!
real 18.56
user 12.56
sys 3.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268467/ft1_filtered_4FGL_J0312.8+0134_daily_bin649.fits evtable="EVENTS" scfile=/scratch/kocevski/268467/ft2_4FGL_J0312.8+0134_daily_bin649.fits sctable="SC_DATA" expcube=/scratch/kocevski/268467/ltcube_407548801_407808001_4FGL_J0312.8+0134_daily_bin649.fits outfile=/scratch/kocevski/268467/expmap_407548801_407808001_4FGL_J0312.8+0134_daily_bin649.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/268467/ltcube_407548801_407808001_4FGL_J0312.8+0134_daily_bin649.fits
.....................!
real 198.60
user 185.28
sys 8.60

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/268467/ft1_filtered_4FGL_J0312.8+0134_daily_bin649.fits scfile=/scratch/kocevski/268467/ft2_4FGL_J0312.8+0134_daily_bin649.fits outfile=/scratch/kocevski/268467/cmap_407548801_407808001_4FGL_J0312.8+0134_daily_bin649.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.93
user 0.38
sys 3.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268467/ft1_filtered_4FGL_J0312.8+0134_daily_bin649.fits scfile=/scratch/kocevski/268467/ft2_4FGL_J0312.8+0134_daily_bin649.fits outfile=/scratch/kocevski/268467/cmap_HighResolution_407548801_407808001_4FGL_J0312.8+0134_daily_bin649.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 3.50
user 0.41
sys 2.91

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.857       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12883E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1612       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6824       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0130       1.0000         .10000E-03   10000.    
    11 'norm      '    .13746E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .54457E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.2220       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .93628       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0640       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=   6993.805     FROM MIGRAD    STATUS=CONVERGED    349 CALLS     1713 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.819        24.817       -.42484E-04   -.60985E-04
   2  Prefactor     .10001E-03    14.906       -.29457E-05** at limit **
   3  Prefactor     5.1752        21.234        .35249E-04    .76128E-04
   4  Prefactor     .10000E-03    14.963       -.42849E-05** at limit **
   5  Prefactor     .10000E-03    17.693        .19787E-04** at limit **
   6  Prefactor     7.6804        7.7208       -.12713E-05   -.20972E-03
   7  norm          .10000E-03    4.4398       -.31661E-07** at limit **
   8  norm          .10000E-03    1.4524        .17606E-07** at limit **
   9  Prefactor     .10000E-03    13.541       -.13615E-04** at limit **
  10  Prefactor     2.0126        4.4398       -.22736E-05   -.63951E-03
  11  norm          .10000E-03    4.1416       -.22626E-06** at limit **
  12  Prefactor     .10000E-03    7.7712       -.18694E-05** at limit **
  13  Prefactor     .10000E-03    10.000        .80669E-05** at limit **
  14  Prefactor     .10000E-03    2.9925       -.35736E-06** at limit **
  15  Prefactor     .10000E-03    10.581       -.24201E-06** at limit **
  16  norm          4.2217        1.7150       -.80398E-07   -.57210E-05
  17  Normalizat    .93628        .20435        .36946E-06    .15287E-03
  18  Prefactor     1.0640        .90247E-01    .10717E-05    .15102E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.8186
  Prefactor  = 0.000100005
  Prefactor  = 5.1752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.68036
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.01263
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.2217
  Normalizat = 0.936278
  Prefactor  = 1.06405
 **********
 **   18 **HESSE 
 **********

 FCN=   6993.805     FROM HESSE     STATUS=OK           242 CALLS     1955 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.819        24.827        .82009E-04   -1.4731    
   2  Prefactor     .10001E-03    15.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.1752        21.265        .17696E-03   -1.5253    
   4  Prefactor     .10000E-03    15.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.6804        7.7055        .14468E-03   -1.5154    
   7  norm          .10000E-03    4.4477        .17209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.4648        .98403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.0126        4.4102        .25266E-03   -1.5424    
  11  norm          .10000E-03    31.682        .32132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.7999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.533        .27426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.2217        1.7145        .67131E-04   -1.5297    
  17  Normalizat    .93628        .22232        .37001E-03   -.95197    
  18  Prefactor     1.0640        .96663E-01    .15760E-03   -.90624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.5162e-10
Minuit parameter uncertainties:
  1  24.8382
  2  0.000567622
  3  20.9938
  4  9.68712e-06
  5  1.00099e-05
  6  7.70653
  7  6.57581e-07
  8  5.32845e-07
  9  3.96291e-05
  10  4.41096
  11  0.000351522
  12  3.2009e-06
  13  2.9203e-06
  14  3.62394e-05
  15  1.9935e-05
  16  1.71456
  17  0.222536
  18  0.0966789
Done.

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

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  3.201e-06  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.064e+00  9.668e-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:  9.363e-01  2.225e-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: 7.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/268467/likelihoodResults_407548801_407808001_4FGL_J0312.8+0134_daily_bin649.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) = 6993.80523409
delta logL = -0.000611012012087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6993.80462362
delta logL = -5.43321220903e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2825       1.0000          .0000       10.000    
     3 'Normalizat'    .93609       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0641       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=   6993.805     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      244 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10595E-03    5.9700        .18142E-01** at limit **
   2  Index         2.1719        8.6917        .50000        .36861E-04
   3  Normalizat    .93627        .45092E-02    .37002E-03   -.29425E-03
   4  Prefactor     1.0641        .20486E-02    .15760E-03   -.27654E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105951
  Index      = 2.17192
  Normalizat = 0.936274
  Prefactor  = 1.06405
 **********
 **   18 **HESSE 
 **********

 FCN=   6993.805     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10595E-03    54.990        .25913E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1719        8.0584        .50000       -.60118    
   3  Normalizat    .93627        .13646E-01    .14801E-04   -.95197    
   4  Prefactor     1.0641        .61996E-02    .31519E-04   -.90624    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.78992e-09
Minuit parameter uncertainties:
  1  0.0362136
  2  201.823
  3  0.0136458
  4  0.00619964
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268467': 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) = 6993.80462184
delta logL = 1.23644804262e-06

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  1.060e-04  3.621e-02  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.172e+00  2.018e+02  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.064e+00  6.200e-03  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:  9.363e-01  1.365e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/268467/cmap_HighResolution_407548801_407808001_4FGL_J0312.8+0134_daily_bin649.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.11e-03', job_status='DONE', photon_flux_upper_limit='7.94e-08', time_completed='2021-08-17 21:10:06.903658', job_id='268467', GAL2='1.06', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1629259806.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.24e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='649' AND source_name='4FGL J0312.8+0134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 21:10:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 268467: <4FGL_J0312.8+0134_daily_bin649> in cluster <slac> Done

Job <4FGL_J0312.8+0134_daily_bin649> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Aug 17 20:55:47 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 20:56:25 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:25 2021
Terminated at Tue Aug 17 21:10:08 2021
Results reported at Tue Aug 17 21:10:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0312.8+0134_daily_bin649 48.2222 1.5724 407548801 407808001 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 :                                   692.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            861 sec.

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

