aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/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 6 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 = 17171
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0844.2+5312_weekly_bin508
RA = 131.051, Dec = 53.2141
tmin = 546220801, tmax = 546825601
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='335076', job_status='RUN', time_executed='2021-07-14 07:41:45.062238', time_epoch_executed='1626273705.06' WHERE source_name='4FGL J0844.2+5312' and cadence='weekly' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335076

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335076/ft1_4FGL_J0844.2+5312_weekly_bin508.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335076/ft2_4FGL_J0844.2+5312_weekly_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335076/ft1_4FGL_J0844.2+5312_weekly_bin508.fits outfile=/scratch/kocevski/335076/ft1_filteredMKT_4FGL_J0844.2+5312_weekly_bin508.fits ra=131.051 dec=53.2141 rad=12.0 tmin=546220801.0 tmax=546825601.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 8.54
user 7.85
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/335076/ft2_4FGL_J0844.2+5312_weekly_bin508.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/335076/ft2_4FGL_J0844.2+5312_weekly_bin508.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/335076/ft1_filteredMKT_4FGL_J0844.2+5312_weekly_bin508.fits evtable="EVENTS" outfile="/scratch/kocevski/335076/ft1_filtered_4FGL_J0844.2+5312_weekly_bin508.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.55
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/335076/ft1_filtered_4FGL_J0844.2+5312_weekly_bin508.fits" evtable="EVENTS" scfile=/scratch/kocevski/335076/ft2_4FGL_J0844.2+5312_weekly_bin508.fits sctable="SC_DATA" outfile=/scratch/kocevski/335076/ltcube_546220801_546825601_4FGL_J0844.2+5312_weekly_bin508.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/335076/ft2_4FGL_J0844.2+5312_weekly_bin508.fits
.....................!
real 29.07
user 28.60
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335076/ft1_filtered_4FGL_J0844.2+5312_weekly_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/335076/ft2_4FGL_J0844.2+5312_weekly_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/335076/ltcube_546220801_546825601_4FGL_J0844.2+5312_weekly_bin508.fits outfile=/scratch/kocevski/335076/expmap_546220801_546825601_4FGL_J0844.2+5312_weekly_bin508.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/335076/ltcube_546220801_546825601_4FGL_J0844.2+5312_weekly_bin508.fits
.....................!
real 192.49
user 187.40
sys 4.58

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

Setting source of interest to:
4FGL J0844.2+5312 @ 131.051 53.2141

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/335076/ft1_filtered_4FGL_J0844.2+5312_weekly_bin508.fits scfile=/scratch/kocevski/335076/ft2_4FGL_J0844.2+5312_weekly_bin508.fits outfile=/scratch/kocevski/335076/cmap_546220801_546825601_4FGL_J0844.2+5312_weekly_bin508.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=131.051 yref=53.2141 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.59
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/335076/ft1_filtered_4FGL_J0844.2+5312_weekly_bin508.fits scfile=/scratch/kocevski/335076/ft2_4FGL_J0844.2+5312_weekly_bin508.fits outfile=/scratch/kocevski/335076/cmap_HighResolution_546220801_546825601_4FGL_J0844.2+5312_weekly_bin508.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=131.051 yref=53.2141 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.58
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/335076/ft1_filtered_4FGL_J0844.2+5312_weekly_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/335076/ft2_4FGL_J0844.2+5312_weekly_bin508.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/335076/Model_4FGL_J0844.2+5312_weekly_bin508.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/335076/ft1_filtered_4FGL_J0844.2+5312_weekly_bin508.fits.....................!
real 33.73
user 32.34
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/335076/ft1_filtered_4FGL_J0844.2+5312_weekly_bin508.fits', '/scratch/kocevski/335076/ft2_4FGL_J0844.2+5312_weekly_bin508.fits', expMap='/scratch/kocevski/335076/expmap_546220801_546825601_4FGL_J0844.2+5312_weekly_bin508.fits', expCube='/scratch/kocevski/335076/ltcube_546220801_546825601_4FGL_J0844.2+5312_weekly_bin508.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/335076/Model_4FGL_J0844.2+5312_weekly_bin508.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0844.2+5312'

