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


Performing analysis on: 4FGL_J0312.8+0134_daily_bin702
RA = 48.2222, Dec = 1.5724
tmin = 421286401, tmax = 421545601
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='268550', job_status='RUN', time_executed='2021-08-17 21:01:41.539134', time_epoch_executed='1629259301.54' WHERE source_name='4FGL J0312.8+0134' and cadence='daily' and bin_id='702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268550

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268550/ft1_4FGL_J0312.8+0134_daily_bin702.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268550/ft2_4FGL_J0312.8+0134_daily_bin702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268550/ft1_4FGL_J0312.8+0134_daily_bin702.fits outfile=/scratch/kocevski/268550/ft1_filteredMKT_4FGL_J0312.8+0134_daily_bin702.fits ra=48.2222 dec=1.5724 rad=12.0 tmin=421286401.0 tmax=421545601.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.78
user 3.42
sys 1.01

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268550/ft1_filtered_4FGL_J0312.8+0134_daily_bin702.fits" evtable="EVENTS" scfile=/scratch/kocevski/268550/ft2_4FGL_J0312.8+0134_daily_bin702.fits sctable="SC_DATA" outfile=/scratch/kocevski/268550/ltcube_421286401_421545601_4FGL_J0312.8+0134_daily_bin702.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/268550/ft2_4FGL_J0312.8+0134_daily_bin702.fits
.....................!
real 14.15
user 12.70
sys 1.18

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268550/ft1_filtered_4FGL_J0312.8+0134_daily_bin702.fits evtable="EVENTS" scfile=/scratch/kocevski/268550/ft2_4FGL_J0312.8+0134_daily_bin702.fits sctable="SC_DATA" expcube=/scratch/kocevski/268550/ltcube_421286401_421545601_4FGL_J0312.8+0134_daily_bin702.fits outfile=/scratch/kocevski/268550/expmap_421286401_421545601_4FGL_J0312.8+0134_daily_bin702.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/268550/ltcube_421286401_421545601_4FGL_J0312.8+0134_daily_bin702.fits
.....................!
real 195.00
user 186.95
sys 5.91

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/268550/ft1_filtered_4FGL_J0312.8+0134_daily_bin702.fits scfile=/scratch/kocevski/268550/ft2_4FGL_J0312.8+0134_daily_bin702.fits outfile=/scratch/kocevski/268550/cmap_421286401_421545601_4FGL_J0312.8+0134_daily_bin702.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.62
user 0.38
sys 0.94

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268550/ft1_filtered_4FGL_J0312.8+0134_daily_bin702.fits scfile=/scratch/kocevski/268550/ft2_4FGL_J0312.8+0134_daily_bin702.fits outfile=/scratch/kocevski/268550/cmap_HighResolution_421286401_421545601_4FGL_J0312.8+0134_daily_bin702.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.66
user 0.40
sys 0.90

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10093E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.171       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8754       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.3427       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .79571       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .56246E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.510       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .61270       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2001       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=   6737.608     FROM MIGRAD    STATUS=CONVERGED    354 CALLS     1523 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2111        .22786E-05** at limit **
   2  Prefactor     .10000E-03    19.766        .48232E-06** at limit **
   3  Prefactor     41.168        19.611       -.14757E-05    .49678E-04
   4  Prefactor     4.8737        12.705       -.91090E-06   -.73428E-04
   5  Prefactor     .10000E-03    19.584       -.67307E-05** at limit **
   6  Prefactor     .10000E-03    1.9169        .30090E-07** at limit **
   7  norm          .10000E-03    4.2341        .52695E-06** at limit **
   8  norm          3.3434        4.4964       -.19228E-06   -.30167E-03
   9  Prefactor     .10000E-03    4.9362       -.27748E-05** at limit **
  10  Prefactor     .10000E-03    3.4296       -.41620E-07** at limit **
  11  norm          .79201        4.4191       -.12981E-05    .22097E-03
  12  Prefactor     .10000E-03    24.091        .12340E-04** at limit **
  13  Prefactor     .10000E-03    61.615       -.53708E-04** at limit **
  14  Prefactor     .10000E-03    1.6941       -.18451E-07** at limit **
  15  Prefactor     33.513        16.708        .87873E-06    .19600E-03
  16  norm          .10000E-03    .57237       -.42280E-07** at limit **
  17  Normalizat    .61283        .21754        .17980E-05    .31159E-03
  18  Prefactor     1.2001        .99299E-01   -.29238E-07    .81855E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.1684
  Prefactor  = 4.87372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.34336
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.792006
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 33.5125
  norm       = 0.0001
  Normalizat = 0.612833
  Prefactor  = 1.20009
 **********
 **   18 **HESSE 
 **********

 FCN=   6737.608     FROM HESSE     STATUS=OK           240 CALLS     1763 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.406        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     41.168        19.623        .62473E-04   -1.4424    
   4  Prefactor     4.8737        12.735        .18217E-03   -1.5266    
   5  Prefactor     .10000E-03    19.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.9207        .11097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.2397        .16495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.3434        4.4792        .19257E-03   -1.5342    
   9  Prefactor     .10000E-03    4.9470        .17814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.4595        .14842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .79201        20.411        .32311E-02   -1.5530    
  12  Prefactor     .10000E-03    24.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    62.046        .42196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.6989        .10432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     33.513        16.711        .69223E-04   -1.4550    
  16  norm          .10000E-03    .91624        .11983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .61283        .22838        .44323E-03   -1.0744    
  18  Prefactor     1.2001        .10634        .15176E-03   -.86328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06941e-09
