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


Performing analysis on: 4FGL_J0844.2+5312_daily_bin1580
RA = 131.051, Dec = 53.2141
tmin = 648864001, tmax = 649123201
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='707513', job_status='RUN', time_executed='2021-08-30 08:16:04.843288', time_epoch_executed='1630336564.84' WHERE source_name='4FGL J0844.2+5312' and cadence='daily' and bin_id='1580'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/707513

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/707513/ft1_4FGL_J0844.2+5312_daily_bin1580.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/707513/ft2_4FGL_J0844.2+5312_daily_bin1580.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/707513/ft1_4FGL_J0844.2+5312_daily_bin1580.fits outfile=/scratch/kocevski/707513/ft1_filteredMKT_4FGL_J0844.2+5312_daily_bin1580.fits ra=131.051 dec=53.2141 rad=12.0 tmin=648864001.0 tmax=649123201.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 4.84
user 2.80
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/707513/ft1_filtered_4FGL_J0844.2+5312_daily_bin1580.fits evtable="EVENTS" scfile=/scratch/kocevski/707513/ft2_4FGL_J0844.2+5312_daily_bin1580.fits sctable="SC_DATA" expcube=/scratch/kocevski/707513/ltcube_648864001_649123201_4FGL_J0844.2+5312_daily_bin1580.fits outfile=/scratch/kocevski/707513/expmap_648864001_649123201_4FGL_J0844.2+5312_daily_bin1580.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/707513/ltcube_648864001_649123201_4FGL_J0844.2+5312_daily_bin1580.fits
.....................!
real 202.12
user 185.36
sys 5.59

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/707513/ft1_filtered_4FGL_J0844.2+5312_daily_bin1580.fits scfile=/scratch/kocevski/707513/ft2_4FGL_J0844.2+5312_daily_bin1580.fits outfile=/scratch/kocevski/707513/cmap_648864001_649123201_4FGL_J0844.2+5312_daily_bin1580.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.96
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/707513/ft1_filtered_4FGL_J0844.2+5312_daily_bin1580.fits scfile=/scratch/kocevski/707513/ft2_4FGL_J0844.2+5312_daily_bin1580.fits outfile=/scratch/kocevski/707513/cmap_HighResolution_648864001_649123201_4FGL_J0844.2+5312_daily_bin1580.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.72
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/707513/ft1_filtered_4FGL_J0844.2+5312_daily_bin1580.fits', '/scratch/kocevski/707513/ft2_4FGL_J0844.2+5312_daily_bin1580.fits', expMap='/scratch/kocevski/707513/expmap_648864001_649123201_4FGL_J0844.2+5312_daily_bin1580.fits', expCube='/scratch/kocevski/707513/ltcube_648864001_649123201_4FGL_J0844.2+5312_daily_bin1580.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/707513/Model_4FGL_J0844.2+5312_daily_bin1580.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/707513/ft1_filtered_4FGL_J0844.2+5312_daily_bin1580.fits
Spacecraft file(s): /scratch/kocevski/707513/ft2_4FGL_J0844.2+5312_daily_bin1580.fits
Exposure map: /scratch/kocevski/707513/expmap_648864001_649123201_4FGL_J0844.2+5312_daily_bin1580.fits
Exposure cube: /scratch/kocevski/707513/ltcube_648864001_649123201_4FGL_J0844.2+5312_daily_bin1580.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/707513/Model_4FGL_J0844.2+5312_daily_bin1580.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2124.01980577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.029       1.0000         .10000E-03   10000.    
     2 'Prefactor '    76.552       1.0000         .10000E-03   10000.    
     3 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9503       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.8721       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .81716E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11179E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10217E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.691       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4689       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.995       1.0000         .10000E-03   10000.    
    14 'norm      '    .21155E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .92594E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9997.0       1.0000         .10000E-03   10000.    
    17 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    18 'Prefactor '    356.77       1.0000         .10000E-03   10000.    
    19 'norm      '    .35235E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .23855E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1121.7       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.2245       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .16069E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .14101E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .51540E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.2420       1.0000         .10000E-03   10000.    
    27 'norm      '    3.3715       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10744E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.1522       1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.8099       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .63625E-01   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .60259E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    3.0368       1.0000         .10000E-03   10000.    
    34 'Prefactor '    6.8160       1.0000         .10000E-03   10000.    
    35 'norm      '    .46415E-03   1.0000         .10000E-03   10000.    
    36 'Prefactor '    .60366E-01   1.0000         .10000E-03   10000.    
    37 'norm      '    2.0558       1.0000         .10000E-03   10000.    
    38 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    39 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    40 'Prefactor '    1.1044       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=   2123.800     FROM MIGRAD    STATUS=CONVERGED    374 CALLS     4798 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.231        38.509       -.14926E-05    .14786E-05
   2  Prefactor     82.391        71.002        .37156E-05   -.65579E-03
   3  norm          .10000E-03    1.2023        .40992E-07** at limit **
   4  Prefactor     1.3411        117.59        .63211E-05    .98061E-04
   5  norm          .10000E-03    2.3086        .33273E-07** at limit **
   6  Prefactor     .10000E-03    19.068       -.13766E-06** at limit **
   7  norm          4.8349        3.4591        .38696E-06   -.11126E-04
   8  Prefactor     .10001E-03    131.42       -.11625E-04** at limit **
   9  Prefactor     .10000E-03    14.649       -.11710E-06** at limit **
  10  norm          .10000E-03    3.3918        .26789E-07** at limit **
  11  norm          11.518        7.2697        .79388E-07   -.10978E-05
  12  Prefactor     1.4678        1.4833        .68714E-07   -.94939E-05
  13  Prefactor     12.523        25.360       -.37401E-05   -.14225E-02
  14  norm          .10000E-03    69.076        .76565E-06** at limit **
  15  Prefactor     .10000E-03    22.762       -.20488E-05** at limit **
  16  Prefactor    10000.0        1129.6       -.12132E-04** at limit **
  17  Prefactor    10000.0        404.04        .28333E-04** at limit **
  18  Prefactor     415.71        297.28       -.10532E-05    .21102E-01
  19  norm          .10001E-03    230.95       -.17883E-04** at limit **
  20  norm          .10007E-03    154.07        .19804E-04** at limit **
  21  Prefactor     1195.9        367.05       -.63884E-06   -.28098E-01
  22  Prefactor     8.1057        13.536        .98794E-06   -.48227E-04
  23  Prefactor     .10000E-03    5.2233        .45405E-07** at limit **
  24  Prefactor     .10000E-03    34.294       -.60028E-06** at limit **
  25  Prefactor     .10000E-03    100.33        .19738E-05** at limit **
  26  norm          1.2442        1.1359        .20323E-07    .14773E-06
  27  norm          3.3532        1.6635       -.29285E-08   -.21246E-04
  28  Prefactor     .10000E-03    3.9062       -.21927E-07** at limit **
  29  Prefactor     8.1945        16.334       -.78387E-05    .19753E-04
  30  Prefactor     5.6005        6.4375       -.11787E-06    .63974E-05
  31  Prefactor     .11522E-03    934.97       -.33011E-04** at limit **
  32  Prefactor     .10000E-03    8.9727       -.18477E-07** at limit **
  33  Prefactor     2.9523        10.951        .24494E-05   -.27527E-04
  34  Prefactor     6.7840        8.9280       -.81868E-06    .29921E-05
  35  norm          .10000E-03    6.4390       -.37102E-07** at limit **
  36  Prefactor     .24818E-03    149.66        .80670E-05** at limit **
  37  norm          2.0526        .76077        .22341E-08    .19193E-04
  38  Prefactor     .10000E-03    2.3154        .21990E-07** at limit **
  39  Normalizat    .10000E-01    .53517        .19548E-04** at limit **
  40  Prefactor     1.0954        .18228       -.14679E-05    .38204E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.2314
  Prefactor  = 82.3907
  norm       = 0.0001
  Prefactor  = 1.34113
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.83486
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.5184
  Prefactor  = 1.46779
  Prefactor  = 12.5227
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 415.706
  norm       = 0.000100005
  norm       = 0.000100068
  Prefactor  = 1195.91
  Prefactor  = 8.10574
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.24423
  norm       = 3.35318
  Prefactor  = 0.0001
  Prefactor  = 8.19446
  Prefactor  = 5.6005
  Prefactor  = 0.000115223
  Prefactor  = 0.0001
  Prefactor  = 2.95233
  Prefactor  = 6.78396
  norm       = 0.0001
  Prefactor  = 0.000248183
  norm       = 2.05255
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.09539
 **********
 **   18 **HESSE 
 **********

 FCN=   2123.800     FROM HESSE     STATUS=OK          1069 CALLS     5867 TOTAL
                     EDM=   .55E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.231        38.663        .16248E-02   -1.4471    
   2  Prefactor     82.391        73.651        .11474E-02   -1.3890    
   3  norm          .10000E-03    .90234        .21387E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3411        127.71        .74290E-02   -1.5476    
   5  norm          .10000E-03    2.3152        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.031        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.8349        3.4935        .45559E-02   -1.5268    
   8  Prefactor     .10001E-03    130.57        .92202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.565        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.3751        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.518        7.3611        .29290E-02   -1.5029    
  12  Prefactor     1.4678        1.4885        .88661E-02   -1.5466    
  13  Prefactor     12.523        25.586        .26767E-02   -1.5000    
  14  norm          .10000E-03    68.281        .91283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.632        .10406E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        1130.1        .58635E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        404.81        .92056E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     415.71        1249.6        .53913E-03   -1.1601    
  19  norm          .10001E-03    227.70        .98236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10007E-03    153.46        .10032E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1195.9        1136.9        .31688E-03   -.86457    
  22  Prefactor     8.1057        13.543        .34949E-02   -1.5138    
  23  Prefactor     .10000E-03    5.2105        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    33.734        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    99.798        .10571E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.2442        1.1376        .10055E-02   -1.5485    
  27  norm          3.3532        1.6747        .55095E-02   -1.5342    
  28  Prefactor     .10000E-03    3.8865        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     8.1945        16.960        .35104E-02   -1.5135    
  30  Prefactor     5.6005        6.4834        .41655E-02   -1.5235    
  31  Prefactor     .11522E-03    32.856        .93364E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    9.0263        .10531E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     2.9523        11.595        .58211E-02   -1.5364    
  34  Prefactor     6.7840        8.9473        .38421E-02   -1.5187    
  35  norm          .10000E-03    6.4337        .10597E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     .24818E-03    60.799        .11037       -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  norm          2.0526        .76598        .53477E-02   -1.5421    
  38  Prefactor     .10000E-03    2.3096        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  39  Normalizat    .10000E-01    .36003        .20566       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  40  Prefactor     1.0954        .20840        .37422E-01   -.89614    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000551072
