/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 182 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 = 7589
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0312.8+0134_daily_bin437
RA = 48.2222, Dec = 1.5724
tmin = 352598401, tmax = 352857601
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='267142', job_status='RUN', time_executed='2021-08-17 20:57:01.752246', time_epoch_executed='1629259021.75' WHERE source_name='4FGL J0312.8+0134' and cadence='daily' and bin_id='437'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267142

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267142/ft1_4FGL_J0312.8+0134_daily_bin437.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267142/ft2_4FGL_J0312.8+0134_daily_bin437.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267142/ft1_4FGL_J0312.8+0134_daily_bin437.fits outfile=/scratch/kocevski/267142/ft1_filteredMKT_4FGL_J0312.8+0134_daily_bin437.fits ra=48.2222 dec=1.5724 rad=12.0 tmin=352598401.0 tmax=352857601.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 5.22
user 3.92
sys 0.86

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/267142/ft1_filtered_4FGL_J0312.8+0134_daily_bin437.fits" evtable="EVENTS" scfile=/scratch/kocevski/267142/ft2_4FGL_J0312.8+0134_daily_bin437.fits sctable="SC_DATA" outfile=/scratch/kocevski/267142/ltcube_352598401_352857601_4FGL_J0312.8+0134_daily_bin437.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/267142/ft2_4FGL_J0312.8+0134_daily_bin437.fits
.....................!
real 13.64
user 12.45
sys 1.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267142/ft1_filtered_4FGL_J0312.8+0134_daily_bin437.fits evtable="EVENTS" scfile=/scratch/kocevski/267142/ft2_4FGL_J0312.8+0134_daily_bin437.fits sctable="SC_DATA" expcube=/scratch/kocevski/267142/ltcube_352598401_352857601_4FGL_J0312.8+0134_daily_bin437.fits outfile=/scratch/kocevski/267142/expmap_352598401_352857601_4FGL_J0312.8+0134_daily_bin437.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/267142/ltcube_352598401_352857601_4FGL_J0312.8+0134_daily_bin437.fits
.....................!
real 193.49
user 184.97
sys 6.33

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/267142/ft1_filtered_4FGL_J0312.8+0134_daily_bin437.fits scfile=/scratch/kocevski/267142/ft2_4FGL_J0312.8+0134_daily_bin437.fits outfile=/scratch/kocevski/267142/cmap_352598401_352857601_4FGL_J0312.8+0134_daily_bin437.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.73
user 0.37
sys 0.79

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/267142/ft1_filtered_4FGL_J0312.8+0134_daily_bin437.fits scfile=/scratch/kocevski/267142/ft2_4FGL_J0312.8+0134_daily_bin437.fits outfile=/scratch/kocevski/267142/cmap_HighResolution_352598401_352857601_4FGL_J0312.8+0134_daily_bin437.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.35
user 0.39
sys 0.80

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10513E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.431       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.314       1.0000         .10000E-03   10000.    
     7 'norm      '    5.6737       1.0000         .10000E-03   10000.    
     8 'norm      '    3.5478       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.947       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .79786       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8551       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.971       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.343       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.720       1.0000         .10000E-03   10000.    
    16 'norm      '    4.9480       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .83076       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0593       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=   5472.045     FROM MIGRAD    STATUS=CONVERGED    357 CALLS     1753 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    71.895        .17150E-05** at limit **
   2  Prefactor     .10000E-03    5.0385       -.71741E-07** at limit **
   3  Prefactor     26.429        27.022       -.86555E-06    .12357E-04
   4  Prefactor     .10000E-03    5.7584       -.35546E-06** at limit **
   5  Prefactor     .10000E-03    25.829       -.13231E-06** at limit **
   6  Prefactor     10.314        7.5759       -.46196E-07    .20504E-04
   7  norm          5.6747        8.5492        .19036E-06   -.22560E-04
   8  norm          3.5459        6.0096       -.20731E-05   -.24529E-03
   9  Prefactor     18.950        15.989       -.12206E-05    .41513E-04
  10  Prefactor     .10000E-03    2.0953        .18981E-06** at limit **
  11  norm          .77153        5.4454       -.11739E-05   -.11413E-03
  12  Prefactor     5.8688        30.049        .46857E-04    .83034E-04
  13  Prefactor     25.942        42.078       -.40790E-04    .70638E-04
  14  Prefactor     14.348        9.5110        .30227E-05   -.15934E-03
  15  Prefactor     13.719        13.898        .68725E-06   -.41240E-04
  16  norm          4.9484        2.3145       -.77763E-07   -.12841E-03
  17  Normalizat    .83052        .25576        .49422E-05   -.58311E-04
  18  Prefactor     1.0594        .10851       -.12037E-05    .26692E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.4289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3143
  norm       = 5.67473
  norm       = 3.54587
  Prefactor  = 18.9497
  Prefactor  = 0.0001
  norm       = 0.771531
  Prefactor  = 5.86882
  Prefactor  = 25.9421
  Prefactor  = 14.3479
  Prefactor  = 13.7193
  norm       = 4.94837
  Normalizat = 0.830517
  Prefactor  = 1.0594
 **********
 **   18 **HESSE 
 **********

 FCN=   5472.045     FROM HESSE     STATUS=OK           252 CALLS     2005 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    72.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.0416        .16217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.429        27.177        .77921E-04   -1.4679    
   4  Prefactor     .10000E-03    5.7651        .17336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.314        7.5738        .12476E-03   -1.5066    
   7  norm          5.6747        8.5404        .16864E-03   -1.5231    
   8  norm          3.5459        5.9803        .21459E-03   -1.5331    
   9  Prefactor     18.950        16.029        .92014E-04   -1.4837    
  10  Prefactor     .10000E-03    2.0977        .10458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .77153        18.892        .31726E-02   -1.5532    
  12  Prefactor     5.8688        29.708        .16597E-03   -1.5223    
  13  Prefactor     25.942        41.940        .78606E-04   -1.4689    
  14  Prefactor     14.348        9.4391        .10576E-03   -1.4950    
  15  Prefactor     13.719        13.899        .10814E-03   -1.4967    
  16  norm          4.9484        2.3147        .73018E-04   -1.5263    
  17  Normalizat    .83052        .27606        .40795E-03   -.98947    
  18  Prefactor     1.0594        .11864        .16265E-03   -.90775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49734e-08
