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


Performing analysis on: 4FGL_J0312.8+0134_daily_bin533
RA = 48.2222, Dec = 1.5724
tmin = 377481601, tmax = 377740801
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='267281', job_status='RUN', time_executed='2021-08-17 20:56:29.544146', time_epoch_executed='1629258989.54' WHERE source_name='4FGL J0312.8+0134' and cadence='daily' and bin_id='533'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267281

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267281/ft1_4FGL_J0312.8+0134_daily_bin533.fits


Retrieving the FT1 file...

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

Retrieving 40 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267281/ft2_4FGL_J0312.8+0134_daily_bin533.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267281/ft1_4FGL_J0312.8+0134_daily_bin533.fits outfile=/scratch/kocevski/267281/ft1_filteredMKT_4FGL_J0312.8+0134_daily_bin533.fits ra=48.2222 dec=1.5724 rad=12.0 tmin=377481601.0 tmax=377740801.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 3.01
user 2.41
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/267281/ft2_4FGL_J0312.8+0134_daily_bin533.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/267281/ft1_filteredMKT_4FGL_J0312.8+0134_daily_bin533.fits evtable="EVENTS" outfile="/scratch/kocevski/267281/ft1_filtered_4FGL_J0312.8+0134_daily_bin533.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.00
user 0.28
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/267281/ft1_filtered_4FGL_J0312.8+0134_daily_bin533.fits" evtable="EVENTS" scfile=/scratch/kocevski/267281/ft2_4FGL_J0312.8+0134_daily_bin533.fits sctable="SC_DATA" outfile=/scratch/kocevski/267281/ltcube_377481601_377740801_4FGL_J0312.8+0134_daily_bin533.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/267281/ft2_4FGL_J0312.8+0134_daily_bin533.fits
.....................!
real 11.46
user 10.68
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267281/ft1_filtered_4FGL_J0312.8+0134_daily_bin533.fits evtable="EVENTS" scfile=/scratch/kocevski/267281/ft2_4FGL_J0312.8+0134_daily_bin533.fits sctable="SC_DATA" expcube=/scratch/kocevski/267281/ltcube_377481601_377740801_4FGL_J0312.8+0134_daily_bin533.fits outfile=/scratch/kocevski/267281/expmap_377481601_377740801_4FGL_J0312.8+0134_daily_bin533.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/267281/ltcube_377481601_377740801_4FGL_J0312.8+0134_daily_bin533.fits
.....................!
real 157.26
user 148.55
sys 3.92

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/267281/ft1_filtered_4FGL_J0312.8+0134_daily_bin533.fits scfile=/scratch/kocevski/267281/ft2_4FGL_J0312.8+0134_daily_bin533.fits outfile=/scratch/kocevski/267281/cmap_377481601_377740801_4FGL_J0312.8+0134_daily_bin533.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 0.74
user 0.32
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/267281/ft1_filtered_4FGL_J0312.8+0134_daily_bin533.fits scfile=/scratch/kocevski/267281/ft2_4FGL_J0312.8+0134_daily_bin533.fits outfile=/scratch/kocevski/267281/cmap_HighResolution_377481601_377740801_4FGL_J0312.8+0134_daily_bin533.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 0.76
user 0.31
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.749       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    48.369       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .67206       1.0000         .10000E-03   10000.    
     7 'norm      '    2.2168       1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4313       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.6817       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .46017       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .70761       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .95878       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7009.587     FROM MIGRAD    STATUS=CONVERGED    345 CALLS     1759 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10016E-03    8.0985         .0000    ** at limit **
   2  Prefactor     .10000E-03    5.5093         .0000    ** at limit **
   3  Prefactor     15.749        14.138         .0000       -.47760E-03
   4  Prefactor     .10013E-03    11.622         .0000    ** at limit **
   5  Prefactor     48.369        56.242         .0000        .78867E-03
   6  Prefactor     .67362        6.2905         .0000        .40415E-01
   7  norm          2.2139        8.4852         .0000        .75574E-02
   8  norm          .10000E-03    1.5394         .0000    ** at limit **
   9  Prefactor     1.4315        14.007         .0000        .49552E-03
  10  Prefactor     .10000E-03    2.8156         .0000    ** at limit **
  11  norm          1.6815        6.6876         .0000        .69565E-03
  12  Prefactor     .10002E-03    18.630         .0000    ** at limit **
  13  Prefactor     .10001E-03    10.828         .0000    ** at limit **
  14  Prefactor     .10000E-03    1.7981         .0000    ** at limit **
  15  Prefactor     .10008E-03    7.1322         .0000    ** at limit **
  16  norm          .46021        .55409         .0000       -.24176E-03
  17  Normalizat    .70749        .17217         .0000        .24058E-04
  18  Prefactor     .95879        .79342E-01     .0000        .10141E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100161
  Prefactor  = 0.0001
  Prefactor  = 15.7493
  Prefactor  = 0.000100125
  Prefactor  = 48.3692
  Prefactor  = 0.673619
  norm       = 2.2139
  norm       = 0.0001
  Prefactor  = 1.43146
  Prefactor  = 0.0001
  norm       = 1.68155
  Prefactor  = 0.000100025
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.000100075
  norm       = 0.460207
  Normalizat = 0.707491
  Prefactor  = 0.958794
 **********
 **   18 **HESSE 
 **********

 FCN=   7009.587     FROM HESSE     STATUS=OK           242 CALLS     2001 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10016E-03    8.1101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.5195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.749        14.152        .10093E-03   -1.4914    
   4  Prefactor     .10013E-03    11.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     48.369        56.428        .57657E-04   -1.4316    
   6  Prefactor     .67362        6.4630        .19951E-02   -1.5544    
   7  norm          2.2139        8.4529        .13811E-02   -1.5410    
   8  norm          .10000E-03    1.5597        .10141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4315        14.063        .36106E-03   -1.5469    
  10  Prefactor     .10000E-03    2.8379        .13716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6815        6.6863        .32482E-03   -1.5449    
  12  Prefactor     .10002E-03    19.137        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    10.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.8039        .10961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10008E-03    7.1639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .46021        .52973        .66488E-03   -1.5572    
  17  Normalizat    .70749        .18462        .34921E-03   -1.0360    
  18  Prefactor     .95879        .85791E-01    .14474E-03   -.94116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.94214e-08
