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


Performing analysis on: 4FGL_J0312.8+0134_daily_bin665
RA = 48.2222, Dec = 1.5724
tmin = 411696001, tmax = 411955201
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='268491', job_status='RUN', time_executed='2021-08-17 21:00:36.425572', time_epoch_executed='1629259236.43' WHERE source_name='4FGL J0312.8+0134' and cadence='daily' and bin_id='665'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268491

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268491/ft1_4FGL_J0312.8+0134_daily_bin665.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268491/ft2_4FGL_J0312.8+0134_daily_bin665.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268491/ft1_4FGL_J0312.8+0134_daily_bin665.fits outfile=/scratch/kocevski/268491/ft1_filteredMKT_4FGL_J0312.8+0134_daily_bin665.fits ra=48.2222 dec=1.5724 rad=12.0 tmin=411696001.0 tmax=411955201.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 7.06
user 5.98
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/268491/ft2_4FGL_J0312.8+0134_daily_bin665.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/268491/ft1_filteredMKT_4FGL_J0312.8+0134_daily_bin665.fits evtable="EVENTS" outfile="/scratch/kocevski/268491/ft1_filtered_4FGL_J0312.8+0134_daily_bin665.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.63
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268491/ft1_filtered_4FGL_J0312.8+0134_daily_bin665.fits" evtable="EVENTS" scfile=/scratch/kocevski/268491/ft2_4FGL_J0312.8+0134_daily_bin665.fits sctable="SC_DATA" outfile=/scratch/kocevski/268491/ltcube_411696001_411955201_4FGL_J0312.8+0134_daily_bin665.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/268491/ft2_4FGL_J0312.8+0134_daily_bin665.fits
.....................!
real 16.27
user 13.65
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268491/ft1_filtered_4FGL_J0312.8+0134_daily_bin665.fits evtable="EVENTS" scfile=/scratch/kocevski/268491/ft2_4FGL_J0312.8+0134_daily_bin665.fits sctable="SC_DATA" expcube=/scratch/kocevski/268491/ltcube_411696001_411955201_4FGL_J0312.8+0134_daily_bin665.fits outfile=/scratch/kocevski/268491/expmap_411696001_411955201_4FGL_J0312.8+0134_daily_bin665.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/268491/ltcube_411696001_411955201_4FGL_J0312.8+0134_daily_bin665.fits
.....................!
real 199.12
user 185.41
sys 4.12

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/268491/ft1_filtered_4FGL_J0312.8+0134_daily_bin665.fits scfile=/scratch/kocevski/268491/ft2_4FGL_J0312.8+0134_daily_bin665.fits outfile=/scratch/kocevski/268491/cmap_411696001_411955201_4FGL_J0312.8+0134_daily_bin665.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.03
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268491/ft1_filtered_4FGL_J0312.8+0134_daily_bin665.fits scfile=/scratch/kocevski/268491/ft2_4FGL_J0312.8+0134_daily_bin665.fits outfile=/scratch/kocevski/268491/cmap_HighResolution_411696001_411955201_4FGL_J0312.8+0134_daily_bin665.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.77
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.972       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .40725E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    3.6745       1.0000         .10000E-03   10000.    
     8 'norm      '    11.214       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.7541       1.0000         .10000E-03   10000.    
    11 'norm      '    8.6027       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8859       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.871       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8512       1.0000         .10000E-03   10000.    
    16 'norm      '    3.4397       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .74306       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1241       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=   5715.952     FROM MIGRAD    STATUS=CONVERGED    367 CALLS     1765 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.975        27.659        .18465E-06   -.84348E-05
   2  Prefactor     .10000E-03    4.9587       -.31551E-08** at limit **
   3  Prefactor     .10000E-03    7.6955       -.92960E-08** at limit **
   4  Prefactor     .10000E-03    4.5458       -.66366E-09** at limit **
   5  Prefactor     .10000E-03    24.509        .20693E-08** at limit **
   6  Prefactor     .10196E-03    5.4441        .10789E-05** at limit **
   7  norm          3.6734        11.061        .16245E-06   -.28643E-04
   8  norm          11.216        5.7682       -.59123E-06   -.24750E-03
   9  Prefactor     .10000E-03    41.756       -.43816E-06** at limit **
  10  Prefactor     9.7504        7.3241        .14870E-06   -.26059E-04
  11  norm          8.6014        10.392        .11696E-06   -.35160E-05
  12  Prefactor     3.8425        51.887        .11630E-05   -.69349E-08
  13  Prefactor     16.934        42.625        .15453E-05    .37321E-04
  14  Prefactor     .10000E-03    1.5524        .14999E-07** at limit **
  15  Prefactor     6.8516        11.347        .23028E-05    .83379E-04
  16  norm          3.4397        1.9112        .37405E-07   -.10880E-04
  17  Normalizat    .74303        .22862       -.20941E-05   -.71375E-04
  18  Prefactor     1.1241        .10591        .21204E-06   -.19079E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.9755
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101961
  norm       = 3.67339
  norm       = 11.2157
  Prefactor  = 0.0001
  Prefactor  = 9.75039
  norm       = 8.60139
  Prefactor  = 3.84251
  Prefactor  = 16.9339
  Prefactor  = 0.0001
  Prefactor  = 6.85161
  norm       = 3.43968
  Normalizat = 0.743027
  Prefactor  = 1.12409
 **********
 **   18 **HESSE 
 **********

 FCN=   5715.952     FROM HESSE     STATUS=OK           254 CALLS     2019 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.975        27.660        .59786E-04   -1.4366    
   2  Prefactor     .10000E-03    4.9623        .16442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.7040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.5508        .15743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10196E-03    5.1375        .54701E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6734        11.046        .21071E-03   -1.5325    
   8  norm          11.216        5.7740        .11963E-03   -1.5038    
   9  Prefactor     .10000E-03    42.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.7504        7.3126        .12831E-03   -1.5083    
  11  norm          8.6014        10.439        .13667E-03   -1.5121    
  12  Prefactor     3.8425        52.327        .20469E-03   -1.5316    
  13  Prefactor     16.934        43.175        .97509E-04   -1.4885    
  14  Prefactor     .10000E-03    1.5534        .91990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.8516        11.440        .76642E-03   -1.5184    
  16  norm          3.4397        1.9070        .74432E-04   -1.5337    
  17  Normalizat    .74303        .24233        .41348E-03   -1.0222    
  18  Prefactor     1.1241        .11405        .15864E-03   -.88700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70572e-10
