aklog: Couldn't determine realm of user:aklog: No credentials cache found  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 60 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 = 7478
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0844.2+5312_daily_bin1694
RA = 131.051, Dec = 53.2141
tmin = 678412801, tmax = 678672001
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='639414', job_status='RUN', time_executed='2022-07-05 03:14:31.832775', time_epoch_executed='1657016071.83' WHERE source_name='4FGL J0844.2+5312' and cadence='daily' and bin_id='1694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639414

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639414/ft1_4FGL_J0844.2+5312_daily_bin1694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639414/ft2_4FGL_J0844.2+5312_daily_bin1694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639414/ft1_4FGL_J0844.2+5312_daily_bin1694.fits outfile=/scratch/kocevski/639414/ft1_filteredMKT_4FGL_J0844.2+5312_daily_bin1694.fits ra=131.051 dec=53.2141 rad=12.0 tmin=678412801.0 tmax=678672001.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.69
user 3.46
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/639414/ft2_4FGL_J0844.2+5312_daily_bin1694.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/639414/ft1_filteredMKT_4FGL_J0844.2+5312_daily_bin1694.fits evtable="EVENTS" outfile="/scratch/kocevski/639414/ft1_filtered_4FGL_J0844.2+5312_daily_bin1694.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.35
sys 0.15

