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


Performing analysis on: 4FGL_J0312.8+0134_daily_bin644
RA = 48.2222, Dec = 1.5724
tmin = 406252801, tmax = 406512001
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='268459', job_status='RUN', time_executed='2021-08-17 20:57:58.653199', time_epoch_executed='1629259078.65' WHERE source_name='4FGL J0312.8+0134' and cadence='daily' and bin_id='644'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268459

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268459/ft1_4FGL_J0312.8+0134_daily_bin644.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268459/ft2_4FGL_J0312.8+0134_daily_bin644.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268459/ft1_4FGL_J0312.8+0134_daily_bin644.fits outfile=/scratch/kocevski/268459/ft1_filteredMKT_4FGL_J0312.8+0134_daily_bin644.fits ra=48.2222 dec=1.5724 rad=12.0 tmin=406252801.0 tmax=406512001.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 4.83
user 3.60
sys 0.56

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/268459/ft2_4FGL_J0312.8+0134_daily_bin644.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/268459/ft1_filteredMKT_4FGL_J0312.8+0134_daily_bin644.fits evtable="EVENTS" outfile="/scratch/kocevski/268459/ft1_filtered_4FGL_J0312.8+0134_daily_bin644.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.19
user 0.32
sys 0.47

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268459/ft1_filtered_4FGL_J0312.8+0134_daily_bin644.fits evtable="EVENTS" scfile=/scratch/kocevski/268459/ft2_4FGL_J0312.8+0134_daily_bin644.fits sctable="SC_DATA" expcube=/scratch/kocevski/268459/ltcube_406252801_406512001_4FGL_J0312.8+0134_daily_bin644.fits outfile=/scratch/kocevski/268459/expmap_406252801_406512001_4FGL_J0312.8+0134_daily_bin644.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/268459/ltcube_406252801_406512001_4FGL_J0312.8+0134_daily_bin644.fits
.....................!
real 193.20
user 185.65
sys 4.57

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/268459/ft1_filtered_4FGL_J0312.8+0134_daily_bin644.fits scfile=/scratch/kocevski/268459/ft2_4FGL_J0312.8+0134_daily_bin644.fits outfile=/scratch/kocevski/268459/cmap_406252801_406512001_4FGL_J0312.8+0134_daily_bin644.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.07
user 0.37
sys 0.52

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268459/ft1_filtered_4FGL_J0312.8+0134_daily_bin644.fits scfile=/scratch/kocevski/268459/ft2_4FGL_J0312.8+0134_daily_bin644.fits outfile=/scratch/kocevski/268459/cmap_HighResolution_406252801_406512001_4FGL_J0312.8+0134_daily_bin644.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.00
user 0.37
sys 0.46

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5239       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.802       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6941       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.6864       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.5255       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14359E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.846       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2997       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.5643       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .51765       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1671       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=   8596.398     FROM MIGRAD    STATUS=CONVERGED    375 CALLS     1793 TOTAL
                     EDM=   .45E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5152        18.524        .26590E-06   -.91474E-06
   2  Prefactor     16.800        13.226       -.28508E-06   -.99947E-05
   3  Prefactor     .10000E-03    9.1425       -.44102E-07** at limit **
   4  Prefactor     4.6954        11.690       -.54964E-06    .57697E-05
   5  Prefactor     .10000E-03    18.786        .39461E-07** at limit **
   6  Prefactor     .10000E-03    2.4796       -.92907E-07** at limit **
   7  norm          .10000E-03    5.4209       -.20030E-07** at limit **
   8  norm          7.6858        5.1642       -.23800E-07   -.34563E-04
   9  Prefactor     .10000E-03    3.2453       -.18048E-07** at limit **
  10  Prefactor     7.5259        5.1415        .39349E-06    .85191E-04
  11  norm          .10000E-03    2.9195       -.25364E-07** at limit **
  12  Prefactor     .10004E-03    17.513       -.14255E-05** at limit **
  13  Prefactor     20.794        28.108       -.12242E-05    .84941E-04
  14  Prefactor     2.2996        2.2955       -.51729E-07   -.29563E-05
  15  Prefactor     .10000E-03    30.359       -.82953E-06** at limit **
  16  norm          5.5642        1.9646       -.50247E-07    .70664E-05
  17  Normalizat    .51762        .20310        .50677E-05    .89357E-04
  18  Prefactor     1.1672        .88119E-01   -.29638E-06    .28884E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.51523
  Prefactor  = 16.8
  Prefactor  = 0.0001
  Prefactor  = 4.69541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.68578
  Prefactor  = 0.0001
  Prefactor  = 7.52594
  norm       = 0.0001
  Prefactor  = 0.00010004
  Prefactor  = 20.7944
  Prefactor  = 2.29964
  Prefactor  = 0.0001
  norm       = 5.56418
  Normalizat = 0.517617
  Prefactor  = 1.16715
 **********
 **   18 **HESSE 
 **********

 FCN=   8596.398     FROM HESSE     STATUS=OK           248 CALLS     2041 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5152        18.487        .13730E-03   -1.5124    
   2  Prefactor     16.800        13.217        .97711E-04   -1.4888    
   3  Prefactor     .10000E-03    9.1864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.6954        11.708        .18574E-03   -1.5275    
   5  Prefactor     .10000E-03    18.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4988        .14267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.4370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.6858        5.1733        .14464E-03   -1.5153    
   9  Prefactor     .10000E-03    3.2512        .16314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.5259        5.1317        .14619E-03   -1.5159    
  11  norm          .10000E-03    2.9420        .15471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10004E-03    98.688        .63891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.794        28.984        .87725E-04   -1.4796    
  14  Prefactor     2.2996        2.3087        .13687E-03   -1.5405    
  15  Prefactor     .10000E-03    31.446        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.5642        1.9614        .72986E-04   -1.5236    
  17  Normalizat    .51762        .20617        .47831E-03   -1.1161    
  18  Prefactor     1.1672        .91527E-01    .15503E-03   -.87348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27052e-10
