/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 63 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 = 7420
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0312.8+0134_daily_bin295
RA = 48.2222, Dec = 1.5724
tmin = 315792001, tmax = 316051201
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='265831', job_status='RUN', time_executed='2021-08-17 20:53:18.807055', time_epoch_executed='1629258798.81' WHERE source_name='4FGL J0312.8+0134' and cadence='daily' and bin_id='295'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265831

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265831/ft1_4FGL_J0312.8+0134_daily_bin295.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265831/ft2_4FGL_J0312.8+0134_daily_bin295.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265831/ft1_4FGL_J0312.8+0134_daily_bin295.fits outfile=/scratch/kocevski/265831/ft1_filteredMKT_4FGL_J0312.8+0134_daily_bin295.fits ra=48.2222 dec=1.5724 rad=12.0 tmin=315792001.0 tmax=316051201.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 5.04
user 3.38
sys 1.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/265831/ft2_4FGL_J0312.8+0134_daily_bin295.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/265831/ft1_filteredMKT_4FGL_J0312.8+0134_daily_bin295.fits evtable="EVENTS" outfile="/scratch/kocevski/265831/ft1_filtered_4FGL_J0312.8+0134_daily_bin295.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 2.01
user 0.33
sys 1.10

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265831/ft1_filtered_4FGL_J0312.8+0134_daily_bin295.fits" evtable="EVENTS" scfile=/scratch/kocevski/265831/ft2_4FGL_J0312.8+0134_daily_bin295.fits sctable="SC_DATA" outfile=/scratch/kocevski/265831/ltcube_315792001_316051201_4FGL_J0312.8+0134_daily_bin295.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/265831/ft2_4FGL_J0312.8+0134_daily_bin295.fits
.....................!
real 14.79
user 12.60
sys 1.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265831/ft1_filtered_4FGL_J0312.8+0134_daily_bin295.fits evtable="EVENTS" scfile=/scratch/kocevski/265831/ft2_4FGL_J0312.8+0134_daily_bin295.fits sctable="SC_DATA" expcube=/scratch/kocevski/265831/ltcube_315792001_316051201_4FGL_J0312.8+0134_daily_bin295.fits outfile=/scratch/kocevski/265831/expmap_315792001_316051201_4FGL_J0312.8+0134_daily_bin295.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/265831/ltcube_315792001_316051201_4FGL_J0312.8+0134_daily_bin295.fits
.....................!
real 195.86
user 186.41
sys 5.93

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/265831/ft1_filtered_4FGL_J0312.8+0134_daily_bin295.fits scfile=/scratch/kocevski/265831/ft2_4FGL_J0312.8+0134_daily_bin295.fits outfile=/scratch/kocevski/265831/cmap_315792001_316051201_4FGL_J0312.8+0134_daily_bin295.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 2.62
user 0.37
sys 1.09

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265831/ft1_filtered_4FGL_J0312.8+0134_daily_bin295.fits scfile=/scratch/kocevski/265831/ft2_4FGL_J0312.8+0134_daily_bin295.fits outfile=/scratch/kocevski/265831/cmap_HighResolution_315792001_316051201_4FGL_J0312.8+0134_daily_bin295.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.64
user 0.38
sys 1.07

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0480       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.344       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10560E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.0792       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.4389       1.0000         .10000E-03   10000.    
    11 'norm      '    .51393E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.189       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.7322       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1493       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .95011       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=   6177.111     FROM MIGRAD    STATUS=CONVERGED    368 CALLS     1516 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0660        20.753        .72222E-02    .39405E-03
   2  Prefactor     .10000E-03    4.6861        .90712E-02** at limit **
   3  Prefactor     11.337        20.846        .29737E-02   -.86581E-03
   4  Prefactor     .10000E-03    3.2248        .90712E-02** at limit **
   5  Prefactor     .10000E-03    30.100        .90712E-02** at limit **
   6  Prefactor     .10000E-03    5.7631        .90712E-02** at limit **
   7  norm          .10000E-03    12.637        .90712E-02** at limit **
   8  norm          8.0826        4.8419        .35264E-02    .29266E-02
   9  Prefactor     .10000E-03    7.0152        .90712E-02** at limit **
  10  Prefactor     4.4380        4.7666        .47783E-02    .40020E-03
  11  norm          .10000E-03    5.9237        .67864E-01** at limit **
  12  Prefactor     10.187        12.832        .31382E-02   -.15961E-03
  13  Prefactor     .10002E-03    14.985        .90712E-02** at limit **
  14  Prefactor     .10000E-03    3.5081        .90712E-02** at limit **
  15  Prefactor     .10001E-03    15.193        .90712E-02** at limit **
  16  norm          1.7319        1.2724        .79735E-02    .50959E-04
  17  Normalizat    1.1493        .21112        .76176E-01   -.10274E-04
  18  Prefactor     .95023        .92003E-01    .45640E-01   -.92010E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.066
  Prefactor  = 0.0001
  Prefactor  = 11.3365
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.08257
  Prefactor  = 0.0001
  Prefactor  = 4.43802
  norm       = 0.000100002
  Prefactor  = 10.1874
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  norm       = 1.7319
  Normalizat = 1.14928
  Prefactor  = 0.950228
 **********
 **   18 **HESSE 
 **********

 FCN=   6177.111     FROM HESSE     STATUS=OK           246 CALLS     1762 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0660        20.669        .28889E-03   -1.5420    
   2  Prefactor     .10000E-03    4.6937        .16616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.337        20.954        .11895E-03   -1.5034    
   4  Prefactor     .10000E-03    3.2264        .13784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.8992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    12.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.0826        4.8410        .64391E-03   -1.5139    
   9  Prefactor     .10000E-03    7.0376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.4380        4.7647        .17227E-03   -1.5287    
  11  norm          .10000E-03    7.8353        .56002E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.187        12.832        .12553E-03   -1.5070    
  13  Prefactor     .10002E-03    15.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.5478        .14370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    15.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7319        1.2755        .73514E-04   -1.5445    
  17  Normalizat    1.1493        .23408        .33714E-03   -.88185    
  18  Prefactor     .95023        .10228        .16328E-03   -.94407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.97046e-09
