/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 19 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 = 7417
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0844.2+5312_daily_bin1332
RA = 131.051, Dec = 53.2141
tmin = 584582401, tmax = 584841601
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='705858', job_status='RUN', time_executed='2021-08-30 08:09:50.502720', time_epoch_executed='1630336190.5' WHERE source_name='4FGL J0844.2+5312' and cadence='daily' and bin_id='1332'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705858

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705858/ft1_4FGL_J0844.2+5312_daily_bin1332.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705858/ft2_4FGL_J0844.2+5312_daily_bin1332.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705858/ft1_4FGL_J0844.2+5312_daily_bin1332.fits outfile=/scratch/kocevski/705858/ft1_filteredMKT_4FGL_J0844.2+5312_daily_bin1332.fits ra=131.051 dec=53.2141 rad=12.0 tmin=584582401.0 tmax=584841601.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 9.31
user 2.65
sys 5.48

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/705858/ft2_4FGL_J0844.2+5312_daily_bin1332.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/705858/ft1_filteredMKT_4FGL_J0844.2+5312_daily_bin1332.fits evtable="EVENTS" outfile="/scratch/kocevski/705858/ft1_filtered_4FGL_J0844.2+5312_daily_bin1332.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.43
user 0.34
sys 5.45

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/705858/ft1_filtered_4FGL_J0844.2+5312_daily_bin1332.fits" evtable="EVENTS" scfile=/scratch/kocevski/705858/ft2_4FGL_J0844.2+5312_daily_bin1332.fits sctable="SC_DATA" outfile=/scratch/kocevski/705858/ltcube_584582401_584841601_4FGL_J0844.2+5312_daily_bin1332.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/705858/ft2_4FGL_J0844.2+5312_daily_bin1332.fits
.....................!
real 18.86
user 12.05
sys 6.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705858/ft1_filtered_4FGL_J0844.2+5312_daily_bin1332.fits evtable="EVENTS" scfile=/scratch/kocevski/705858/ft2_4FGL_J0844.2+5312_daily_bin1332.fits sctable="SC_DATA" expcube=/scratch/kocevski/705858/ltcube_584582401_584841601_4FGL_J0844.2+5312_daily_bin1332.fits outfile=/scratch/kocevski/705858/expmap_584582401_584841601_4FGL_J0844.2+5312_daily_bin1332.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/705858/ltcube_584582401_584841601_4FGL_J0844.2+5312_daily_bin1332.fits
.....................!
real 199.31
user 184.78
sys 12.19

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/705858/ft1_filtered_4FGL_J0844.2+5312_daily_bin1332.fits scfile=/scratch/kocevski/705858/ft2_4FGL_J0844.2+5312_daily_bin1332.fits outfile=/scratch/kocevski/705858/cmap_584582401_584841601_4FGL_J0844.2+5312_daily_bin1332.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 5.91
user 0.38
sys 5.30

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/705858/ft1_filtered_4FGL_J0844.2+5312_daily_bin1332.fits scfile=/scratch/kocevski/705858/ft2_4FGL_J0844.2+5312_daily_bin1332.fits outfile=/scratch/kocevski/705858/cmap_HighResolution_584582401_584841601_4FGL_J0844.2+5312_daily_bin1332.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 6.09
user 0.38
sys 5.32

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.3558       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.7148       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .71927E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6540       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10000.       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17411E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10991E-03   1.0000         .10000E-03   10000.    
    19 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    20 'norm      '    10000.       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .21175E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .65404E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    6.9696       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    34.350       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10646E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    35 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
    36 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    37 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    38 'Prefactor '    .61567       1.0000         .10000E-03   10000.    
    39 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    40 'Prefactor '    .72988       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=   832.7291     FROM MIGRAD    STATUS=CONVERGED   1192 CALLS     7590 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.672        .53883E-07** at limit **
   2  Prefactor     .10000E-03    23.119       -.58880E-07** at limit **
   3  norm          1.3570        1.4857       -.46583E-07   -.83911E-04
   4  Prefactor     .10000E-03    15.097       -.13773E-07** at limit **
   5  norm          .10000E-03    5.5071        .14485E-08** at limit **
   6  Prefactor     .10000E-03    434.38        .51545E-06** at limit **
   7  norm          7.7196        6.0357       -.92543E-07   -.49999E-04
   8  Prefactor     .10005E-03    9688.9       -.44170E-05** at limit **
   9  Prefactor     .10000E-03    38.390       -.22251E-07** at limit **
  10  norm          .10000E-03    5.0517        .81265E-08** at limit **
  11  norm          .10000E-03    4.1812        .81131E-08** at limit **
  12  Prefactor     4.6564        3.9371       -.39861E-07   -.25083E-04
  13  Prefactor     .10000E-03    21.511        .20911E-06** at limit **
  14  norm         10000.0        523.86       -.63284E-07** at limit **
  15  Prefactor     .10000E-03    5.5912        .56376E-08** at limit **
  16  Prefactor     .10001E-03    7223.1       -.18208E-05** at limit **
  17  Prefactor    10000.0        8755.1        .69202E-06** at limit **
  18  Prefactor     .10000E-03    195.59        .15949E-06** at limit **
  19  norm         10000.0        841.85        .39705E-06** at limit **
  20  norm         10000.0        488.16       -.25653E-06** at limit **
  21  Prefactor     .10000E-03    562.76       -.97958E-07** at limit **
  22  Prefactor     .10000E-03    9.2381        .18531E-06** at limit **
  23  Prefactor     .10000E-03    20.570        .30150E-07** at limit **
  24  Prefactor    10000.0        1040.6        .19245E-05** at limit **
  25  Prefactor     .10004E-03    9255.3       -.42955E-05** at limit **
  26  norm          .10000E-03    1.2873       -.90993E-07** at limit **
  27  norm          6.9704        3.3602       -.34649E-09   -.14074E-04
  28  Prefactor     .10000E-03    15.137       -.30608E-06** at limit **
  29  Prefactor     .10000E-03    38.650       -.38949E-07** at limit **
  30  Prefactor     .10000E-03    20.296        .65434E-07** at limit **
  31  Prefactor     .10000E-03    38.427       -.49466E-07** at limit **
  32  Prefactor     34.288        77.579       -.74205E-06   -.21969E-04
  33  Prefactor     .10000E-03    24.764       -.40439E-06** at limit **
  34  Prefactor     .10000E-03    27.390        .63748E-07** at limit **
  35  norm          .10000E-03    181.77       -.19062E-06** at limit **
  36  Prefactor     .10000E-03    589.83       -.30722E-06** at limit **
  37  norm          .10000E-03    .75577       -.33728E-08** at limit **
  38  Prefactor     .68849        47.961       -.12273E-04    .68646E-05
  39  Normalizat    .10000E-01    .60630E-01   -.46170E-06** at limit **
  40  Prefactor     .72958        .21610        .60810E-06   -.28154E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.35699
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 7.71963
  Prefactor  = 0.00010005
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.65635
  Prefactor  = 0.0001
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 10000
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.000100044
  norm       = 0.0001
  norm       = 6.97043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.2884
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.688493
  Normalizat = 0.01
  Prefactor  = 0.729581
 **********
 **   18 **HESSE 
 **********

 FCN=   832.7291     FROM HESSE     STATUS=OK           953 CALLS     8543 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.674        .10801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.122        .13560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3570        1.4782        .35351E-04   -1.5475    
   4  Prefactor     .10000E-03    15.098        .10956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.5074        .66158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    434.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.7196        6.0759        .54835E-04   -1.5152    
   8  Prefactor     .10005E-03    9690.3        .18656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    38.413        .17475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.0534        .63363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.1849        .57645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.6564        3.9485        .47552E-04   -1.5276    
  13  Prefactor     .10000E-03    21.631        .13075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm         10000.0        523.87        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.5915        .66662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    7224.0        .20349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        8755.2        .21424E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    195.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm         10000.0        842.05        .20093E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm         10000.0        488.24        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    562.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.3215        .85690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    20.571        .12790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor    10000.0        1043.1        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10004E-03    9257.3        .18808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.3469        .63939E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          6.9704        3.3673        .34870E-04   -1.5180    
  28  Prefactor     .10000E-03    15.617        .21931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    38.652        .17536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    20.306        .12704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    38.436        .17485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     34.288        77.773        .68374E-04   -1.4536    
  33  Prefactor     .10000E-03    24.794        .14041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10000E-03    27.490        .14760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  norm          .10000E-03    181.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     .10000E-03    589.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  norm          .10000E-03    .75579        .24507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Prefactor     .68849        48.056        .27277E-02   -1.5542    
  39  Normalizat    .10000E-01    .60690E-01    .21875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  40  Prefactor     .72958        .21896        .20137E-03   -1.0238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.34176e-11
