/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 152 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 = 7409
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0812.6+2821_daily_bin46
RA = 123.156, Dec = 28.3574
tmin = 251251201, tmax = 251510401
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='314129', job_status='RUN', time_executed='2021-08-29 12:39:41.955559', time_epoch_executed='1630265981.96' WHERE source_name='4FGL J0812.6+2821' and cadence='daily' and bin_id='46'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/314129

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/314129/ft1_4FGL_J0812.6+2821_daily_bin46.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/314129/ft2_4FGL_J0812.6+2821_daily_bin46.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/314129/ft1_4FGL_J0812.6+2821_daily_bin46.fits outfile=/scratch/kocevski/314129/ft1_filteredMKT_4FGL_J0812.6+2821_daily_bin46.fits ra=123.156 dec=28.3574 rad=12.0 tmin=251251201.0 tmax=251510401.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.34
user 1.30
sys 3.84

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/314129/ft2_4FGL_J0812.6+2821_daily_bin46.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/314129/ft1_filteredMKT_4FGL_J0812.6+2821_daily_bin46.fits evtable="EVENTS" outfile="/scratch/kocevski/314129/ft1_filtered_4FGL_J0812.6+2821_daily_bin46.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 4.78
user 0.32
sys 4.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/314129/ft1_filtered_4FGL_J0812.6+2821_daily_bin46.fits" evtable="EVENTS" scfile=/scratch/kocevski/314129/ft2_4FGL_J0812.6+2821_daily_bin46.fits sctable="SC_DATA" outfile=/scratch/kocevski/314129/ltcube_251251201_251510401_4FGL_J0812.6+2821_daily_bin46.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/314129/ft2_4FGL_J0812.6+2821_daily_bin46.fits
.....................!
real 17.72
user 12.38
sys 4.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/314129/ft1_filtered_4FGL_J0812.6+2821_daily_bin46.fits evtable="EVENTS" scfile=/scratch/kocevski/314129/ft2_4FGL_J0812.6+2821_daily_bin46.fits sctable="SC_DATA" expcube=/scratch/kocevski/314129/ltcube_251251201_251510401_4FGL_J0812.6+2821_daily_bin46.fits outfile=/scratch/kocevski/314129/expmap_251251201_251510401_4FGL_J0812.6+2821_daily_bin46.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/314129/ltcube_251251201_251510401_4FGL_J0812.6+2821_daily_bin46.fits
.....................!
real 196.32
user 186.44
sys 8.87

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/314129/ft1_filtered_4FGL_J0812.6+2821_daily_bin46.fits scfile=/scratch/kocevski/314129/ft2_4FGL_J0812.6+2821_daily_bin46.fits outfile=/scratch/kocevski/314129/cmap_251251201_251510401_4FGL_J0812.6+2821_daily_bin46.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 3.98
user 0.37
sys 3.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/314129/ft1_filtered_4FGL_J0812.6+2821_daily_bin46.fits scfile=/scratch/kocevski/314129/ft2_4FGL_J0812.6+2821_daily_bin46.fits outfile=/scratch/kocevski/314129/cmap_HighResolution_251251201_251510401_4FGL_J0812.6+2821_daily_bin46.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 4.18
user 0.39
sys 3.65

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/314129/ft1_filtered_4FGL_J0812.6+2821_daily_bin46.fits', '/scratch/kocevski/314129/ft2_4FGL_J0812.6+2821_daily_bin46.fits', expMap='/scratch/kocevski/314129/expmap_251251201_251510401_4FGL_J0812.6+2821_daily_bin46.fits', expCube='/scratch/kocevski/314129/ltcube_251251201_251510401_4FGL_J0812.6+2821_daily_bin46.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/314129/Model_4FGL_J0812.6+2821_daily_bin46.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/314129/ft1_filtered_4FGL_J0812.6+2821_daily_bin46.fits
Spacecraft file(s): /scratch/kocevski/314129/ft2_4FGL_J0812.6+2821_daily_bin46.fits
Exposure map: /scratch/kocevski/314129/expmap_251251201_251510401_4FGL_J0812.6+2821_daily_bin46.fits
Exposure cube: /scratch/kocevski/314129/ltcube_251251201_251510401_4FGL_J0812.6+2821_daily_bin46.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/314129/Model_4FGL_J0812.6+2821_daily_bin46.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) = 7703.34461662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4954       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.934       1.0000         .10000E-03   10000.    
     3 'norm      '    .11837E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.823       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .30591       1.0000         .10000E-03   10000.    
     8 'norm      '    1.2961       1.0000         .10000E-03   10000.    
     9 'norm      '    170.00       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17208E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10317E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.5132       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.999       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.1468       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.211       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6258       1.0000         .10000E-03   10000.    
    18 'Prefactor '    49.832       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .93848       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93264       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7703.343     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     1771 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4925        6.6083       -.53225E-05    .42224E-04
   2  Prefactor     14.936        1.7262        .91789E-06    .27099E-02
   3  norm          .10000E-03    3.2028        .87303E-06** at limit **
   4  Prefactor     37.039        40.146       -.13683E-04    .10641E-02
   5  Prefactor     .10000E-03    8.3367       -.66844E-06** at limit **
   6  Prefactor     .10000E-03    31.483       -.35580E-05** at limit **
   7  Prefactor     .54397E-02    7862.0        .40720E-03    .60042E-04
   8  norm          1.2950        4.5067        .31654E-05    .69317E-04
   9  norm          170.05        10.057       -.17770E-05   -.19045E-03
  10  Prefactor     .10001E-03    56.038        .31774E-04** at limit **
  11  Prefactor     .10000E-03    11.470       -.13496E-05** at limit **
  12  Prefactor     7.5238        15.813       -.17963E-04   -.22305E-03
  13  Prefactor     19.992        11.632        .81854E-05   -.16617E-02
  14  Prefactor     .10000E-03    2.0601       -.21741E-06** at limit **
  15  norm          2.1469        1.3147       -.41883E-06   -.50403E-03
  16  Prefactor     13.210        8.4771        .29000E-06   -.28706E-03
  17  Prefactor     2.6245        5.5808        .76629E-05   -.49091E-03
  18  Prefactor     49.831        9.3088        .39069E-05    .60065E-03
  19  Normalizat    .93842        .18950        .54162E-07   -.97486E-05
  20  Prefactor     .93276        .14509       -.45460E-05   -.13078E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.49249
  Prefactor  = 14.936
  norm       = 0.0001
  Prefactor  = 37.0395
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.00543968
  norm       = 1.29501
  norm       = 170.053
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 7.52376
  Prefactor  = 19.9924
  Prefactor  = 0.0001
  norm       = 2.14694
  Prefactor  = 13.2098
  Prefactor  = 2.62452
  Prefactor  = 49.8306
  Normalizat = 0.938417
  Prefactor  = 0.932764
 **********
 **   18 **HESSE 
 **********

 FCN=   7703.343     FROM HESSE     STATUS=OK           349 CALLS     2120 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4925        6.6212        .39368E-02   -1.5198    
   2  Prefactor     14.936        12.733        .25911E-02   -1.4935    
   3  norm          .10000E-03    1.8946        .42184E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     37.039        41.985        .16511E-02   -1.4490    
   5  Prefactor     .10000E-03    8.2722        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.428        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .54397E-02    35.146        .14312       -1.5693    
   8  norm          1.2950        4.5728        .97127E-02   -1.5480    
   9  norm          170.05        95.411        .77358E-03   -1.3092    
  10  Prefactor     .10001E-03    54.962        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.469        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.5238        22.029        .36578E-02   -1.5159    
  13  Prefactor     19.992        22.618        .22390E-02   -1.4813    
  14  Prefactor     .10000E-03    1.9810        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.1469        1.4311        .70312E-02   -1.5415    
  16  Prefactor     13.210        8.5130        .27551E-02   -1.4981    
  17  Prefactor     2.6245        5.5963        .62918E-02   -1.5384    
  18  Prefactor     49.831        21.127        .14202E-02   -1.4295    
  19  Normalizat    .93842        .16870        .45391E-01   -.95123    
  20  Prefactor     .93276        .12634        .45420E-01   -.95005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5555e-07
