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


Performing analysis on: 4FGL_J0812.6+2821_daily_bin1597
RA = 123.156, Dec = 28.3574
tmin = 653270401, tmax = 653529601
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='542462', job_status='RUN', time_executed='2021-09-17 00:45:33.200624', time_epoch_executed='1631864733.2' WHERE source_name='4FGL J0812.6+2821' and cadence='daily' and bin_id='1597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/542462

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/542462/ft1_4FGL_J0812.6+2821_daily_bin1597.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/542462/ft2_4FGL_J0812.6+2821_daily_bin1597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/542462/ft1_4FGL_J0812.6+2821_daily_bin1597.fits outfile=/scratch/kocevski/542462/ft1_filteredMKT_4FGL_J0812.6+2821_daily_bin1597.fits ra=123.156 dec=28.3574 rad=12.0 tmin=653270401.0 tmax=653529601.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 3.33
user 3.11
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/542462/ft2_4FGL_J0812.6+2821_daily_bin1597.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/542462/ft2_4FGL_J0812.6+2821_daily_bin1597.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/542462/ft1_filteredMKT_4FGL_J0812.6+2821_daily_bin1597.fits evtable="EVENTS" outfile="/scratch/kocevski/542462/ft1_filtered_4FGL_J0812.6+2821_daily_bin1597.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.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/542462/ft1_filtered_4FGL_J0812.6+2821_daily_bin1597.fits" evtable="EVENTS" scfile=/scratch/kocevski/542462/ft2_4FGL_J0812.6+2821_daily_bin1597.fits sctable="SC_DATA" outfile=/scratch/kocevski/542462/ltcube_653270401_653529601_4FGL_J0812.6+2821_daily_bin1597.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/542462/ft2_4FGL_J0812.6+2821_daily_bin1597.fits
.....................!
real 12.68
user 12.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/542462/ft1_filtered_4FGL_J0812.6+2821_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/542462/ft2_4FGL_J0812.6+2821_daily_bin1597.fits sctable="SC_DATA" expcube=/scratch/kocevski/542462/ltcube_653270401_653529601_4FGL_J0812.6+2821_daily_bin1597.fits outfile=/scratch/kocevski/542462/expmap_653270401_653529601_4FGL_J0812.6+2821_daily_bin1597.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/542462/ltcube_653270401_653529601_4FGL_J0812.6+2821_daily_bin1597.fits
.....................!
real 189.72
user 184.54
sys 4.76

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 174 point sources and 0 extended sources

Setting source of interest to:
4FGL J0812.6+2821 @ 123.156 28.3574

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/542462/ft1_filtered_4FGL_J0812.6+2821_daily_bin1597.fits scfile=/scratch/kocevski/542462/ft2_4FGL_J0812.6+2821_daily_bin1597.fits outfile=/scratch/kocevski/542462/cmap_653270401_653529601_4FGL_J0812.6+2821_daily_bin1597.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=123.156 yref=28.3574 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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/542462/ft1_filtered_4FGL_J0812.6+2821_daily_bin1597.fits scfile=/scratch/kocevski/542462/ft2_4FGL_J0812.6+2821_daily_bin1597.fits outfile=/scratch/kocevski/542462/cmap_HighResolution_653270401_653529601_4FGL_J0812.6+2821_daily_bin1597.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=123.156 yref=28.3574 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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/542462/ft1_filtered_4FGL_J0812.6+2821_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/542462/ft2_4FGL_J0812.6+2821_daily_bin1597.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/542462/Model_4FGL_J0812.6+2821_daily_bin1597.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/542462/ft1_filtered_4FGL_J0812.6+2821_daily_bin1597.fits.....................!
real 64.39
user 63.04
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/542462/ft1_filtered_4FGL_J0812.6+2821_daily_bin1597.fits', '/scratch/kocevski/542462/ft2_4FGL_J0812.6+2821_daily_bin1597.fits', expMap='/scratch/kocevski/542462/expmap_653270401_653529601_4FGL_J0812.6+2821_daily_bin1597.fits', expCube='/scratch/kocevski/542462/ltcube_653270401_653529601_4FGL_J0812.6+2821_daily_bin1597.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/542462/Model_4FGL_J0812.6+2821_daily_bin1597.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0812.6+2821'

4FGL J0812.6+2821
   Spectrum: PowerLaw
