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


Performing analysis on: 4FGL_J0844.2+5312_daily_bin1514
RA = 131.051, Dec = 53.2141
tmin = 631756801, tmax = 632016001
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='707436', job_status='RUN', time_executed='2021-08-30 08:17:37.673972', time_epoch_executed='1630336657.67' WHERE source_name='4FGL J0844.2+5312' and cadence='daily' and bin_id='1514'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/707436

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/707436/ft1_4FGL_J0844.2+5312_daily_bin1514.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/707436/ft2_4FGL_J0844.2+5312_daily_bin1514.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/707436/ft1_4FGL_J0844.2+5312_daily_bin1514.fits outfile=/scratch/kocevski/707436/ft1_filteredMKT_4FGL_J0844.2+5312_daily_bin1514.fits ra=131.051 dec=53.2141 rad=12.0 tmin=631756801.0 tmax=632016001.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 10.15
user 2.19
sys 7.90

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/707436/ft2_4FGL_J0844.2+5312_daily_bin1514.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/707436/ft1_filteredMKT_4FGL_J0844.2+5312_daily_bin1514.fits evtable="EVENTS" outfile="/scratch/kocevski/707436/ft1_filtered_4FGL_J0844.2+5312_daily_bin1514.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 8.33
user 0.33
sys 7.90

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/707436/ft1_filtered_4FGL_J0844.2+5312_daily_bin1514.fits" evtable="EVENTS" scfile=/scratch/kocevski/707436/ft2_4FGL_J0844.2+5312_daily_bin1514.fits sctable="SC_DATA" outfile=/scratch/kocevski/707436/ltcube_631756801_632016001_4FGL_J0844.2+5312_daily_bin1514.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/707436/ft2_4FGL_J0844.2+5312_daily_bin1514.fits
.....................!
real 20.84
user 11.80
sys 8.97

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/707436/ft1_filtered_4FGL_J0844.2+5312_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/707436/ft2_4FGL_J0844.2+5312_daily_bin1514.fits sctable="SC_DATA" expcube=/scratch/kocevski/707436/ltcube_631756801_632016001_4FGL_J0844.2+5312_daily_bin1514.fits outfile=/scratch/kocevski/707436/expmap_631756801_632016001_4FGL_J0844.2+5312_daily_bin1514.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/707436/ltcube_631756801_632016001_4FGL_J0844.2+5312_daily_bin1514.fits
.....................!
real 200.67
user 185.31
sys 14.71

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/707436/ft1_filtered_4FGL_J0844.2+5312_daily_bin1514.fits scfile=/scratch/kocevski/707436/ft2_4FGL_J0844.2+5312_daily_bin1514.fits outfile=/scratch/kocevski/707436/cmap_631756801_632016001_4FGL_J0844.2+5312_daily_bin1514.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 8.14
user 0.38
sys 7.70

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/707436/ft1_filtered_4FGL_J0844.2+5312_daily_bin1514.fits scfile=/scratch/kocevski/707436/ft2_4FGL_J0844.2+5312_daily_bin1514.fits outfile=/scratch/kocevski/707436/cmap_HighResolution_631756801_632016001_4FGL_J0844.2+5312_daily_bin1514.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 8.20
user 0.39
sys 7.72

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27861E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12925E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22054E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    12.530       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8548       1.0000         .10000E-03   10000.    
     7 'norm      '    8.3262       1.0000         .10000E-03   10000.    
     8 'Prefactor '    439.55       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19165E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .10758E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1025       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.8535       1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.592       1.0000         .10000E-03   10000.    
    14 'norm      '    .19117E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.3253       1.0000         .10000E-03   10000.    
    16 'Prefactor '    373.24       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19572E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    46.802       1.0000         .10000E-03   10000.    
    19 'norm      '    13.046       1.0000         .10000E-03   10000.    
    20 'norm      '    .11304E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    55.672       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.155       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11835E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .19884E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    220.97       1.0000         .10000E-03   10000.    
    26 'norm      '    3.6293       1.0000         .10000E-03   10000.    
    27 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .59122E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10615E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    14.585       1.0000         .10000E-03   10000.    
    31 'Prefactor '    61.403       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .27754E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .16706E-02   1.0000         .10000E-03   10000.    
    35 'norm      '    .18333E-03   1.0000         .10000E-03   10000.    
    36 'Prefactor '    87.863       1.0000         .10000E-03   10000.    
    37 'norm      '    2.1297       1.0000         .10000E-03   10000.    
    38 'Prefactor '    .52308E-03   1.0000         .10000E-03   10000.    
    39 'Normalizat'    .33332       1.0000         .10000E-01   10.000    
    40 'Prefactor '    .96435       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1818.320     FROM MIGRAD    STATUS=CONVERGED    372 CALLS     4653 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    90.380        .59938E-05** at limit **
   2  Prefactor     .10000E-03    210.70        .92115E-05** at limit **
   3  norm          .10000E-03    4.6354        .98272E-06** at limit **
   4  Prefactor     .10000E-03    47.533        .16228E-06** at limit **
   5  norm          12.023        17.277       -.13105E-06   -.15702E-05
   6  Prefactor     .10000E-03    175.92        .33946E-05** at limit **
   7  norm          8.4400        9.0814        .30866E-07    .14869E-05
   8  Prefactor     526.63        531.82        .31260E-05    .32622E-03
   9  Prefactor     .10000E-03    50.667        .51131E-06** at limit **
  10  norm          .10000E-03    32.505        .79896E-06** at limit **
  11  norm          1.0822        6.6767        .68256E-06   -.54465E-05
  12  Prefactor     7.9116        5.8065       -.38881E-07    .90658E-06
  13  Prefactor     26.008        43.670        .25063E-05   -.85601E-05
  14  norm          .10000E-03    7.7238        .15519E-05** at limit **
  15  Prefactor     8.9185        28.999       -.10064E-04    .42925E-04
  16  Prefactor     388.23        266.65        .10030E-05    .17808E-02
  17  Prefactor     .10000E-03    47.227        .87663E-06** at limit **
  18  Prefactor     47.782        28.729        .89130E-06    .11504E-04
  19  norm          13.358        22.254        .14821E-05    .31195E-04
  20  norm          .10000E-03    9.4233       -.56615E-06** at limit **
  21  Prefactor     57.334        40.908       -.12707E-05    .56758E-05
  22  Prefactor     9.9001        15.818       -.33238E-06   -.56486E-05
  23  Prefactor     .10000E-03    13.096        .17933E-05** at limit **
  24  Prefactor     .10000E-03    75.244       -.12967E-05** at limit **
  25  Prefactor     226.90        53.647        .45325E-06   -.67893E-02
  26  norm          3.6294        1.6575        .30374E-07   -.30815E-04
  27  norm          .10000E-03    2.5045        .16522E-05** at limit **
  28  Prefactor     .10000E-03    8.0673       -.12711E-06** at limit **
  29  Prefactor     .10000E-03    11.003        .91075E-07** at limit **
  30  Prefactor     14.718        11.608        .41731E-06   -.81158E-05
  31  Prefactor     62.036        51.682       -.25069E-05   -.62157E-04
  32  Prefactor     .10000E-03    10.742       -.12063E-06** at limit **
  33  Prefactor     .10000E-03    8.9204       -.25143E-06** at limit **
  34  Prefactor     .10000E-03    16.309        .37214E-06** at limit **
  35  norm          .10000E-03    8.2216        .99565E-07** at limit **
  36  Prefactor     88.866        79.615        .34451E-06   -.16844E-03
  37  norm          2.1361        1.0509       -.22752E-07   -.20139E-04
  38  Prefactor     .10000E-03    29.207       -.23779E-05** at limit **
  39  Normalizat    .31608        .51561       -.30193E-05    .14102E-05
  40  Prefactor     .96936        .37876        .28862E-05   -.32896E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.0233
  Prefactor  = 0.0001
  norm       = 8.44002
  Prefactor  = 526.628
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.08224
  Prefactor  = 7.91163
  Prefactor  = 26.0082
  norm       = 0.0001
  Prefactor  = 8.91847
  Prefactor  = 388.226
  Prefactor  = 0.0001
  Prefactor  = 47.7816
  norm       = 13.358
  norm       = 0.0001
  Prefactor  = 57.3341
  Prefactor  = 9.90008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 226.904
  norm       = 3.62938
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.7181
  Prefactor  = 62.0359
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 88.8662
  norm       = 2.1361
  Prefactor  = 0.0001
  Normalizat = 0.316078
  Prefactor  = 0.969359
 **********
 **   18 **HESSE 
 **********

 FCN=   1818.320     FROM HESSE     STATUS=OK          1069 CALLS     5722 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    339.46        .99536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    284.61        .90875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.4851        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    47.018        .10070E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          12.023        17.222        .28290E-02   -1.5014    
   6  Prefactor     .10000E-03    175.63        .76515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.4400        9.3940        .34733E-02   -1.5127    
   8  Prefactor     526.63        532.09        .48781E-03   -1.1077    
   9  Prefactor     .10000E-03    50.453        .10133E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    32.441        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0822        6.8726        .11300E-01   -1.5500    
  12  Prefactor     7.9116        5.8663        .35771E-02   -1.5145    
  13  Prefactor     26.008        43.762        .18731E-02   -1.4688    
  14  norm          .10000E-03    7.5336        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.9185        30.539        .34735E-02   -1.5111    
  16  Prefactor     388.23        272.97        .52756E-03   -1.1741    
  17  Prefactor     .10000E-03    47.548        .10124E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     47.782        28.753        .14652E-02   -1.4324    
  19  norm          13.358        23.545        .27725E-02   -1.4977    
  20  norm          .10000E-03    9.3654        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     57.334        41.218        .13440E-02   -1.4192    
  22  Prefactor     9.9001        16.029        .31434E-02   -1.5079    
  23  Prefactor     .10000E-03    12.665        .10324E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    75.656        .91220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     226.90        256.98        .68028E-03   -1.2684    
  26  norm          3.6294        1.6986        .53017E-02   -1.5327    
  27  norm          .10000E-03    1.1700        .16106E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8.0206        .10536E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    10.985        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     14.718        12.394        .26219E-02   -1.4940    
  31  Prefactor     62.036        53.838        .12801E-02   -1.4131    
  32  Prefactor     .10000E-03    10.758        .10711E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    8.8962        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10000E-03    16.318        .10192E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  norm          .10000E-03    8.2230        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     88.866        90.316        .10716E-02   -1.3820    
  37  norm          2.1361        1.0611        .64579E-02   -1.5416    
  38  Prefactor     .10000E-03    14.668        .49850E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  39  Normalizat    .31608        .73088        .11613       -1.2189    
  40  Prefactor     .96936        .44766        .45820E-01   -.93758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42679e-06