Minuit parameter uncertainties:
  1  38.6879
  2  73.7332
  3  5.80699e-08
  4  26.2313
  5  1.45835e-07
  6  6.58454e-06
  7  3.49369
  8  0.00280239
  9  1.10709e-07
  10  8.02164e-08
  11  7.36173
  12  1.48852
  13  25.608
  14  0.000504793
  15  1.34985e-05
  16  0.0242468
  17  0.00309474
  18  1350.24
  19  0.00220979
  20  0.0064611
  21  1161.59
  22  13.5483
  23  1.65329e-07
  24  9.70064e-06
  25  0.000153406
  26  1.13763
  27  1.6747
  28  4.13919e-08
  29  16.9701
  30  6.48419
  31  0.0447536
  32  3.40442e-07
  33  11.6034
  34  8.94909
  35  8.21889e-08
  36  0.190028
  37  0.765987
  38  3.74124e-08
  39  2.01992e-07
  40  0.208555
Done.

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

Extracting fit parameters...

4FGL J0844.2+5312
   Spectrum: PowerLaw
340    Prefactor:  4.157e+02  1.350e+03  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.095e+00  2.086e-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.020e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.49
Ra Dec: 131.051 53.214
Photon Flux Upper Limit: 5.60e-06 ph cm-2 s-1
Energy Flux Upper Limit: 4.21e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/707513/likelihoodResults_648864001_649123201_4FGL_J0844.2+5312_daily_bin1580.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) = 2101.58137557
delta logL = 22.2188258905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2101.50489169
delta logL = 22.2953097724

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7641       1.0000         .10000E-03   10000.    
     2 'Index     '    5.4452       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89848       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=   2101.505     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      322 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7638        5.3308        .28317E-02   -.99401E-04
   2  Index         5.4453        1.1338        .20221E-01    .35687E-04
   3  Normalizat    .10000E-01    .36966E-01    .14801    ** at limit **
   4  Prefactor     .89845        .11649        .44986E-01   -.43032E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.76382
  Index      = 5.4453
  Normalizat = 0.01
  Prefactor  = 0.898454
 **********
 **   18 **HESSE 
 **********

 FCN=   2101.505     FROM HESSE     STATUS=OK            31 CALLS      353 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7638        4.0811        .12524E-04   -1.5442    
   2  Index         5.4453        .87466        .71678E-04    .89178E-01
   3  Normalizat    .10000E-01    .53427E-01    .62906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .89845        .13679        .20876E-03   -.96195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48271e-12