Minuit parameter uncertainties:
  1  1.5034e-05
  2  2.99259e-05
  3  1.4782
  4  6.00818e-06
  5  1.75247e-07
  6  0.00108206
  7  6.07635
  8  0.0587322
  9  7.84155e-06
  10  8.77978e-07
  11  7.95392e-07
  12  3.94869
  13  3.91975e-05
  14  0.000155529
  15  5.96801e-07
  16  0.0132985
  17  0.00702087
  18  0.000221727
  19  0.00107328
  20  0.000569489
  21  0.000271097
  22  2.63552e-05
  23  1.51504e-05
  24  0.00630182
  25  0.049225
  26  4.82128e-06
  27  3.36739
  28  6.01057e-05
  29  8.3504e-06
  30  3.21517e-05
  31  9.88935e-06
  32  78.0039
  33  0.000112772
  34  7.65712e-05
  35  0.000225405
  36  0.000686562
  37  3.36536e-09
  38  11.5129
  39  2.54871e-08
  40  0.219219
Done.

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

Extracting fit parameters...

4FGL J0844.2+5312
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  2.217e-04  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:  7.296e-01  2.192e-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:  1.000e-02  2.549e-08  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.62e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.72e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/705858/likelihoodResults_584582401_584841601_4FGL_J0844.2+5312_daily_bin1332.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) = 832.729093945
delta logL = -2.4224686058e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 832.729093859
delta logL = -2.41389419671e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96053E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0348       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72959       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=   832.7291     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      201 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    211.01        .90742E-02** at limit **
   2  Index         2.0199        5.9847        .50000        .59655E-06
   3  Normalizat    .10000E-01    .59108E-01    .99476E-01** at limit **
   4  Prefactor     .72958        .18591        .42794E-01    .41562E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 2.0199
  Normalizat = 0.01
  Prefactor  = 0.729582
 **********
 **   18 **HESSE 
 **********

 FCN=   832.7291     FROM HESSE     STATUS=OK            29 CALLS      230 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    183.96        .18148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0199        6.0037        .50000       -.63854    
   3  Normalizat    .10000E-01    .59250E-01    .21875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .72958        .18508        .20137E-03   -1.0238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80669e-11
Minuit parameter uncertainties:
  1  0.00246242
  2  4.02649
  3  1.6472e-09
  4  0.185239
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705858': 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) = 832.729069718
delta logL = 2.22041762754e-09

Extracting fit parameters...

4FGL J0844.2+5312
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  2.462e-03  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  2.020e+00  4.026e+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:  7.296e-01  1.852e-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:  1.000e-02  1.647e-09  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/705858/cmap_HighResolution_584582401_584841601_4FGL_J0844.2+5312_daily_bin1332.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.72e-01', job_status='DONE', photon_flux_upper_limit='3.62e-06', time_completed='2021-08-30 08:20:03.986203', job_id='705858', GAL2='0.73', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630336803.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='2.22e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1332' AND source_name='4FGL J0844.2+5312' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 08:20:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 705858: <4FGL_J0844.2+5312_daily_bin1332> in cluster <slac> Done

Job <4FGL_J0844.2+5312_daily_bin1332> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Aug 30 08:06:32 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 08:06:33 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:06:33 2021
Terminated at Mon Aug 30 08:20:05 2021
Results reported at Mon Aug 30 08:20:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0844.2+5312_daily_bin1332 131.051 53.2141 584582401 584841601 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 :                                   669.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             282.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

