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


Performing analysis on: 4FGL_J0312.8+0134_daily_bin734
RA = 48.2222, Dec = 1.5724
tmin = 429580801, tmax = 429840001
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='268596', job_status='RUN', time_executed='2021-08-17 21:01:57.709440', time_epoch_executed='1629259317.71' WHERE source_name='4FGL J0312.8+0134' and cadence='daily' and bin_id='734'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268596

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268596/ft1_4FGL_J0312.8+0134_daily_bin734.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268596/ft2_4FGL_J0312.8+0134_daily_bin734.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268596/ft1_4FGL_J0312.8+0134_daily_bin734.fits outfile=/scratch/kocevski/268596/ft1_filteredMKT_4FGL_J0312.8+0134_daily_bin734.fits ra=48.2222 dec=1.5724 rad=12.0 tmin=429580801.0 tmax=429840001.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.72
user 5.94
sys 0.35

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/268596/ft2_4FGL_J0312.8+0134_daily_bin734.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/268596/ft1_filteredMKT_4FGL_J0312.8+0134_daily_bin734.fits evtable="EVENTS" outfile="/scratch/kocevski/268596/ft1_filtered_4FGL_J0312.8+0134_daily_bin734.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 0.59
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268596/ft1_filtered_4FGL_J0312.8+0134_daily_bin734.fits" evtable="EVENTS" scfile=/scratch/kocevski/268596/ft2_4FGL_J0312.8+0134_daily_bin734.fits sctable="SC_DATA" outfile=/scratch/kocevski/268596/ltcube_429580801_429840001_4FGL_J0312.8+0134_daily_bin734.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/268596/ft2_4FGL_J0312.8+0134_daily_bin734.fits
.....................!
real 14.00
user 13.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268596/ft1_filtered_4FGL_J0312.8+0134_daily_bin734.fits evtable="EVENTS" scfile=/scratch/kocevski/268596/ft2_4FGL_J0312.8+0134_daily_bin734.fits sctable="SC_DATA" expcube=/scratch/kocevski/268596/ltcube_429580801_429840001_4FGL_J0312.8+0134_daily_bin734.fits outfile=/scratch/kocevski/268596/expmap_429580801_429840001_4FGL_J0312.8+0134_daily_bin734.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/268596/ltcube_429580801_429840001_4FGL_J0312.8+0134_daily_bin734.fits
.....................!
real 192.96
user 186.40
sys 4.46

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/268596/ft1_filtered_4FGL_J0312.8+0134_daily_bin734.fits scfile=/scratch/kocevski/268596/ft2_4FGL_J0312.8+0134_daily_bin734.fits outfile=/scratch/kocevski/268596/cmap_429580801_429840001_4FGL_J0312.8+0134_daily_bin734.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.68
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268596/ft1_filtered_4FGL_J0312.8+0134_daily_bin734.fits scfile=/scratch/kocevski/268596/ft2_4FGL_J0312.8+0134_daily_bin734.fits outfile=/scratch/kocevski/268596/cmap_HighResolution_429580801_429840001_4FGL_J0312.8+0134_daily_bin734.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.97
user 0.42
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.690       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6376       1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.341       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.767       1.0000         .10000E-03   10000.    
     8 'norm      '    5.5431       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11922E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0288       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .96968       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=   6539.405     FROM MIGRAD    STATUS=CONVERGED    347 CALLS     1713 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.689        25.692       -.13993E-06    .11893E-04
   2  Prefactor     1.6355        8.7397       -.13948E-05   -.41590E-03
   3  Prefactor     31.334        24.683       -.64920E-05    .52101E-05
   4  Prefactor     .10000E-03    4.7937        .81489E-06** at limit **
   5  Prefactor     .10000E-03    26.749        .11116E-07** at limit **
   6  Prefactor     .10000E-03    3.8038        .14751E-06** at limit **
   7  norm          10.767        11.040       -.69670E-06   -.63402E-03
   8  norm          5.5435        4.1764       -.23609E-07   -.25281E-04
   9  Prefactor     .10000E-03    15.595       -.15595E-07** at limit **
  10  Prefactor     .10000E-03    2.6848       -.67434E-08** at limit **
  11  norm          .10000E-03    5.0486       -.52506E-06** at limit **
  12  Prefactor     .10000E-03    4.6542        .10299E-05** at limit **
  13  Prefactor     .10000E-03    8.1997       -.75766E-06** at limit **
  14  Prefactor     .10000E-03    5.5699       -.17265E-05** at limit **
  15  Prefactor     .10000E-03    6.5380        .17815E-05** at limit **
  16  norm          .10000E-03    .75156       -.27522E-06** at limit **
  17  Normalizat    1.0290        .20638        .22058E-05    .28183E-04
  18  Prefactor     .96958        .89580E-01   -.15426E-06    .29144E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.6888
  Prefactor  = 1.63547
  Prefactor  = 31.334
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.7675
  norm       = 5.54348
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Normalizat = 1.02898
  Prefactor  = 0.969582
 **********
 **   18 **HESSE 
 **********

 FCN=   6539.405     FROM HESSE     STATUS=OK           240 CALLS     1953 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.689        25.670        .72325E-04   -1.4599    
   2  Prefactor     1.6355        9.1707        .33027E-03   -1.5452    
   3  Prefactor     31.334        24.020        .71572E-04   -1.4588    
   4  Prefactor     .10000E-03    4.7943        .17282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.8508        .15401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.767        11.284        .61051E-03   -1.5052    
   8  norm          5.5435        4.1766        .13819E-03   -1.5237    
   9  Prefactor     .10000E-03    15.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.6954        .12939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.0917        .17739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.6500        .17025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.2043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.6416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.5272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.3287        .13408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0290        .22721        .35294E-03   -.92066    
  18  Prefactor     .96958        .99875E-01    .16055E-03   -.93750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45369e-09