Minuit parameter uncertainties:
  1  18.499
  2  13.2195
  3  2.72271e-05
  4  11.714
  5  1.77442e-05
  6  7.22501e-06
  7  6.27537e-06
  8  5.17359
  9  6.51461e-06
  10  5.13195
  11  4.50201e-06
  12  0.00399835
  13  29.0034
  14  2.30876
  15  0.000114341
  16  1.96145
  17  0.206475
  18  0.0915397
Done.

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

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  3.998e-03  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.167e+00  9.154e-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:  5.176e-01  2.065e-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.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/268459/likelihoodResults_406252801_406512001_4FGL_J0312.8+0134_daily_bin644.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) = 8596.39808339
delta logL = -4.79318459838e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8596.39808338
delta logL = -4.79192167404e-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'    .51761       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1672       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=   8595.264     FROM MIGRAD    STATUS=CONVERGED    115 CALLS      286 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0968        12.066        .90712E-02    .72086E-03
   2  Index         4.0924        2.3509        .96907E-01    .21646E-03
   3  Normalizat    .42146        .55625E-01    .11861       -.10202E-04
   4  Prefactor     1.1852        .26299E-01    .35458E-01   -.90776E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.09678
  Index      = 4.09244
  Normalizat = 0.421462
  Prefactor  = 1.18521
 **********
 **   18 **HESSE 
 **********

 FCN=   8595.264     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      319 TOTAL
                     EDM=   .88E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0968        26.961        .66529E-04   -1.5499    
   2  Index         4.0924        3.8445        .47707E-02   -.18252    
   3  Normalizat    .42146        .17937        .52614E-03   -1.1621    
   4  Prefactor     1.1852        .83506E-01    .15379E-03   -.86788    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.76685e-07
Minuit parameter uncertainties:
  1  10.8807
  2  4.41381
  3  0.179613
  4  0.0835157
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268459': 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) = 8595.26365473
delta logL = 1.13438073202

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  1.097e+00  1.088e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  4.092e+00  4.414e+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.185e+00  8.352e-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:  4.215e-01  1.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.51
Ra Dec: 48.222 1.572
Photon Index (Free Index): 4.09 +/- 4.41
Photon Flux (Free Index): 1.12e-07 +/- 8.26e-08
Energy Flux (Free Index): 1.66e-05 +/- 1.82e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.90e-03', comment='SUCCESS', energy_flux2='1.66e-05', dlogl='1.13e+00', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-08-17 21:09:28.807032', photon_index_error2='4.41', photon_index2='4.09', ts='-0.00', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='1.82e-05', EG='0.52', time_epoch_completed='1629259768.81', return_code='0', job_id='268459', GAL2='1.19', EG2='0.42', return_code2='102', photon_flux_error2='8.26e-08', ts2='2.51', photon_index='2.33' WHERE bin_id='644' AND source_name='4FGL J0312.8+0134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 21:09:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 268459: <4FGL_J0312.8+0134_daily_bin644> in cluster <slac> Done

Job <4FGL_J0312.8+0134_daily_bin644> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Aug 17 20:55:46 2021
Job was executed on host(s) <bullet0214>, 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:09:29 2021
Results reported at Tue Aug 17 21:09:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0312.8+0134_daily_bin644 48.2222 1.5724 406252801 406512001 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 :                                   683.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            823 sec.

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