Minuit parameter uncertainties:
  1  9.94394e-05
  2  2.71178e-06
  3  27.1897
  4  2.41492e-07
  5  4.69048e-06
  6  7.5745
  7  8.54219
  8  5.98135
  9  16.0326
  10  3.19063e-05
  11  7.63792
  12  26.4292
  13  41.9872
  14  9.44008
  15  13.9026
  16  2.31476
  17  0.276527
  18  0.118665
Done.

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

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  5.869e+00  2.643e+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.059e+00  1.187e-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:  8.305e-01  2.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/267142/likelihoodResults_352598401_352857601_4FGL_J0312.8+0134_daily_bin437.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) = 5472.04115628
delta logL = 0.00399608492262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5472.03903866
delta logL = 0.00611370905244

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2920       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0468       1.0000          .0000       10.000    
     3 'Normalizat'    .83462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0583       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=   5472.039     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      259 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2855        22.835        .14853E-03   -.82127E-04
   2  Index         2.0460        1.9734        .55637E-02   -.50450E-04
   3  Normalizat    .83459        .25291        .40709E-03   -.65675E-03
   4  Prefactor     1.0583        .11268        .16272E-03   -.15509E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.28545
  Index      = 2.04603
  Normalizat = 0.834588
  Prefactor  = 1.05834
 **********
 **   18 **HESSE 
 **********

 FCN=   5472.039     FROM HESSE     STATUS=OK            23 CALLS      282 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2855        22.658        .59413E-05   -1.5168    
   2  Index         2.0460        1.9584        .22255E-03   -.63204    
   3  Normalizat    .83459        .25292        .81417E-04   -.98798    
   4  Prefactor     1.0583        .11269        .32544E-04   -.90809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85069e-09
Minuit parameter uncertainties:
  1  22.6851
  2  2.04485
  3  0.253279
  4  0.11272
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267142': 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) = 5472.03903847
delta logL = 0.00611389519963

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  7.285e+00  2.269e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.046e+00  2.045e+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.058e+00  1.127e-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:  8.346e-01  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
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/267142/cmap_HighResolution_352598401_352857601_4FGL_J0312.8+0134_daily_bin437.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', job_status='DONE', photon_flux_upper_limit='1.40e-07', time_completed='2021-08-17 21:06:36.788020', job_id='267142', GAL2='1.06', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1629259596.79', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='6.11e-03', ts2='0.13', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='437' AND source_name='4FGL J0312.8+0134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 21:06:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 267142: <4FGL_J0312.8+0134_daily_bin437> in cluster <slac> Done

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

Your job looked like:

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

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

