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


Performing analysis on: 4FGL_J0312.8+0134_daily_bin684
RA = 48.2222, Dec = 1.5724
tmin = 416620801, tmax = 416880001
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='268522', job_status='RUN', time_executed='2021-08-17 20:59:51.673866', time_epoch_executed='1629259191.67' WHERE source_name='4FGL J0312.8+0134' and cadence='daily' and bin_id='684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268522

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268522/ft1_4FGL_J0312.8+0134_daily_bin684.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268522/ft2_4FGL_J0312.8+0134_daily_bin684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268522/ft1_4FGL_J0312.8+0134_daily_bin684.fits outfile=/scratch/kocevski/268522/ft1_filteredMKT_4FGL_J0312.8+0134_daily_bin684.fits ra=48.2222 dec=1.5724 rad=12.0 tmin=416620801.0 tmax=416880001.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 6.55
user 5.01
sys 1.01

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268522/ft1_filtered_4FGL_J0312.8+0134_daily_bin684.fits" evtable="EVENTS" scfile=/scratch/kocevski/268522/ft2_4FGL_J0312.8+0134_daily_bin684.fits sctable="SC_DATA" outfile=/scratch/kocevski/268522/ltcube_416620801_416880001_4FGL_J0312.8+0134_daily_bin684.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/268522/ft2_4FGL_J0312.8+0134_daily_bin684.fits
.....................!
real 14.71
user 12.37
sys 1.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268522/ft1_filtered_4FGL_J0312.8+0134_daily_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/268522/ft2_4FGL_J0312.8+0134_daily_bin684.fits sctable="SC_DATA" expcube=/scratch/kocevski/268522/ltcube_416620801_416880001_4FGL_J0312.8+0134_daily_bin684.fits outfile=/scratch/kocevski/268522/expmap_416620801_416880001_4FGL_J0312.8+0134_daily_bin684.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/268522/ltcube_416620801_416880001_4FGL_J0312.8+0134_daily_bin684.fits
.....................!
real 197.72
user 184.93
sys 6.66

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/268522/ft1_filtered_4FGL_J0312.8+0134_daily_bin684.fits scfile=/scratch/kocevski/268522/ft2_4FGL_J0312.8+0134_daily_bin684.fits outfile=/scratch/kocevski/268522/cmap_416620801_416880001_4FGL_J0312.8+0134_daily_bin684.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.87
user 0.37
sys 0.97

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268522/ft1_filtered_4FGL_J0312.8+0134_daily_bin684.fits scfile=/scratch/kocevski/268522/ft2_4FGL_J0312.8+0134_daily_bin684.fits outfile=/scratch/kocevski/268522/cmap_HighResolution_416620801_416880001_4FGL_J0312.8+0134_daily_bin684.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.63
user 0.37
sys 0.97

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16215E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.818       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7842       1.0000         .10000E-03   10000.    
     7 'norm      '    2.5153       1.0000         .10000E-03   10000.    
     8 'norm      '    10.968       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11882E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.2605       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0710       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.9004       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .83453       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0040       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=   4910.077     FROM MIGRAD    STATUS=CONVERGED    354 CALLS     1740 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    85.627        .90712E-02** at limit **
   2  Prefactor     .10000E-03    4.8835        .90712E-02** at limit **
   3  Prefactor     31.826        23.617        .17759E-02   -.12312E-02
   4  Prefactor     .10000E-03    6.3325        .90712E-02** at limit **
   5  Prefactor     .10000E-03    35.346        .90712E-02** at limit **
   6  Prefactor     8.7845        8.0646        .33810E-02    .18525E-02
   7  norm          2.5151        8.6804        .64403E-02    .35105E-03
   8  norm          10.968        5.5241        .30244E-02    .94475E-04
   9  Prefactor     .10000E-03    6.1825        .90712E-02** at limit **
  10  Prefactor     .10000E-03    5.8904        .90712E-02** at limit **
  11  norm          .10002E-03    7.3033        .68009E-01** at limit **
  12  Prefactor     .10000E-03    12.777        .90712E-02** at limit **
  13  Prefactor     7.2566        22.748        .37215E-02    .81260E-04
  14  Prefactor     2.0690        7.1682        .71762E-02   -.51529E-03
  15  Prefactor     .10000E-03    5.8315        .90712E-02** at limit **
  16  norm          5.9005        2.2969        .41330E-02    .65137E-04
  17  Normalizat    .83435        .23336        .85031E-01    .24280E-04
  18  Prefactor     1.0041        .10408        .44415E-01    .20259E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 31.8256
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.78454
  norm       = 2.51508
  norm       = 10.9677
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 7.25664
  Prefactor  = 2.06896
  Prefactor  = 0.0001
  norm       = 5.90047
  Normalizat = 0.834353
  Prefactor  = 1.00409
 **********
 **   18 **HESSE 
 **********

 FCN=   4910.077     FROM HESSE     STATUS=OK           246 CALLS     1986 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    88.137        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.8867        .15124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.826        23.664        .71035E-04   -1.4579    
   4  Prefactor     .10000E-03    6.3411        .17221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    35.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.7845        8.0609        .67621E-03   -1.5115    
   7  norm          2.5151        8.6583        .25761E-03   -1.5391    
   8  norm          10.968        5.5155        .11243E-03   -1.5045    
   9  Prefactor     .10000E-03    6.1943        .17016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.0952        .33183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10002E-03    84.471        .36039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.2566        22.708        .14886E-03   -1.5169    
  14  Prefactor     2.0690        7.1528        .28705E-03   -1.5420    
  15  Prefactor     .10000E-03    5.8379        .16526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.9005        2.2972        .63119E-04   -1.5222    
  17  Normalizat    .83435        .25470        .37655E-03   -.98807    
  18  Prefactor     1.0041        .11332        .15562E-03   -.92593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.88912e-09