Minuit parameter uncertainties:
  1  1.84179e-06
  2  6.75487e-06
  3  19.6258
  4  12.7416
  5  1.56929e-07
  6  1.92693e-06
  7  9.83538e-07
  8  4.4797
  9  1.38184e-06
  10  7.62485e-06
  11  8.04383
  12  0.000226644
  13  0.000923699
  14  1.0216e-06
  15  16.7137
  16  6.86442e-06
  17  0.228735
  18  0.106364
Done.

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

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  2.266e-04  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.200e+00  1.064e-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:  6.128e-01  2.287e-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: 9.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/268550/likelihoodResults_421286401_421545601_4FGL_J0312.8+0134_daily_bin702.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) = 6737.60842597
delta logL = -0.000193403320736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6737.60823295
delta logL = -3.86560714105e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28420E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4329       1.0000          .0000       10.000    
     3 'Normalizat'    .61291       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2001       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=   6737.608     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      227 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    3.7090        .10706    ** at limit **
   2  Index         2.4410        2.6889        .50000       -.56048E-04
   3  Normalizat    .61283        .39714E-02    .99980E-01    .13006E-03
   4  Prefactor     1.2001        .18601E-02    .34629E-01    .91524E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100039
  Index      = 2.44098
  Normalizat = 0.612828
  Prefactor  = 1.2001
 **********
 **   18 **HESSE 
 **********

 FCN=   6737.608     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      260 TOTAL
                     EDM=   .92E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    932.15        .45727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4410        8.6281        .50000       -.53728    
   3  Normalizat    .61283        .22714E-01    .44323E-03   -1.0744    
   4  Prefactor     1.2001        .10676E-01    .15176E-03   -.86328    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.17521e-08
Minuit parameter uncertainties:
  1  0.0121819
  2  16.4314
  3  0.0227141
  4  0.010676
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268550': 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) = 6737.60823126
delta logL = 1.30093667394e-06

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.218e-02  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.441e+00  1.643e+01  0.000e+00  1.000e+01 (-1.000e+00)
304        Scale:  1.257e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  1.200e+00  1.068e-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:  6.128e-01  2.271e-02  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 -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/268550/cmap_HighResolution_421286401_421545601_4FGL_J0312.8+0134_daily_bin702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.64e-03', job_status='DONE', photon_flux_upper_limit='9.94e-08', time_completed='2021-08-17 21:12:05.110437', job_id='268550', GAL2='1.20', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1629259925.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='1.30e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='702' AND source_name='4FGL J0312.8+0134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 21:12:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 268550: <4FGL_J0312.8+0134_daily_bin702> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0312.8+0134_daily_bin702 48.2222 1.5724 421286401 421545601 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 :                                   612.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             251.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            973 sec.

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

