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


Performing analysis on: 4FGL_J0312.8+0134_daily_bin978
RA = 48.2222, Dec = 1.5724
tmin = 492825601, tmax = 493084801
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='271645', job_status='RUN', time_executed='2021-08-17 21:09:34.568517', time_epoch_executed='1629259774.57' WHERE source_name='4FGL J0312.8+0134' and cadence='daily' and bin_id='978'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271645

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271645/ft1_4FGL_J0312.8+0134_daily_bin978.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271645/ft2_4FGL_J0312.8+0134_daily_bin978.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271645/ft1_4FGL_J0312.8+0134_daily_bin978.fits outfile=/scratch/kocevski/271645/ft1_filteredMKT_4FGL_J0312.8+0134_daily_bin978.fits ra=48.2222 dec=1.5724 rad=12.0 tmin=492825601.0 tmax=493084801.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.67
user 3.50
sys 2.54

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/271645/ft1_filtered_4FGL_J0312.8+0134_daily_bin978.fits" evtable="EVENTS" scfile=/scratch/kocevski/271645/ft2_4FGL_J0312.8+0134_daily_bin978.fits sctable="SC_DATA" outfile=/scratch/kocevski/271645/ltcube_492825601_493084801_4FGL_J0312.8+0134_daily_bin978.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/271645/ft2_4FGL_J0312.8+0134_daily_bin978.fits
.....................!
real 16.05
user 12.16
sys 2.89

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271645/ft1_filtered_4FGL_J0312.8+0134_daily_bin978.fits evtable="EVENTS" scfile=/scratch/kocevski/271645/ft2_4FGL_J0312.8+0134_daily_bin978.fits sctable="SC_DATA" expcube=/scratch/kocevski/271645/ltcube_492825601_493084801_4FGL_J0312.8+0134_daily_bin978.fits outfile=/scratch/kocevski/271645/expmap_492825601_493084801_4FGL_J0312.8+0134_daily_bin978.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/271645/ltcube_492825601_493084801_4FGL_J0312.8+0134_daily_bin978.fits
.....................!
real 200.79
user 186.92
sys 7.82

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/271645/ft1_filtered_4FGL_J0312.8+0134_daily_bin978.fits scfile=/scratch/kocevski/271645/ft2_4FGL_J0312.8+0134_daily_bin978.fits outfile=/scratch/kocevski/271645/cmap_492825601_493084801_4FGL_J0312.8+0134_daily_bin978.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 4.51
user 0.36
sys 2.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/271645/ft1_filtered_4FGL_J0312.8+0134_daily_bin978.fits scfile=/scratch/kocevski/271645/ft2_4FGL_J0312.8+0134_daily_bin978.fits outfile=/scratch/kocevski/271645/cmap_HighResolution_492825601_493084801_4FGL_J0312.8+0134_daily_bin978.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 3.06
user 0.39
sys 2.41

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.101       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4849       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.1563       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .37010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.084       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.231       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.3626       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8429       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.3419       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .66482       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1622       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=   10446.18     FROM MIGRAD    STATUS=CONVERGED    343 CALLS     1480 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.001       -.14253E-05** at limit **
   2  Prefactor     .10000E-03    3.3821        .42710E-06** at limit **
   3  Prefactor     .10000E-03    4.8914       -.36506E-06** at limit **
   4  Prefactor     18.102        10.793       -.46949E-07   -.60017E-04
   5  Prefactor     .10000E-03    10.824        .70275E-06** at limit **
   6  Prefactor     5.4847        4.4308        .13584E-05    .76006E-03
   7  norm          .10000E-03    3.2641       -.22323E-06** at limit **
   8  norm          3.1560        3.2787        .22528E-06    .11765E-03
   9  Prefactor     .10001E-03    14.357       -.88059E-05** at limit **
  10  Prefactor     11.084        5.6625       -.13745E-06   -.76236E-04
  11  norm          .10000E-03    1.7367        .76624E-07** at limit **
  12  Prefactor     20.232        13.499       -.62449E-06   -.92425E-04
  13  Prefactor     9.3588        19.836        .26412E-05    .35052E-05
  14  Prefactor     5.8426        4.6656        .12097E-05    .64611E-03
  15  Prefactor     .10000E-03    6.2965        .84950E-06** at limit **
  16  norm          3.3418        1.3323        .16675E-06    .50778E-03
  17  Normalizat    .66486        .17094       -.14543E-05   -.86897E-04
  18  Prefactor     1.1622        .79251E-01   -.34526E-06   -.31538E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.102
  Prefactor  = 0.0001
  Prefactor  = 5.48467
  norm       = 0.0001
  norm       = 3.15604
  Prefactor  = 0.00010001
  Prefactor  = 11.0839
  norm       = 0.0001
  Prefactor  = 20.2318
  Prefactor  = 9.35876
  Prefactor  = 5.84263
  Prefactor  = 0.0001
  norm       = 3.34185
  Normalizat = 0.664861
  Prefactor  = 1.1622
 **********
 **   18 **HESSE 
 **********

 FCN=   10446.18     FROM HESSE     STATUS=OK           246 CALLS     1726 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.9822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.3886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.8936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.102        10.843        .94138E-04   -1.4857    
   5  Prefactor     .10000E-03    10.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.4847        4.9446        .85782E-03   -1.5240    
   7  norm          .10000E-03    3.2752        .18031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.1560        3.2733        .18175E-03   -1.5353    
   9  Prefactor     .10001E-03    20.637        .40486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.084        5.6610        .12034E-03   -1.5042    
  11  norm          .10000E-03    1.7400        .13153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.232        13.486        .89048E-04   -1.4808    
  13  Prefactor     9.3588        19.816        .13098E-03   -1.5096    
  14  Prefactor     5.8426        5.1059        .83072E-03   -1.5224    
  15  Prefactor     .10000E-03    6.3204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.3418        1.3434        .35923E-03   -1.5342    
  17  Normalizat    .66486        .17823        .42411E-03   -1.0530    
  18  Prefactor     1.1622        .84899E-01    .15877E-03   -.87503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09425e-09