289    Prefactor:  2.525e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
290        Index:  2.111e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
291        Scale:  2.639e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/542462/ft1_filtered_4FGL_J0812.6+2821_daily_bin1597.fits
Spacecraft file(s): /scratch/kocevski/542462/ft2_4FGL_J0812.6+2821_daily_bin1597.fits
Exposure map: /scratch/kocevski/542462/expmap_653270401_653529601_4FGL_J0812.6+2821_daily_bin1597.fits
Exposure cube: /scratch/kocevski/542462/ltcube_653270401_653529601_4FGL_J0812.6+2821_daily_bin1597.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/542462/Model_4FGL_J0812.6+2821_daily_bin1597.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) = 6177.0020637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19272       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.271       1.0000         .10000E-03   10000.    
     3 'norm      '    .88022       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.395       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .59037E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.7892       1.0000         .10000E-03   10000.    
     9 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.239       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3753       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.947       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8002       1.0000         .10000E-03   10000.    
    15 'norm      '    3.3048       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.620       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.100       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1223       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .83305       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6176.986     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     2093 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20108        2.6059        .16300E-05   -.13551E-02
   2  Prefactor     10.269        13.115       -.13802E-05   -.43997E-03
   3  norm          .87386        2.8813        .10549E-05   -.94834E-04
   4  Prefactor     .10000E-03    7.9629       -.81814E-07** at limit **
   5  Prefactor     11.430        16.197       -.66342E-06   -.71914E-04
   6  Prefactor     .10099E-03    39.260       -.19786E-05** at limit **
   7  Prefactor     .10000E-03    10.575        .23344E-06** at limit **
   8  norm          5.7908        7.6623        .35547E-05   -.39347E-03
   9  norm          .10000E-03    20.013        .68162E-07** at limit **
  10  Prefactor     25.220        38.413       -.37006E-05   -.42640E-03
  11  Prefactor     6.4103        69.372        .72697E-06   -.82380E-04
  12  Prefactor     .10000E-03    10.094       -.14958E-06** at limit **
  13  Prefactor     18.954        21.721       -.27229E-05   -.56885E-03
  14  Prefactor     4.8003        3.4080        .56399E-07   -.35165E-04
  15  norm          3.3047        1.5791        .17172E-06   -.56435E-04
  16  Prefactor     10.622        10.405        .26261E-06    .70139E-04
  17  Prefactor     .10000E-03    14.272        .33445E-06** at limit **
  18  Prefactor     17.096        19.616        .83562E-06    .18632E-03
  19  Normalizat    1.1222        .18568        .34257E-06   -.17272E-03
  20  Prefactor     .83312        .13526       -.78112E-06   -.12329E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.201081
  Prefactor  = 10.2689
  norm       = 0.873863
  Prefactor  = 0.0001
  Prefactor  = 11.4299
  Prefactor  = 0.000100993
  Prefactor  = 0.0001
  norm       = 5.7908
  norm       = 0.0001
  Prefactor  = 25.2199
  Prefactor  = 6.41031
  Prefactor  = 0.0001
  Prefactor  = 18.9537
  Prefactor  = 4.80026
  norm       = 3.30472
  Prefactor  = 10.6222
  Prefactor  = 0.0001
  Prefactor  = 17.0957
  Normalizat = 1.12224
  Prefactor  = 0.833122
 **********
 **   18 **HESSE 
 **********

 FCN=   6176.986     FROM HESSE     STATUS=OK           303 CALLS     2396 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20108        14.756        .22843E-02   -1.5618    
   2  Prefactor     10.269        13.314        .12502E-03   -1.5067    
   3  norm          .87386        2.8140        .21842E-03   -1.5521    
   4  Prefactor     .10000E-03    7.9662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.430        15.893        .11868E-03   -1.5032    
   6  Prefactor     .10099E-03    39.154        .13593       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.7908        8.0221        .83462E-03   -1.5227    
   9  norm          .10000E-03    20.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.220        39.269        .79737E-04   -1.4703    
  11  Prefactor     6.4103        67.994        .15896E-03   -1.5202    
  12  Prefactor     .10000E-03    10.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.954        22.536        .92013E-04   -1.4837    
  14  Prefactor     4.8003        3.4091        .11779E-03   -1.5270    
  15  norm          3.3047        1.5819        .61761E-04   -1.5344    
  16  Prefactor     10.622        10.414        .12294E-03   -1.5056    
  17  Prefactor     .10000E-03    14.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.096        19.688        .96855E-04   -1.4881    
  19  Normalizat    1.1222        .21745        .25351E-03   -.89041    
  20  Prefactor     .83312        .15777        .21966E-03   -.98519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22058e-08