Minuit parameter uncertainties:
  1  13.075
  2  1.07984e-05
  3  20.9676
  4  3.22271e-07
  5  7.04959e-05
  6  5.72884e-06
  7  0.000121286
  8  4.84121
  9  5.90512e-06
  10  4.76512
  11  0.000233356
  12  12.8352
  13  0.000973416
  14  1.53619e-06
  15  0.000923466
  16  1.27548
  17  0.23429
  18  0.102304
Done.

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

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  1.019e+01  1.284e+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.502e-01  1.023e-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:  1.149e+00  2.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.18
Ra Dec: 48.222 1.572
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 2.78e-08 +/- 3.50e-08
Energy Flux (Fixed Index): 1.01e-05 +/- 1.27e-05

TS (Fixed Index): 1.18
Ra Dec: 48.222 1.572
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/265831/likelihoodResults_315792001_316051201_4FGL_J0312.8+0134_daily_bin295.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) = 6176.9770743
delta logL = 0.133492462702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6176.96664774
delta logL = 0.143919028205

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.483       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8340       1.0000          .0000       10.000    
     3 'Normalizat'    1.1600       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94810       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=   6176.967     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      270 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.454        834.85        .27271E-02    .68961E-04
   2  Index         1.8319        5.6634        .26841       -.25717E-05
   3  Normalizat    1.1601        .18151        .75867E-01    .39425E-05
   4  Prefactor     .94807        .49672E-01    .45615E-01   -.18834E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.4539
  Index      = 1.83194
  Normalizat = 1.16013
  Prefactor  = 0.948074
 **********
 **   18 **HESSE 
 **********

 FCN=   6176.967     FROM HESSE     STATUS=OK            33 CALLS      303 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.454        16.585        .54542E-03   -1.4974    
   2  Index         1.8319        .84136        .12159E-01   -.68621    
   3  Normalizat    1.1601        .22417        .33577E-03   -.87844    
   4  Prefactor     .94807        .10013        .16343E-03   -.94481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.99927e-12
Minuit parameter uncertainties:
  1  16.5909
  2  0.848137
  3  0.224351
  4  0.100148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265831': 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) = 6176.96664315
delta logL = 0.14392362067

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  1.345e+01  1.659e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  1.832e+00  8.481e-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.481e-01  1.001e-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:  1.160e+00  2.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.46
Ra Dec: 48.222 1.572
Photon Index (Free Index): 1.83 +/- 0.85
Photon Flux (Free Index): 1.66e-08 +/- 2.73e-08
Energy Flux (Free Index): 1.81e-05 +/- 3.37e-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/265831/cmap_HighResolution_315792001_316051201_4FGL_J0312.8+0134_daily_bin295.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.63e-03', comment='SUCCESS', photon_flux='2.78e-08', energy_flux2='1.81e-05', photon_flux_error='3.50e-08', dlogl='1.44e-01', energy_flux='1.01e-05', photon_flux2='1.66e-08', job_status='DONE', time_completed='2021-08-17 21:03:15.088747', photon_index_error2='0.85', photon_index2='1.83', ts='1.18', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='3.37e-05', EG='1.15', time_epoch_completed='1629259395.09', return_code='0', job_id='265831', GAL2='0.95', EG2='1.16', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='2.73e-08', ts2='1.46', photon_index='2.33' WHERE bin_id='295' AND source_name='4FGL J0312.8+0134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 21:03:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 265831: <4FGL_J0312.8+0134_daily_bin295> in cluster <slac> Done

Job <4FGL_J0312.8+0134_daily_bin295> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Aug 17 20:46:37 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 20:50:39 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:50:39 2021
Terminated at Tue Aug 17 21:03:16 2021
Results reported at Tue Aug 17 21:03:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0312.8+0134_daily_bin295 48.2222 1.5724 315792001 316051201 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 :                                   591.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            999 sec.

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