4FGL J0844.2+5312
   Spectrum: PowerLaw
340    Prefactor:  2.666e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  2.035e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  1.737e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/335076/ft1_filtered_4FGL_J0844.2+5312_weekly_bin508.fits
Spacecraft file(s): /scratch/kocevski/335076/ft2_4FGL_J0844.2+5312_weekly_bin508.fits
Exposure map: /scratch/kocevski/335076/expmap_546220801_546825601_4FGL_J0844.2+5312_weekly_bin508.fits
Exposure cube: /scratch/kocevski/335076/ltcube_546220801_546825601_4FGL_J0844.2+5312_weekly_bin508.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/335076/Model_4FGL_J0844.2+5312_weekly_bin508.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) = 2512.84461613

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .11263E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.224       1.0000         .10000E-03   10000.    
     5 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    108.06       1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.763       1.0000         .10000E-03   10000.    
    10 'norm      '    15.060       1.0000         .10000E-03   10000.    
    11 'norm      '    .11761E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.0960       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.6598       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.143       1.0000         .10000E-03   10000.    
    16 'Prefactor '    48.563       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.6814       1.0000         .10000E-03   10000.    
    19 'norm      '    12.701       1.0000         .10000E-03   10000.    
    20 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    33.715       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .46200E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .59029       1.0000         .10000E-03   10000.    
    27 'norm      '    .10579E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .12859E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    28.432       1.0000         .10000E-03   10000.    
    30 'Prefactor '    9.5698       1.0000         .10000E-03   10000.    
    31 'Prefactor '    41.203       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    9.1089       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    35 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    36 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    37 'norm      '    .99009       1.0000         .10000E-03   10000.    
    38 'Prefactor '    2.4646       1.0000         .10000E-03   10000.    
    39 'Normalizat'    .46370       1.0000         .10000E-01   10.000    
    40 'Prefactor '    1.2991       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2512.799     FROM MIGRAD    STATUS=CONVERGED   1181 CALLS     6422 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.663        .46764E-06** at limit **
   2  Prefactor     .10000E-03    50.910       -.46023E-06** at limit **
   3  norm          .10000E-03    1.9323       -.12272E-06** at limit **
   4  Prefactor     12.229        28.850        .56060E-06    .20635E-04
   5  norm          .10000E-03    5.6712        .21594E-06** at limit **
   6  Prefactor     .10000E-03    18.710        .10298E-05** at limit **
   7  norm          .10000E-03    7.9886        .16872E-06** at limit **
   8  Prefactor     108.11        110.37        .33112E-05    .12090E-03
   9  Prefactor     42.771        53.620        .10582E-05    .38130E-04
  10  norm          15.050        11.697        .19623E-06   -.10666E-04
  11  norm          .10000E-03    4.8047        .99445E-08** at limit **
  12  Prefactor     9.0976        6.6601        .10955E-06   -.99748E-05
  13  Prefactor     .10000E-03    30.769        .15667E-06** at limit **
  14  norm          1.6600        1.1745       -.21246E-07   -.18562E-03
  15  Prefactor     19.145        14.411       -.39868E-07   -.53745E-05
  16  Prefactor     48.579        50.359        .14901E-05    .10324E-03
  17  Prefactor     .10000E-03    16.832        .10962E-05** at limit **
  18  Prefactor     3.6821        13.134        .90753E-05   -.93131E-04
  19  norm          12.698        14.739       -.51729E-06    .48169E-04
  20  norm          .10000E-03    10.123       -.61331E-06** at limit **
  21  Prefactor     .10000E-03    11.413       -.13531E-06** at limit **
  22  Prefactor     .10000E-03    7.2437       -.32630E-06** at limit **
  23  Prefactor     .10000E-03    2.0429       -.73118E-07** at limit **
  24  Prefactor     33.712        46.841       -.17528E-05   -.20065E-04
  25  Prefactor     .10024E-03    621.24       -.29762E-04** at limit **
  26  norm          .58957        .66421        .11802E-06    .62870E-03
  27  norm          .10010E-03    1.1476       -.23083E-06** at limit **
  28  Prefactor     .10000E-03    4.8889       -.48091E-06** at limit **
  29  Prefactor     28.429        39.388       -.92722E-06   -.36122E-05
  30  Prefactor     9.5701        7.6657       -.35741E-08    .10949E-04
  31  Prefactor     41.216        57.728        .13049E-05    .63225E-04
  32  Prefactor     .10000E-03    26.577       -.61233E-06** at limit **
  33  Prefactor     9.1110        15.822        .25394E-06    .42349E-04
  34  Prefactor     .10000E-03    5.9357        .13921E-06** at limit **
  35  norm          .10000E-03    9.1746       -.57963E-08** at limit **
  36  Prefactor     .10000E-03    32.561        .60365E-06** at limit **
  37  norm          .99024        1.1000        .32919E-07   -.32127E-04
  38  Prefactor     2.4719        22.351        .77403E-06   -.71246E-05
  39  Normalizat    .46331        .38650        .98520E-06    .22297E-04
  40  Prefactor     1.2991        .30103       -.19237E-05    .99296E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.2287
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 108.108
  Prefactor  = 42.771
  norm       = 15.0504
  norm       = 0.0001
  Prefactor  = 9.09764
  Prefactor  = 0.0001
  norm       = 1.66002
  Prefactor  = 19.1453
  Prefactor  = 48.5794
  Prefactor  = 0.0001
  Prefactor  = 3.68214
  norm       = 12.6975
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.7123
  Prefactor  = 0.000100239
  norm       = 0.589566
  norm       = 0.000100096
  Prefactor  = 0.0001
  Prefactor  = 28.429
  Prefactor  = 9.57008
  Prefactor  = 41.2163
  Prefactor  = 0.0001
  Prefactor  = 9.11102
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.990242
  Prefactor  = 2.47187
  Normalizat = 0.463306
  Prefactor  = 1.29912
 **********
 **   18 **HESSE 
 **********

 FCN=   2512.799     FROM HESSE     STATUS=OK           983 CALLS     7405 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    50.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.7052        .13409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.229        28.745        .11457E-03   -1.5008    
   5  norm          .10000E-03    5.7274        .11630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.2920        .27622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     108.11        110.82        .19345E-03   -1.3625    
   9  Prefactor     42.771        53.637        .61303E-04   -1.4399    
  10  norm          15.050        11.090        .10321E-03   -1.4932    
  11  norm          .10000E-03    7.7545        .20172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.0976        6.6389        .10558E-03   -1.5105    
  13  Prefactor     .10000E-03    30.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6600        1.1699        .41935E-04   -1.5450    
  15  Prefactor     19.145        14.383        .91542E-04   -1.4833    
  16  Prefactor     48.579        50.257        .57542E-04   -1.4313    
  17  Prefactor     .10000E-03    16.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.6821        13.340        .10525E-02   -1.5324    
  19  norm          12.698        14.687        .11240E-03   -1.4995    
  20  norm          .10000E-03    10.167        .15579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.417        .16542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.2508        .13179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.0535        .69928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     33.712        46.724        .69013E-04   -1.4546    
  25  Prefactor     .10024E-03    656.34        .21196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .58957        .61475        .38658E-04   -1.5554    
  27  norm          .10010E-03    26.582        .10204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7.6530        .19725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     28.429        39.327        .75135E-04   -1.4641    
  30  Prefactor     9.5701        7.6613        .11882E-03   -1.5089    
  31  Prefactor     41.216        57.653        .62449E-04   -1.4423    
  32  Prefactor     .10000E-03    26.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     9.1110        15.653        .13280E-03   -1.5104    
  34  Prefactor     .10000E-03    5.9374        .11924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  norm          .10000E-03    9.1754        .14831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     .10000E-03    32.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  norm          .99024        1.0694        .53286E-03   -1.5509    
  38  Prefactor     2.4719        21.988        .26049E-03   -1.5394    
  39  Normalizat    .46331        .39899        .41504E-03   -1.1415    
  40  Prefactor     1.2991        .32639        .22585E-03   -.83333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24783e-09