Minuit parameter uncertainties:
  1  0.0022863
  2  6.73969e-05
  3  14.1547
  4  0.00242776
  5  56.4909
  6  4.17333
  7  8.45747
  8  5.74158e-06
  9  8.97595
  10  1.6364e-05
  11  6.6893
  12  0.00138077
  13  0.000548661
  14  2.2339e-06
  15  0.00147058
  16  0.529735
  17  0.18478
  18  0.0858035
Done.

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

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.381e-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:  9.588e-01  8.580e-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:  7.075e-01  1.848e-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.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/267281/likelihoodResults_377481601_377740801_4FGL_J0312.8+0134_daily_bin533.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) = 7009.58732075
delta logL = -0.000249306954174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7009.58707141
delta logL = 3.52356437361e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10862E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3782       1.0000          .0000       10.000    
     3 'Normalizat'    .70755       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95878       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=   7009.587     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      210 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.694        .90712E-01** at limit **
   2  Index         2.4391        7.0940        .23989       -.26322E-04
   3  Normalizat    .70749        .14412E-01    .78867E-01    .21506E-03
   4  Prefactor     .95879        .69044E-02    .32754E-01    .56363E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.43913
  Normalizat = 0.707492
  Prefactor  = 0.958795
 **********
 **   18 **HESSE 
 **********

 FCN=   7009.587     FROM HESSE     STATUS=OK            27 CALLS      237 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.923        .40137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4391        6.2195        .95954E-02   -.53771    
   3  Normalizat    .70749        .17230        .34921E-03   -1.0360    
   4  Prefactor     .95879        .82903E-01    .14474E-03   -.94116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03986e-09
Minuit parameter uncertainties:
  1  0.000420642
  2  4.45569
  3  0.172431
  4  0.0829143
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267281': 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) = 7009.58707079
delta logL = 6.54255018162e-07

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  4.206e-04  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.439e+00  4.456e+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:  9.588e-01  8.291e-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:  7.075e-01  1.724e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/267281/cmap_HighResolution_377481601_377740801_4FGL_J0312.8+0134_daily_bin533.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.01e-03', job_status='DONE', photon_flux_upper_limit='7.81e-08', time_completed='2021-08-17 21:04:59.120756', job_id='267281', GAL2='0.96', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1629259499.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='6.54e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='533' AND source_name='4FGL J0312.8+0134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 21:04:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 267281: <4FGL_J0312.8+0134_daily_bin533> in cluster <slac> Done

Job <4FGL_J0312.8+0134_daily_bin533> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 17 20:51:11 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 20:54:16 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:54:16 2021
Terminated at Tue Aug 17 21:04:59 2021
Results reported at Tue Aug 17 21:04:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0312.8+0134_daily_bin533 48.2222 1.5724 377481601 377740801 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 :                                   481.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   644 sec.
    Turnaround time :                            828 sec.

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

