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


Performing analysis on: 4FGL_J0812.6+2821_daily_bin518
RA = 123.156, Dec = 28.3574
tmin = 373593601, tmax = 373852801
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='317202', job_status='RUN', time_executed='2021-08-29 12:47:02.207954', time_epoch_executed='1630266422.21' WHERE source_name='4FGL J0812.6+2821' and cadence='daily' and bin_id='518'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/317202

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/317202/ft1_4FGL_J0812.6+2821_daily_bin518.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/317202/ft2_4FGL_J0812.6+2821_daily_bin518.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/317202/ft1_4FGL_J0812.6+2821_daily_bin518.fits outfile=/scratch/kocevski/317202/ft1_filteredMKT_4FGL_J0812.6+2821_daily_bin518.fits ra=123.156 dec=28.3574 rad=12.0 tmin=373593601.0 tmax=373852801.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 7.83
user 3.31
sys 4.37

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/317202/ft2_4FGL_J0812.6+2821_daily_bin518.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/317202/ft1_filteredMKT_4FGL_J0812.6+2821_daily_bin518.fits evtable="EVENTS" outfile="/scratch/kocevski/317202/ft1_filtered_4FGL_J0812.6+2821_daily_bin518.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.70
user 0.33
sys 4.31

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/317202/ft1_filtered_4FGL_J0812.6+2821_daily_bin518.fits" evtable="EVENTS" scfile=/scratch/kocevski/317202/ft2_4FGL_J0812.6+2821_daily_bin518.fits sctable="SC_DATA" outfile=/scratch/kocevski/317202/ltcube_373593601_373852801_4FGL_J0812.6+2821_daily_bin518.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/317202/ft2_4FGL_J0812.6+2821_daily_bin518.fits
.....................!
real 16.30
user 11.30
sys 4.95

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/317202/ft1_filtered_4FGL_J0812.6+2821_daily_bin518.fits evtable="EVENTS" scfile=/scratch/kocevski/317202/ft2_4FGL_J0812.6+2821_daily_bin518.fits sctable="SC_DATA" expcube=/scratch/kocevski/317202/ltcube_373593601_373852801_4FGL_J0812.6+2821_daily_bin518.fits outfile=/scratch/kocevski/317202/expmap_373593601_373852801_4FGL_J0812.6+2821_daily_bin518.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/317202/ltcube_373593601_373852801_4FGL_J0812.6+2821_daily_bin518.fits
.....................!
real 195.41
user 185.51
sys 9.49

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/317202/ft1_filtered_4FGL_J0812.6+2821_daily_bin518.fits scfile=/scratch/kocevski/317202/ft2_4FGL_J0812.6+2821_daily_bin518.fits outfile=/scratch/kocevski/317202/cmap_373593601_373852801_4FGL_J0812.6+2821_daily_bin518.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 4.64
user 0.37
sys 4.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/317202/ft1_filtered_4FGL_J0812.6+2821_daily_bin518.fits scfile=/scratch/kocevski/317202/ft2_4FGL_J0812.6+2821_daily_bin518.fits outfile=/scratch/kocevski/317202/cmap_HighResolution_373593601_373852801_4FGL_J0812.6+2821_daily_bin518.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.62
user 0.38
sys 4.22

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.931       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.544       1.0000         .10000E-03   10000.    
     3 'norm      '    1.8080       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.847       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.9622       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.431       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9587       1.0000         .10000E-03   10000.    
    15 'norm      '    18.102       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2665       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.7693       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5014       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .82949       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1334       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=   7692.387     FROM MIGRAD    STATUS=CONVERGED    394 CALLS     2010 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.931        8.6669       -.55048E-06   -.15984E-03
   2  Prefactor     12.544        13.370       -.53701E-06   -.18955E-04
   3  norm          1.8124        3.9502        .12295E-04    .42292E-03
   4  Prefactor     .10000E-03    11.949       -.34395E-05** at limit **
   5  Prefactor     .10000E-03    5.0414       -.17004E-06** at limit **
   6  Prefactor     28.850        39.714        .52145E-05   -.18954E-04
   7  Prefactor     9.9101        35.414       -.13161E-03   -.11076E-03
   8  norm          .10000E-03    2.2025       -.53657E-07** at limit **
   9  norm          .10000E-03    24.005       -.15750E-04** at limit **
  10  Prefactor     .10000E-03    11.935       -.39952E-05** at limit **
  11  Prefactor     .10000E-03    20.632        .22026E-04** at limit **
  12  Prefactor     37.434        27.052        .24811E-05   -.17949E-04
  13  Prefactor     .10000E-03    9.6093        .37725E-05** at limit **
  14  Prefactor     1.9587        1.5713       -.76467E-07    .10627E-03
  15  norm          18.102        2.3854        .70973E-08   -.17489E-04
  16  Prefactor     1.2671        6.8663       -.36893E-05   -.10518E-02
  17  Prefactor     8.7692        9.6468       -.22334E-06   -.15179E-04
  18  Prefactor     6.4989        18.552       -.48112E-05   -.39952E-04
  19  Normalizat    .82929        .18990        .41595E-06   -.91151E-04
  20  Prefactor     1.1336        .14516        .26855E-05   -.31427E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.931
  Prefactor  = 12.5438
  norm       = 1.81236
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 28.8502
  Prefactor  = 9.91014
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.4337
  Prefactor  = 0.0001
  Prefactor  = 1.9587
  norm       = 18.1022
  Prefactor  = 1.26707
  Prefactor  = 8.76915
  Prefactor  = 6.49892
  Normalizat = 0.829291
  Prefactor  = 1.13357
 **********
 **   18 **HESSE 
 **********

 FCN=   7692.387     FROM HESSE     STATUS=OK           295 CALLS     2305 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.931        8.6690        .11598E-03   -1.5017    
   2  Prefactor     12.544        13.370        .11310E-03   -1.4999    
   3  norm          1.8124        3.8959        .22516E-03   -1.5439    
   4  Prefactor     .10000E-03    11.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.0437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.850        39.769        .74594E-04   -1.4633    
   7  Prefactor     9.9101        35.253        .12696E-03   -1.5078    
   8  norm          .10000E-03    2.2043        .12712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    24.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     37.434        27.071        .65508E-04   -1.4484    
  13  Prefactor     .10000E-03    9.6252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.9587        1.5717        .95918E-04   -1.5428    
  15  norm          18.102        2.3823        .46218E-04   -1.4857    
  16  Prefactor     1.2671        6.7892        .39576E-03   -1.5483    
  17  Prefactor     8.7692        9.6348        .13536E-03   -1.5116    
  18  Prefactor     6.4989        18.666        .15740E-03   -1.5198    
  19  Normalizat    .82929        .21857        .31625E-03   -.98991    
  20  Prefactor     1.1336        .16743        .21937E-03   -.88401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57006e-09