Number of photons that the gtmktime cut: 725

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639414/ft1_filtered_4FGL_J0844.2+5312_daily_bin1694.fits" evtable="EVENTS" scfile=/scratch/kocevski/639414/ft2_4FGL_J0844.2+5312_daily_bin1694.fits sctable="SC_DATA" outfile=/scratch/kocevski/639414/ltcube_678412801_678672001_4FGL_J0844.2+5312_daily_bin1694.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/639414/ft2_4FGL_J0844.2+5312_daily_bin1694.fits
.....................!
real 14.73
user 14.14
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639414/ft1_filtered_4FGL_J0844.2+5312_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/639414/ft2_4FGL_J0844.2+5312_daily_bin1694.fits sctable="SC_DATA" expcube=/scratch/kocevski/639414/ltcube_678412801_678672001_4FGL_J0844.2+5312_daily_bin1694.fits outfile=/scratch/kocevski/639414/expmap_678412801_678672001_4FGL_J0844.2+5312_daily_bin1694.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/639414/ltcube_678412801_678672001_4FGL_J0844.2+5312_daily_bin1694.fits
.....................!
real 192.92
user 187.27
sys 4.43

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/639414/ft1_filtered_4FGL_J0844.2+5312_daily_bin1694.fits scfile=/scratch/kocevski/639414/ft2_4FGL_J0844.2+5312_daily_bin1694.fits outfile=/scratch/kocevski/639414/cmap_678412801_678672001_4FGL_J0844.2+5312_daily_bin1694.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639414/ft1_filtered_4FGL_J0844.2+5312_daily_bin1694.fits scfile=/scratch/kocevski/639414/ft2_4FGL_J0844.2+5312_daily_bin1694.fits outfile=/scratch/kocevski/639414/cmap_HighResolution_678412801_678672001_4FGL_J0844.2+5312_daily_bin1694.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.57
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/639414/ft1_filtered_4FGL_J0844.2+5312_daily_bin1694.fits', '/scratch/kocevski/639414/ft2_4FGL_J0844.2+5312_daily_bin1694.fits', expMap='/scratch/kocevski/639414/expmap_678412801_678672001_4FGL_J0844.2+5312_daily_bin1694.fits', expCube='/scratch/kocevski/639414/ltcube_678412801_678672001_4FGL_J0844.2+5312_daily_bin1694.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/639414/Model_4FGL_J0844.2+5312_daily_bin1694.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/639414/ft1_filtered_4FGL_J0844.2+5312_daily_bin1694.fits
Spacecraft file(s): /scratch/kocevski/639414/ft2_4FGL_J0844.2+5312_daily_bin1694.fits
Exposure map: /scratch/kocevski/639414/expmap_678412801_678672001_4FGL_J0844.2+5312_daily_bin1694.fits
Exposure cube: /scratch/kocevski/639414/ltcube_678412801_678672001_4FGL_J0844.2+5312_daily_bin1694.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/639414/Model_4FGL_J0844.2+5312_daily_bin1694.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) = 7894.3606443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.542       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.8996       1.0000         .10000E-03   10000.    
     5 'norm      '    .62785       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5531       1.0000         .10000E-03   10000.    
     7 'norm      '    .46429E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6058       1.0000         .10000E-03   10000.    
    10 'norm      '    .12367E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0066       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12644E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8283       1.0000         .10000E-03   10000.    
    14 'norm      '    .93902       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5177       1.0000         .10000E-03   10000.    
    16 'Prefactor '    91.139       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    12.154       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.7843       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13046E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .48253       1.0000         .10000E-03   10000.    
    27 'norm      '    1.3716       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .35760       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.0300       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    10.710       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    5.8189       1.0000         .10000E-03   10000.    
    34 'Prefactor '    6.2023       1.0000         .10000E-03   10000.    
    35 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    36 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    37 'norm      '    1.8797       1.0000         .10000E-03   10000.    
    38 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    39 'Normalizat'    .86418       1.0000         .10000E-01   10.000    
    40 'Prefactor '    1.1708       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=   7894.353     FROM MIGRAD    STATUS=CONVERGED   1277 CALLS     6528 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.729        .12759E-05** at limit **
   2  Prefactor     13.545        25.869        .63913E-05    .29884E-05
   3  norm          .10000E-03    .21226        .84232E-08** at limit **
   4  Prefactor     6.8990        11.027       -.48447E-06   -.40069E-04
   5  norm          .62830        2.0215       -.12410E-05   -.18646E-02
   6  Prefactor     3.5532        4.9875       -.31345E-06   -.69196E-04
   7  norm          .13956E-01    .94502        .73109E-06   -.13065E-03
   8  Prefactor     .10000E-03    27.596       -.62004E-06** at limit **
   9  Prefactor     5.5851        20.365       -.23282E-04   -.84182E-04
  10  norm          .10000E-03    1.6297        .70373E-07** at limit **
  11  norm          1.0060        .99349        .13732E-07    .20437E-03
  12  Prefactor     .10000E-03    1.0650        .32914E-07** at limit **
  13  Prefactor     3.8277        4.7453       -.34988E-05   -.13545E-04
  14  norm          .93929        .70267       -.27195E-06   -.58283E-03
  15  Prefactor     7.5170        6.0242        .11824E-06   -.27953E-03
  16  Prefactor     91.152        41.573        .85812E-05    .29871E-05
  17  Prefactor     .10000E-03    5.3756        .89506E-07** at limit **
  18  Prefactor     .10000E-03    2.1688        .30300E-07** at limit **
  19  norm          12.158        6.4992       -.18274E-05   -.13939E-03
  20  norm          .10000E-03    1.3577        .22565E-07** at limit **
  21  Prefactor     4.7861        8.0769       -.56389E-06   -.12600E-03
  22  Prefactor     .10000E-03    2.4064        .37902E-08** at limit **
  23  Prefactor     .10000E-03    1.3031        .13768E-06** at limit **
  24  Prefactor     .10000E-03    5.7141       -.44402E-06** at limit **
  25  Prefactor     .10000E-03    17.258        .22955E-06** at limit **
  26  norm          .48196        .54051       -.18020E-06   -.28171E-02
  27  norm          1.3717        .85217       -.12661E-06   -.58254E-03
  28  Prefactor     .36688        2.2907        .62042E-06   -.13359E-02
  29  Prefactor     3.0305        4.3455        .57177E-06   -.15060E-03
  30  Prefactor     .10000E-03    1.0461       -.76779E-08** at limit **
  31  Prefactor     10.711        12.449        .69006E-07   -.57120E-04
  32  Prefactor     .10000E-03    6.7177        .21371E-06** at limit **
  33  Prefactor     5.8264        9.7393        .22930E-05   -.15731E-03
  34  Prefactor     6.2028        5.1324        .12624E-06   -.15153E-03
  35  norm          .10000E-03    2.1539       -.12269E-07** at limit **
  36  Prefactor     .10000E-03    12.060       -.63256E-07** at limit **
  37  norm          1.8798        .57828        .18261E-08    .53405E-05
  38  Prefactor     .10000E-03    3.6404       -.25790E-08** at limit **
  39  Normalizat    .86392        .17862       -.22365E-05   -.21442E-03
  40  Prefactor     1.1709        .14564        .19941E-05   -.54151E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.5448
  norm       = 0.0001
  Prefactor  = 6.89898
  norm       = 0.628302
  Prefactor  = 3.55324
  norm       = 0.0139558
  Prefactor  = 0.0001
  Prefactor  = 5.58515
  norm       = 0.0001
  norm       = 1.00603
  Prefactor  = 0.0001
  Prefactor  = 3.82771
  norm       = 0.939285
  Prefactor  = 7.51705
  Prefactor  = 91.1517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.158
  norm       = 0.0001
  Prefactor  = 4.78608
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.481959
  norm       = 1.37175
  Prefactor  = 0.366881
  Prefactor  = 3.03052
  Prefactor  = 0.0001
  Prefactor  = 10.7112
  Prefactor  = 0.0001
  Prefactor  = 5.82636
  Prefactor  = 6.2028
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.87981
  Prefactor  = 0.0001
  Normalizat = 0.863922
  Prefactor  = 1.17086
 **********
 **   18 **HESSE 
 **********

 FCN=   7894.353     FROM HESSE     STATUS=OK          1009 CALLS     7537 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.545        25.829        .10884E-03   -1.4972    
   3  norm          .10000E-03    .21788        .79855E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.8990        10.887        .15274E-03   -1.5183    
   5  norm          .62830        2.0104        .21461E-03   -1.5549    
   6  Prefactor     3.5532        4.9785        .21442E-03   -1.5331    
   7  norm          .13956E-01    3.9315        .27330E-01   -1.5684    
   8  Prefactor     .10000E-03    27.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.5851        20.510        .16967E-03   -1.5235    
  10  norm          .10000E-03    2.8647        .21774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0060        1.0017        .84927E-04   -1.5507    
  12  Prefactor     .10000E-03    3.7026        .17173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.8277        4.7225        .20628E-03   -1.5317    
  14  norm          .93929        .71179        .61542E-04   -1.5514    
  15  Prefactor     7.5170        6.0121        .14627E-03   -1.5160    
  16  Prefactor     91.152        41.325        .42092E-04   -1.3796    
  17  Prefactor     .10000E-03    5.3855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.1780        .12778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          12.158        6.5146        .11491E-03   -1.5010    
  20  norm          .10000E-03    1.3596        .10110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.7861        8.0725        .18394E-03   -1.5270    
  22  Prefactor     .10000E-03    2.4123        .13458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.3874        .30967E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.7239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .48196        .59333        .53839E-03   -1.5569    
  27  norm          1.3717        .84421        .59690E-04   -1.5474    
  28  Prefactor     .36688        12.626        .19890E-02   -1.5587    
  29  Prefactor     3.0305        4.3310        .21520E-03   -1.5360    
  30  Prefactor     .10000E-03    1.0574        .88709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     10.711        12.443        .12243E-03   -1.5053    
  32  Prefactor     .10000E-03    6.7250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     5.8264        9.6964        .16649E-03   -1.5225    
  34  Prefactor     6.2028        5.1352        .16119E-03   -1.5210    
  35  norm          .10000E-03    2.1543        .12735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     .10000E-03    12.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  norm          1.8798        .58030        .36309E-04   -1.5434    
  38  Prefactor     .10000E-03    3.6926        .16545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  39  Normalizat    .86392        .21261        .29497E-03   -.97740    
  40  Prefactor     1.1709        .17169        .22520E-03   -.87233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.10651e-09