Minuit parameter uncertainties:
  1  0.00016734
  2  0.000140696
  3  7.11925e-05
  4  28.7779
  5  1.0117e-05
  6  7.5157e-05
  7  3.19616e-05
  8  111.029
  9  53.6979
  10  11.0914
  11  4.12085e-05
  12  6.63943
  13  6.53678e-05
  14  1.16996
  15  14.3856
  16  50.3011
  17  4.28578e-05
  18  13.3508
  19  14.6907
  20  6.12086e-05
  21  6.3572e-06
  22  2.20025e-05
  23  2.94152e-06
  24  46.7747
  25  0.0253548
  26  0.614759
  27  0.00320028
  28  5.26853e-05
  29  39.3624
  30  7.66208
  31  57.7313
  32  0.000133403
  33  15.6596
  34  7.55856e-06
  35  2.45902e-06
  36  0.000154111
  37  1.06937
  38  14.7518
  39  0.401478
  40  0.326902
Done.

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

Extracting fit parameters...

4FGL J0844.2+5312
   Spectrum: PowerLaw
340    Prefactor:  3.682e+00  1.335e+01  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  2.035e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  1.737e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  1.299e+00  3.269e-01  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  4.633e-01  4.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 131.051 53.214
Photon Flux Upper Limit: 1.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/335076/likelihoodResults_546220801_546825601_4FGL_J0844.2+5312_weekly_bin508.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) = 2512.72572383
delta logL = 0.073195802288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2512.72555453
delta logL = 0.0733651032242

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2512.726     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      233 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2953        17.809        .37021E-02    .22775E-04
   2  Index         1.5535        1.0578        .29206E-01    .44291E-04
   3  Normalizat    .47076        .33070        .92945E-01    .18145E-04
   4  Prefactor     1.2916        .29210        .51196E-01   -.65402E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.29531
  Index      = 1.5535
  Normalizat = 0.470761
  Prefactor  = 1.29164
 **********
 **   18 **HESSE 
 **********

 FCN=   2512.726     FROM HESSE     STATUS=OK            31 CALLS      264 TOTAL
                     EDM=   .20E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2953        17.563        .14808E-03   -1.5168    
   2  Index         1.5535        1.0457        .58412E-02   -.76052    
   3  Normalizat    .47076        .35835        .41183E-03   -1.1379    
   4  Prefactor     1.2916        .31772        .22633E-03   -.83556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95367e-14