Minuit parameter uncertainties:
  1  8.66986
  2  13.3736
  3  3.89645
  4  0.000204642
  5  7.03885e-06
  6  39.8058
  7  35.3272
  8  2.57926e-07
  9  8.55198e-06
  10  6.52971e-06
  11  3.40422e-05
  12  27.0796
  13  6.51965e-06
  14  1.57173
  15  2.38228
  16  5.86676
  17  9.6365
  18  18.6827
  19  0.218802
  20  0.167505
Done.

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

Extracting fit parameters...

4FGL J0812.6+2821
   Spectrum: PowerLaw
289    Prefactor:  1.000e-04  6.530e-06  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:  1.134e+00  1.675e-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:  8.293e-01  2.188e-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: 4.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/317202/likelihoodResults_373593601_373852801_4FGL_J0812.6+2821_daily_bin518.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7692.38771274
delta logL = -0.000398189267798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7692.38731441
delta logL = 1.33024514071e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7692.387     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      251 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10092E-03    65.981        .18142E-02** at limit **
   2  Index         2.0360        5.1400        .50000        .16152E-04
   3  Normalizat    .82929        .10240E-01    .31625E-03   -.51047E-05
   4  Prefactor     1.1336        .82293E-02    .21937E-03   -.14511E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010092
  Index      = 2.03597
  Normalizat = 0.82929
  Prefactor  = 1.13357
 **********
 **   18 **HESSE 
 **********

 FCN=   7692.387     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10092E-03    301.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0360        7.7120        .50000       -.63454    
   3  Normalizat    .82929        .22395E-01    .12650E-04   -.98991    
   4  Prefactor     1.1336        .17998E-01    .87747E-05   -.88401    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.0045e-08
Minuit parameter uncertainties:
  1  0.0334493
  2  341.075
  3  0.0223952
  4  0.0179982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/317202': 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) = 7692.38731425
delta logL = 2.93966877507e-07

Extracting fit parameters...

4FGL J0812.6+2821
   Spectrum: PowerLaw
289    Prefactor:  1.009e-04  3.345e-02  1.000e-04  1.000e+04 ( 1.000e-14)
290        Index:  2.036e+00  3.411e+02  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:  1.134e+00  1.800e-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:  8.293e-01  2.240e-02  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/317202/cmap_HighResolution_373593601_373852801_4FGL_J0812.6+2821_daily_bin518.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.44e-03', job_status='DONE', photon_flux_upper_limit='4.55e-08', time_completed='2021-08-29 12:58:58.565058', job_id='317202', GAL2='1.13', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630267138.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='2.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='518' AND source_name='4FGL J0812.6+2821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:58:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 317202: <4FGL_J0812.6+2821_daily_bin518> in cluster <slac> Done

Job <4FGL_J0812.6+2821_daily_bin518> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 12:45:30 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:45:32 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:45:32 2021
Terminated at Sun Aug 29 12:58:59 2021
Results reported at Sun Aug 29 12:58:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0812.6+2821_daily_bin518 123.156 28.3574 373593601 373852801 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 :                                   780.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             277.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            809 sec.

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