Minuit parameter uncertainties:
  1  6.11779e-06
  2  25.8505
  3  2.4086e-09
  4  10.8903
  5  2.01058
  6  4.97911
  7  0.466826
  8  1.19245e-05
  9  20.5361
  10  1.09231e-05
  11  1.00176
  12  1.32854e-05
  13  4.72296
  14  0.711801
  15  6.01258
  16  41.3378
  17  5.54768e-05
  18  1.58281e-06
  19  6.51496
  20  2.95308e-06
  21  8.07433
  22  6.43041e-07
  23  0.000150718
  24  5.29892e-06
  25  9.00295e-06
  26  0.593337
  27  0.844215
  28  4.305
  29  4.33141
  30  3.45733e-07
  31  12.4461
  32  3.3552e-05
  33  9.69898
  34  5.13561
  35  5.89937e-07
  36  9.21423e-06
  37  0.5803
  38  8.49826e-08
  39  0.212817
  40  0.171772
Done.

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

Extracting fit parameters...

4FGL J0844.2+5312
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.583e-06  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.171e+00  1.718e-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:  8.639e-01  2.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 131.051 53.214
Photon Flux Upper Limit: 3.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/639414/likelihoodResults_678412801_678672001_4FGL_J0844.2+5312_daily_bin1694.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) = 7894.35540235
delta logL = -0.00215807646782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7894.35324352
delta logL = 7.48167622078e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7894.353     FROM MIGRAD    STATUS=FAILED        91 CALLS      250 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10135E-03    21.847        .13192E-02** at limit **
   2  Index         1.9498        8.6192        .50000        .82932E-04
   3  Normalizat    .86392        .12934E-01    .29497E-03   -.35458E-05
   4  Prefactor     1.1709        .11380E-01    .22520E-03   -.26907E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7894.353     FROM SIMPLEX   STATUS=UNCHANGED    118 CALLS      368 TOTAL
                     EDM=   .72E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10135E-03    21.847        .20602E-03** at limit **
   2  Index         1.9498        8.6192        .17095E-02    .82932E-04
   3  Normalizat    .86392        .12934E-01    .15047E-04   -.35458E-05
   4  Prefactor     1.1709        .11380E-01    .11497E-04   -.26907E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7894.353     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      415 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.125        .26385E-02** at limit **
   2  Index         1.6136        8.1240        .50000        .40475E-06
   3  Normalizat    .86392        .11942E-01    .11799E-04    .27056E-03
   4  Prefactor     1.1709        .10508E-01    .90081E-05    .37306E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.61361
  Normalizat = 0.863921
  Prefactor  = 1.17086
 **********
 **   18 **HESSE 
 **********

 FCN=   7894.353     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      444 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    104.51        .52769E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6136        8.3701        .50000       -.74406    
   3  Normalizat    .86392        .26859E-01    .23598E-05   -.97740    
   4  Prefactor     1.1709        .23632E-01    .18016E-05   -.87233    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.47764e-11