Minuit parameter uncertainties:
  1  3.44511
  2  13.3182
  3  2.81445
  4  1.32055e-05
  5  15.8984
  6  0.0124786
  7  4.18819e-05
  8  8.02362
  9  1.54178e-05
  10  39.3088
  11  41.8151
  12  1.68193e-05
  13  22.5464
  14  3.4092
  15  1.58195
  16  10.4153
  17  3.73784e-05
  18  19.6956
  19  0.217623
  20  0.157852
Done.

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

Extracting fit parameters...

4FGL J0812.6+2821
   Spectrum: PowerLaw
289    Prefactor:  2.522e+01  3.931e+01  1.000e-04  1.000e+04 ( 1.000e-14)
290        Index:  2.111e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
291        Scale:  2.639e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  8.331e-01  1.579e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  1.122e+00  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.67
Ra Dec: 123.156 28.357
Photon Flux Upper Limit: 9.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/542462/likelihoodResults_653270401_653529601_4FGL_J0812.6+2821_daily_bin1597.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) = 6176.51475906
delta logL = 0.471464747258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6176.50805196
delta logL = 0.478171854003

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0843       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9617       1.0000          .0000       10.000    
     3 'Normalizat'    1.0774       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85244       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6176.508     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      260 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0606        149.08        .37679E-02    .26534E-03
   2  Index         2.9630        2.7041        .84631E-01    .20901E-03
   3  Normalizat    1.0773        .67553E-01    .58324E-01    .89388E-05
   4  Prefactor     .85245        .47170E-01    .44396E-01    .63646E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.06065
  Index      = 2.96299
  Normalizat = 1.07728
  Prefactor  = 0.852454
 **********
 **   18 **HESSE 
 **********

 FCN=   6176.508     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      293 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0606        251.02        .15072E-03   -1.5176    
   2  Index         2.9630        6.4577        .44273E-02   -.41961    
   3  Normalizat    1.0773        .23434        .25793E-03   -.90485    
   4  Prefactor     .85245        .17106        .21735E-03   -.97823    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15963e-09
Minuit parameter uncertainties:
  1  84.5843
  2  4.62581
  3  0.234561
  4  0.171168
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/542462': 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) = 6176.50805058
delta logL = 0.478173225712

Extracting fit parameters...

4FGL J0812.6+2821
   Spectrum: PowerLaw
289    Prefactor:  7.061e+00  8.458e+01  1.000e-04  1.000e+04 ( 1.000e-14)
290        Index:  2.963e+00  4.626e+00  0.000e+00  1.000e+01 (-1.000e+00)
291        Scale:  2.639e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  8.525e-01  1.712e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  1.077e+00  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.67
Ra Dec: 123.156 28.357
Photon Index (Free Index): 2.96 +/- 4.63
Photon Flux (Free Index): 5.86e-08 +/- 7.07e-08
Energy Flux (Free Index): 1.19e-05 +/- 2.14e-05

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/542462/cmap_HighResolution_653270401_653529601_4FGL_J0812.6+2821_daily_bin1597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.18e-03', comment='SUCCESS', energy_flux2='1.19e-05', dlogl='4.78e-01', photon_flux2='5.86e-08', job_status='DONE', time_completed='2021-09-17 00:55:37.803124', photon_index_error2='4.63', photon_index2='2.96', ts='0.67', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='9.49e-08', energy_flux_error2='2.14e-05', EG='1.12', time_epoch_completed='1631865337.8', return_code='0', job_id='542462', GAL2='0.85', EG2='1.08', return_code2='102', photon_flux_error2='7.07e-08', ts2='1.67', photon_index='2.11' WHERE bin_id='1597' AND source_name='4FGL J0812.6+2821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 00:55:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 542462: <4FGL_J0812.6+2821_daily_bin1597> in cluster <slac> Done

Job <4FGL_J0812.6+2821_daily_bin1597> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Fri Sep 17 00:45:21 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 00:45:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 00:45:23 2021
Terminated at Fri Sep 17 00:55:38 2021
Results reported at Fri Sep 17 00:55:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0812.6+2821_daily_bin1597 123.156 28.3574 653270401 653529601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0812.6+2821 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   606.42 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             388.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   615 sec.
    Turnaround time :                            617 sec.

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