Minuit parameter uncertainties:
  1  4.519e-05
  2  2.59691e-06
  3  1.90783e-05
  4  10.8445
  5  5.28647e-06
  6  4.94495
  7  2.87563e-06
  8  3.27346
  9  0.000922238
  10  5.66127
  11  1.4998e-06
  12  13.4876
  13  19.8302
  14  5.10624
  15  1.05186e-05
  16  1.3434
  17  0.178383
  18  0.0849087
Done.

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

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  2.023e+01  1.349e+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.162e+00  8.491e-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.649e-01  1.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.44
Ra Dec: 48.222 1.572
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 5.52e-08 +/- 3.67e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 1.33e-05

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) = 10445.6385328
delta logL = 0.544320607007

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10445.6074301
delta logL = 0.575423346965

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.041       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7904       1.0000          .0000       10.000    
     3 'Normalizat'    .68615       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1584       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=   10445.61     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      281 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.047        16.544        .39251E-03    .14598E-04
   2  Index         1.7905        .47930        .10215E-01   -.56294E-05
   3  Normalizat    .68620        .16945        .41819E-03    .32079E-05
   4  Prefactor     1.1584        .82027E-01    .15902E-03    .13283E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.0472
  Index      = 1.79049
  Normalizat = 0.686202
  Prefactor  = 1.15835
 **********
 **   18 **HESSE 
 **********

 FCN=   10445.61     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.047        16.612        .15700E-04   -1.4687    
   2  Index         1.7905        .48126        .40859E-03   -.69698    
   3  Normalizat    .68620        .16947        .16727E-04   -1.0444    
   4  Prefactor     1.1584        .82049E-01    .63607E-05   -.87623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09264e-11
Minuit parameter uncertainties:
  1  16.6147
  2  0.482537
  3  0.169603
  4  0.0820583
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271645': 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) = 10445.60743
delta logL = 0.575423480195

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  2.605e+01  1.661e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  1.790e+00  4.825e-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.158e+00  8.206e-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.862e-01  1.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.59
Ra Dec: 48.222 1.572
Photon Index (Free Index): 1.79 +/- 0.48
Photon Flux (Free Index): 3.05e-08 +/- 2.90e-08
Energy Flux (Free Index): 3.76e-05 +/- 3.69e-05

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/271645/cmap_HighResolution_492825601_493084801_4FGL_J0312.8+0134_daily_bin978.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.52e-08', energy_flux2='3.76e-05', photon_flux_error='3.67e-08', dlogl='5.75e-01', energy_flux='2.00e-05', photon_flux2='3.05e-08', job_status='DONE', time_completed='2021-08-17 21:21:37.331739', photon_index_error2='0.48', photon_index2='1.79', ts='5.44', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='3.69e-05', EG='0.66', time_epoch_completed='1629260497.33', return_code='0', job_id='271645', GAL2='1.16', EG2='0.69', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='2.90e-08', ts2='6.59', photon_index='2.33' WHERE bin_id='978' AND source_name='4FGL J0312.8+0134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 21:21:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0010>
Subject: Job 271645: <4FGL_J0312.8+0134_daily_bin978> in cluster <slac> Done

Job <4FGL_J0312.8+0134_daily_bin978> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 17 21:06:28 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 21:06:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 17 21:06:36 2021
Terminated at Tue Aug 17 21:21:38 2021
Results reported at Tue Aug 17 21:21:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0312.8+0134_daily_bin978 48.2222 1.5724 492825601 493084801 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 :                                   729.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            910 sec.

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