Minuit parameter uncertainties:
  1  27.6683
  2  1.36558e-06
  3  2.94479e-06
  4  2.45658e-06
  5  5.95897e-06
  6  0.00634831
  7  11.052
  8  5.77424
  9  0.000105404
  10  7.31324
  11  10.4407
  12  28.3896
  13  43.2544
  14  4.11885e-07
  15  11.4433
  16  1.90708
  17  0.242682
  18  0.11407
Done.

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

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  3.843e+00  2.839e+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:  1.124e+00  1.141e-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:  7.430e-01  2.427e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 48.222 1.572
Photon Flux Upper Limit: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.00e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/268491/likelihoodResults_411696001_411955201_4FGL_J0312.8+0134_daily_bin665.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) = 5715.93349262
delta logL = 0.0181556831812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5715.93132673
delta logL = 0.0203215807342

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9497       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7505       1.0000          .0000       10.000    
     3 'Normalizat'    .73708       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1251       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=   5715.931     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      219 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9679        387.19        .59117E-02    .23026E-03
   2  Index         2.7497        6.3715        .22744        .44325E-04
   3  Normalizat    .73673        .48932E-01    .93664E-01   -.11081E-03
   4  Prefactor     1.1252        .22561E-01    .36703E-01   -.10373E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.96795
  Index      = 2.74975
  Normalizat = 0.736728
  Prefactor  = 1.12523
 **********
 **   18 **HESSE 
 **********

 FCN=   5715.931     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9679        29.249        .23647E-03   -1.5363    
   2  Index         2.7497        2.6828        .12138E-01   -.46682    
   3  Normalizat    .73673        .23995        .41504E-03   -1.0246    
   4  Prefactor     1.1252        .11045        .15855E-03   -.88664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43236e-08
Minuit parameter uncertainties:
  1  18.646
  2  2.87794
  3  0.240296
  4  0.110475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268491': 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) = 5715.9313247
delta logL = 0.0203236104126

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  2.968e+00  1.865e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.750e+00  2.878e+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.125e+00  1.105e-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:  7.367e-01  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/268491/cmap_HighResolution_411696001_411955201_4FGL_J0312.8+0134_daily_bin665.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', job_status='DONE', photon_flux_upper_limit='1.30e-07', time_completed='2021-08-17 21:10:36.581649', job_id='268491', GAL2='1.13', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1629259836.58', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='2.03e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='665' AND source_name='4FGL J0312.8+0134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 21:10:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 268491: <4FGL_J0312.8+0134_daily_bin665> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0312.8+0134_daily_bin665 48.2222 1.5724 411696001 411955201 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 :                                   569.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             260.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            888 sec.

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