Minuit parameter uncertainties:
  1  0.000262356
  2  341.262
  3  0.0268593
  4  0.0236318
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639414': 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) = 7894.35323898
delta logL = 5.28729924554e-06

Extracting fit parameters...

4FGL J0844.2+5312
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  2.624e-04  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  1.614e+00  3.413e+02  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.171e+00  2.363e-02  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:  8.639e-01  2.686e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 131.051 53.214

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/639414/cmap_HighResolution_678412801_678672001_4FGL_J0844.2+5312_daily_bin1694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.54e-03', job_status='DONE', photon_flux_upper_limit='3.38e-08', time_completed='2022-07-05 03:44:00.460395', job_id='639414', GAL2='1.17', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1657017840.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='5.29e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1694' AND source_name='4FGL J0844.2+5312' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul  5 03:44:00 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 639364: <4FGL_J0844.2+5312_daily_bin1694> in cluster <slac> Done

Job <4FGL_J0844.2+5312_daily_bin1694> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Jul  5 00:05:54 2022
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 03:11:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 03:11:18 2022
Terminated at Tue Jul  5 03:41:52 2022
Results reported at Tue Jul  5 03:41:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0844.2+5312_daily_bin1694 131.051 53.2141 678412801 678672001 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 :                                   1763.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             321.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1834 sec.
    Turnaround time :                            12958 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 639414: <4FGL_J0844.2+5312_daily_bin1694> in cluster <slac> Done

Job <4FGL_J0844.2+5312_daily_bin1694> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Jul  5 00:05:56 2022
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 03:13:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 03:13:17 2022
Terminated at Tue Jul  5 03:44:00 2022
Results reported at Tue Jul  5 03:44:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0844.2+5312_daily_bin1694 131.051 53.2141 678412801 678672001 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 :                                   1768.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             313.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1844 sec.
    Turnaround time :                            13084 sec.

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