Minuit parameter uncertainties:
  1  6.622
  2  12.7357
  3  1.49187e-06
  4  42.0183
  5  3.03294e-07
  6  0.000553699
  7  0.866922
  8  4.57403
  9  95.498
  10  0.00176234
  11  8.65648e-05
  12  22.0525
  13  22.6278
  14  7.12627e-06
  15  1.4311
  16  8.51381
  17  5.59744
  18  21.1302
  19  0.168792
  20  0.126382
Done.

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

Extracting fit parameters...

4FGL J0812.6+2821
   Spectrum: PowerLaw
289    Prefactor:  1.000e-04  1.762e-03  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:  9.328e-01  1.264e-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:  9.384e-01  1.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/314129/likelihoodResults_251251201_251510401_4FGL_J0812.6+2821_daily_bin46.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) = 7703.34301412
delta logL = -8.53996489241e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7703.31415325
delta logL = 0.0287754696074

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80423       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1375       1.0000          .0000       10.000    
     3 'Normalizat'    .92682       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93643       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=   7703.314     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      267 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79388        16.272        .42476E-01    .74808E-03
   2  Index         3.1410        1.2262        .21809       -.42112E-05
   3  Normalizat    .92688        .12239E-01    .45243E-01   -.22613E-03
   4  Prefactor     .93648        .96491E-02    .45468E-01   -.29144E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.793875
  Index      = 3.141
  Normalizat = 0.926885
  Prefactor  = 0.936483
 **********
 **   18 **HESSE 
 **********

 FCN=   7703.314     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      300 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .79388        583.64        .23321E-02   -1.5530    
   2  Index         3.1410        8.3845        .77253E-02   -.38095    
   3  Normalizat    .92688        .10625        .27191E-03   -.95522    
   4  Prefactor     .93648        .85370E-01    .21222E-03   -.94878    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.74733e-09
Minuit parameter uncertainties:
  1  43.4799
  2  19.2224
  3  0.106271
  4  0.0853827
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/314129': 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) = 7703.31415127
delta logL = 0.0287774497929

Extracting fit parameters...

4FGL J0812.6+2821
   Spectrum: PowerLaw
289    Prefactor:  7.939e-01  4.348e+01  1.000e-04  1.000e+04 ( 1.000e-14)
290        Index:  3.141e+00  1.922e+01  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:  9.365e-01  8.538e-02  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:  9.269e-01  1.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 123.156 28.357

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/314129/cmap_HighResolution_251251201_251510401_4FGL_J0812.6+2821_daily_bin46.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-03', job_status='DONE', photon_flux_upper_limit='6.00e-08', time_completed='2021-08-29 12:51:27.413864', job_id='314129', GAL2='0.94', fit_tolerance='1e-08', EG2='0.93', EG='0.94', time_epoch_completed='1630266687.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.88e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='46' AND source_name='4FGL J0812.6+2821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:51:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 314129: <4FGL_J0812.6+2821_daily_bin46> in cluster <slac> Done

Job <4FGL_J0812.6+2821_daily_bin46> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 12:35:56 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:35:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 12:35:58 2021
Terminated at Sun Aug 29 12:51:28 2021
Results reported at Sun Aug 29 12:51:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0812.6+2821_daily_bin46 123.156 28.3574 251251201 251510401 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 :                                   757.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            932 sec.

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