Minuit parameter uncertainties:
  1  4.08175
  2  0.879221
  3  2.19593e-08
  4  0.13684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/707513': 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) = 2101.50489151
delta logL = 22.2953099562

Extracting fit parameters...

4FGL J0844.2+5312
   Spectrum: PowerLaw
340    Prefactor:  1.764e+00  4.082e+00  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  5.445e+00  8.792e-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:  8.985e-01  1.368e-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.196e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 46.97
Ra Dec: 131.051 53.214
Photon Index (Free Index): 5.45 +/- 0.88
Photon Flux (Free Index): 2.26e-05 +/- 4.79e-06
Energy Flux (Free Index): 2.90e-03 +/- 6.34e-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/707513/cmap_HighResolution_648864001_649123201_4FGL_J0844.2+5312_daily_bin1580.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.21e-01', comment='SUCCESS', energy_flux2='2.90e-03', dlogl='2.23e+01', photon_flux2='2.26e-05', job_status='DONE', time_completed='2021-08-30 08:27:56.072548', photon_index_error2='0.88', photon_index2='5.45', ts='0.49', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='5.60e-06', energy_flux_error2='6.34e-04', EG='0.01', time_epoch_completed='1630337276.07', return_code='0', job_id='707513', GAL2='0.90', EG2='0.01', return_code2='0', photon_flux_error2='4.79e-06', ts2='46.97', photon_index='2.03' WHERE bin_id='1580' AND source_name='4FGL J0844.2+5312' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 08:27:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 707513: <4FGL_J0844.2+5312_daily_bin1580> in cluster <slac> Done

Job <4FGL_J0844.2+5312_daily_bin1580> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Aug 30 08:12:03 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 08:12:04 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:12:04 2021
Terminated at Mon Aug 30 08:27:56 2021
Results reported at Mon Aug 30 08:27:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0844.2+5312_daily_bin1580 131.051 53.2141 648864001 649123201 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 :                                   667.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             250.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            953 sec.

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