Minuit parameter uncertainties:
  1  25.6791
  2  7.74716
  3  24.0277
  4  3.1269e-06
  5  6.17682e-06
  6  7.42929e-06
  7  11.2858
  8  4.17682
  9  3.46604e-05
  10  3.10049e-07
  11  7.3409e-07
  12  2.06154e-06
  13  3.593e-06
  14  3.35065e-07
  15  6.56051e-06
  16  0.00013043
  17  0.22742
  18  0.0998943
Done.

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

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  2.062e-06  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.696e-01  9.989e-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:  1.029e+00  2.274e-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: 6.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/268596/likelihoodResults_429580801_429840001_4FGL_J0312.8+0134_daily_bin734.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) = 6539.40561117
delta logL = -0.00102327792683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6539.40458783
delta logL = 6.43194653094e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3095       1.0000          .0000       10.000    
     3 'Normalizat'    1.0290       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96957       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6539.405     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      255 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.604        .17242E-01** at limit **
   2  Index         1.7563        5.8773        .50000        .14800E-06
   3  Normalizat    1.0290        .10746E-01    .35293E-03    .32019E-04
   4  Prefactor     .96958        .47929E-02    .16055E-03    .84518E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.75631
  Normalizat = 1.02898
  Prefactor  = 0.969581
 **********
 **   18 **HESSE 
 **********

 FCN=   6539.405     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    239.40        .19165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7563        9.0519        .50000       -.70592    
   3  Normalizat    1.0290        .40337E-01    .14117E-04   -.92066    
   4  Prefactor     .96958        .17992E-01    .32111E-04   -.93750    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.03625e-09
Minuit parameter uncertainties:
  1  0.00153432
  2  1044.19
  3  0.0403379
  4  0.017992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268596': 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) = 6539.40458563
delta logL = 2.26548672799e-06

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.534e-03  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  1.756e+00  1.044e+03  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.696e-01  1.799e-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:  1.029e+00  4.034e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/268596/cmap_HighResolution_429580801_429840001_4FGL_J0312.8+0134_daily_bin734.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.15e-03', job_status='DONE', photon_flux_upper_limit='6.70e-08', time_completed='2021-08-17 21:12:14.041825', job_id='268596', GAL2='0.97', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1629259934.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='734' AND source_name='4FGL J0312.8+0134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 21:12:14 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0312.8+0134_daily_bin734 48.2222 1.5724 429580801 429840001 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 :                                   594.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             252.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            977 sec.

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