Minuit parameter uncertainties:
  1  0.0040722
  2  0.00158896
  3  7.91841e-06
  4  9.69677e-07
  5  17.2292
  6  0.000389926
  7  9.39566
  8  537.256
  9  8.81973e-06
  10  1.66551e-05
  11  5.45513
  12  5.86674
  13  43.8164
  14  1.44321e-05
  15  30.5927
  16  273.885
  17  2.06328e-05
  18  28.7613
  19  23.5608
  20  4.61842e-06
  21  41.2389
  22  16.0355
  23  2.16584e-05
  24  5.50349e-05
  25  258.27
  26  1.69859
  27  6.86718e-06
  28  1.34806e-06
  29  3.85818e-07
  30  12.3965
  31  53.8806
  32  2.0775e-06
  33  2.16256e-06
  34  5.31657e-06
  35  6.87082e-07
  36  90.4558
  37  1.06114
  38  3.88605e-05
  39  0.754837
  40  0.449381
Done.

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

Extracting fit parameters...

4FGL J0844.2+5312
   Spectrum: PowerLaw
340    Prefactor:  4.778e+01  2.876e+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:  9.694e-01  4.494e-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:  3.161e-01  7.548e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.18
Ra Dec: 131.051 53.214
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.54e-07 +/- 9.26e-08
Energy Flux (Fixed Index): 9.78e-05 +/- 5.89e-05

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) = 1817.68784935
delta logL = 0.631877973072

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1817.63132787
delta logL = 0.688399459198

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.111       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5554       1.0000          .0000       10.000    
     3 'Normalizat'    .35048       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96239       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=   1817.631     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.154        36.869        .72118E-05   -.39545E-04
   2  Index         1.5564        .39623        .44146E-04   -.35570E-04
   3  Normalizat    .34963        .41376       -.74929E-05   -.20154E-03
   4  Prefactor     .96306        .35957       -.16816E-05   -.21359E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.1538
  Index      = 1.55642
  Normalizat = 0.349631
  Prefactor  = 0.963064
 **********
 **   18 **HESSE 
 **********

 FCN=   1817.631     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.154        36.810        .26091E-03   -1.4168    
   2  Index         1.5564        .39560        .43330E-02   -.75972    
   3  Normalizat    .34963        .40177        .49021E-03   -1.1999    
   4  Prefactor     .96306        .34928        .25886E-03   -.93971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.33791e-10