Minuit parameter uncertainties:
  1  0.0021527
  2  6.73575e-07
  3  23.6708
  4  4.3069e-05
  5  8.04739e-06
  6  8.06191
  7  8.66262
  8  5.51578
  9  2.85685e-05
  10  0.000110543
  11  0.0025764
  12  2.36994e-05
  13  22.7345
  14  7.15578
  15  4.08793e-05
  16  2.29719
  17  0.255063
  18  0.113348
Done.

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

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  2.370e-05  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.004e+00  1.133e-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.344e-01  2.551e-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.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/268522/likelihoodResults_416620801_416880001_4FGL_J0312.8+0134_daily_bin684.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) = 4910.07707184
delta logL = -0.00037279731896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4910.07669934
delta logL = -2.93308403343e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3337       1.0000          .0000       10.000    
     3 'Normalizat'    .83421       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0041       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=   4910.077     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    818.48        .90712E-02** at limit **
   2  Index         2.3401        5.3349        .50000       -.43873E-05
   3  Normalizat    .83435        .59386E-01    .85031E-01    .20081E-04
   4  Prefactor     1.0041        .26844E-01    .44388E-01   -.78021E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.3401
  Normalizat = 0.834353
  Prefactor  = 1.00409
 **********
 **   18 **HESSE 
 **********

 FCN=   4910.077     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3401        6.1700        .50000       -.56094    
   3  Normalizat    .83435        .24065        .37655E-03   -.98807    
   4  Prefactor     1.0041        .10927        .15562E-03   -.92593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9384e-11
Minuit parameter uncertainties:
  1  1.22294e-05
  2  4.30892
  3  0.240963
  4  0.109295
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268522': 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) = 4910.07669903
delta logL = 1.31612978294e-08

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.223e-05  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.340e+00  4.309e+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.004e+00  1.093e-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.344e-01  2.410e-01  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/268522/cmap_HighResolution_416620801_416880001_4FGL_J0312.8+0134_daily_bin684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.68e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-08-17 21:09:18.417395', job_id='268522', GAL2='1.00', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1629259758.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.32e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='684' AND source_name='4FGL J0312.8+0134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 21:09:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 268522: <4FGL_J0312.8+0134_daily_bin684> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0312.8+0134_daily_bin684 48.2222 1.5724 416620801 416880001 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 :                                   550.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            808 sec.

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