Minuit parameter uncertainties:
  1  17.5751
  2  1.06078
  3  0.360122
  4  0.3182
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335076': 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) = 2512.72554998
delta logL = 0.0733696524035

Extracting fit parameters...

4FGL J0844.2+5312
   Spectrum: PowerLaw
340    Prefactor:  7.295e+00  1.758e+01  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  1.553e+00  1.061e+00  0.000e+00  1.000e+01 (-1.000e+00)
342        Scale:  1.737e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  1.292e+00  3.182e-01  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  4.708e-01  3.601e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 131.051 53.214

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/335076/cmap_HighResolution_546220801_546825601_4FGL_J0844.2+5312_weekly_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', job_status='DONE', photon_flux_upper_limit='1.56e-07', time_completed='2021-07-14 07:55:47.249076', job_id='335076', GAL2='1.29', fit_tolerance='1e-08', EG2='0.47', EG='0.46', time_epoch_completed='1626274547.25', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='7.34e-02', ts2='0.24', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='508' AND source_name='4FGL J0844.2+5312' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul 14 07:55:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 335076: <4FGL_J0844.2+5312_weekly_bin508> in cluster <slac> Done

Job <4FGL_J0844.2+5312_weekly_bin508> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Jul 14 07:40:27 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 14 07:41:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jul 14 07:41:27 2021
Terminated at Wed Jul 14 07:55:48 2021
Results reported at Wed Jul 14 07:55:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0844.2+5312_weekly_bin508 131.051 53.2141 546220801 546825601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0844.2+5312 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   810.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             298.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            921 sec.

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