Minuit parameter uncertainties:
  1  36.8238
  2  0.39639
  3  0.405142
  4  0.350097
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/707436': 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) = 1817.63132203
delta logL = 0.68840530078

Extracting fit parameters...

4FGL J0844.2+5312
   Spectrum: PowerLaw
340    Prefactor:  5.915e+01  3.682e+01  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  1.556e+00  3.964e-01  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:  9.631e-01  3.501e-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:  3.496e-01  4.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.43
Ra Dec: 131.051 53.214
Photon Index (Free Index): 1.56 +/- 0.40
Photon Flux (Free Index): 8.85e-08 +/- 7.29e-08
Energy Flux (Free Index): 2.32e-04 +/- 2.31e-04

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/707436/cmap_HighResolution_631756801_632016001_4FGL_J0844.2+5312_daily_bin1514.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.54e-07', energy_flux2='2.32e-04', photon_flux_error='9.26e-08', dlogl='6.88e-01', energy_flux='9.78e-05', photon_flux2='8.85e-08', job_status='DONE', time_completed='2021-08-30 08:28:15.977980', photon_index_error2='0.40', photon_index2='1.56', ts='14.18', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='2.31e-04', EG='0.32', time_epoch_completed='1630337295.98', return_code='0', job_id='707436', GAL2='0.96', EG2='0.35', return_code2='0', energy_flux_error='5.89e-05', photon_flux_error2='7.29e-08', ts2='15.43', photon_index='2.03' WHERE bin_id='1514' AND source_name='4FGL J0844.2+5312' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 08:28:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0134>
Subject: Job 707436: <4FGL_J0844.2+5312_daily_bin1514> in cluster <slac> Done

Job <4FGL_J0844.2+5312_daily_bin1514> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Aug 30 08:11:56 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 08:11:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 08:11:58 2021
Terminated at Mon Aug 30 08:28:19 2021
Results reported at Mon Aug 30 08:28:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0844.2+5312_daily_bin1514 131.051 53.2141 631756801 632016001 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 :                                   753.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             236.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            983 sec.

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

