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


Performing analysis on: 4FGL_J0844.2+5312_daily_bin1405
RA = 131.051, Dec = 53.2141
tmin = 603504001, tmax = 603763201
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='705968', job_status='RUN', time_executed='2021-08-30 08:11:23.488891', time_epoch_executed='1630336283.49' WHERE source_name='4FGL J0844.2+5312' and cadence='daily' and bin_id='1405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705968

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705968/ft1_4FGL_J0844.2+5312_daily_bin1405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705968/ft2_4FGL_J0844.2+5312_daily_bin1405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705968/ft1_4FGL_J0844.2+5312_daily_bin1405.fits outfile=/scratch/kocevski/705968/ft1_filteredMKT_4FGL_J0844.2+5312_daily_bin1405.fits ra=131.051 dec=53.2141 rad=12.0 tmin=603504001.0 tmax=603763201.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.67
user 2.53
sys 0.84

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/705968/ft1_filtered_4FGL_J0844.2+5312_daily_bin1405.fits" evtable="EVENTS" scfile=/scratch/kocevski/705968/ft2_4FGL_J0844.2+5312_daily_bin1405.fits sctable="SC_DATA" outfile=/scratch/kocevski/705968/ltcube_603504001_603763201_4FGL_J0844.2+5312_daily_bin1405.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/705968/ft2_4FGL_J0844.2+5312_daily_bin1405.fits
.....................!
real 16.41
user 11.66
sys 1.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705968/ft1_filtered_4FGL_J0844.2+5312_daily_bin1405.fits evtable="EVENTS" scfile=/scratch/kocevski/705968/ft2_4FGL_J0844.2+5312_daily_bin1405.fits sctable="SC_DATA" expcube=/scratch/kocevski/705968/ltcube_603504001_603763201_4FGL_J0844.2+5312_daily_bin1405.fits outfile=/scratch/kocevski/705968/expmap_603504001_603763201_4FGL_J0844.2+5312_daily_bin1405.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/705968/ltcube_603504001_603763201_4FGL_J0844.2+5312_daily_bin1405.fits
.....................!
real 201.96
user 185.73
sys 5.08

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/705968/ft1_filtered_4FGL_J0844.2+5312_daily_bin1405.fits scfile=/scratch/kocevski/705968/ft2_4FGL_J0844.2+5312_daily_bin1405.fits outfile=/scratch/kocevski/705968/cmap_603504001_603763201_4FGL_J0844.2+5312_daily_bin1405.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 3.40
user 0.38
sys 0.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/705968/ft1_filtered_4FGL_J0844.2+5312_daily_bin1405.fits scfile=/scratch/kocevski/705968/ft2_4FGL_J0844.2+5312_daily_bin1405.fits outfile=/scratch/kocevski/705968/cmap_HighResolution_603504001_603763201_4FGL_J0844.2+5312_daily_bin1405.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 3.46
user 0.39
sys 0.79

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .47460E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38888E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20103E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1489.9       1.0000         .10000E-03   10000.    
    14 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .33005E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4507.3       1.0000         .10000E-03   10000.    
    18 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    19 'norm      '    9999.9       1.0000         .10000E-03   10000.    
    20 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    21 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.662       1.0000         .10000E-03   10000.    
    23 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    24 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    25 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    26 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    27 'norm      '    1.6263       1.0000         .10000E-03   10000.    
    28 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.1452       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .11956E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    15.039       1.0000         .10000E-03   10000.    
    35 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    36 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    37 'norm      '    3.1597       1.0000         .10000E-03   10000.    
    38 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    39 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    40 'Prefactor '    .14674E-08   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=   243.1339     FROM MIGRAD    STATUS=CONVERGED    242 CALLS     7603 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    24.844       -.94099E-06** at limit **
   2  Prefactor     .10000E-03    27.856        .16225E-06** at limit **
   3  norm          .10000E-03    1.2624        .25415E-08** at limit **
   4  Prefactor     .10000E-03    23.341        .36395E-06** at limit **
   5  norm          .10000E-03    6.7608       -.50540E-08** at limit **
   6  Prefactor     .10124E-03    137.21        .56067E-05** at limit **
   7  norm          .10001E-03    58.183        .43398E-06** at limit **
   8  Prefactor     .11130E-03    7.9137       -.11198E-05** at limit **
   9  Prefactor     .40883E-02    464.87       -.16957E-04   -.17684E-02
  10  norm          .10000E-03    52.979        .54343E-07** at limit **
  11  norm          .10000E-03    25.642        .47498E-06** at limit **
  12  Prefactor     .10000E-03    .75595        .30845E-08** at limit **
  13  Prefactor     1489.9        1.4670        .98167E-08   -.57215E-03
  14  norm          .10000E-03    14.172        .23976E-08** at limit **
  15  Prefactor    10000.0        294.93        .11252E-04** at limit **
  16  Prefactor     .10312E-03    94.342       -.65503E-05** at limit **
  17  Prefactor     4507.3        1.2595       -.50284E-08    .55480E-03
  18  Prefactor    10000.0        357.09        .13050E-04** at limit **
  19  norm         10000.0        778.02        .18726E-04   -.42889E-03
  20  norm         10000.0        172.64        .88852E-05** at limit **
  21  Prefactor    10000.0        157.84        .93733E-05** at limit **
  22  Prefactor     17.662        1.0064        .38660E-08    .12183E-04
  23  Prefactor    10000.0        194.32        .92714E-05** at limit **
  24  Prefactor    10000.0        123.03        .73750E-05** at limit **
  25  Prefactor    10000.0        16.237        .26214E-05   -.12560E-03
  26  norm         10000.0        213.82        .10465E-04** at limit **
  27  norm          1.6269        1.7985       -.15896E-07   -.23403E-03
  28  Prefactor    10000.0        85.222        .61346E-05** at limit **
  29  Prefactor     .52947E-03    280.44       -.90357E-05** at limit **
  30  Prefactor     .29668        7166.1       -.59156E-04    .11641E-04
  31  Prefactor     .15554E-03    473.07       -.12976E-05** at limit **
  32  Prefactor     .10000E-03    12.394       -.90030E-08** at limit **
  33  Prefactor     .10000E-03    5.4444       -.66614E-08** at limit **
  34  Prefactor     15.432        157.91        .58193E-05   -.39746E-02
  35  norm          .10000E-03    15.054       -.12378E-07** at limit **
  36  Prefactor     .10000E-03    36.113       -.10233E-06** at limit **
  37  norm          3.1602        2.0941       -.15796E-06   -.30294E-02
  38  Prefactor     .10004E-03    85.100       -.12653E-05** at limit **
  39  Normalizat    .10000E-01    .57696E-01   -.32407E-08** at limit **
  40  Prefactor     .22204E-14    .67144E-01   -.11335E-07** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000101242
  norm       = 0.000100008
  Prefactor  = 0.000111296
  Prefactor  = 0.00408831
  norm       = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 1489.91
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.000103119
  Prefactor  = 4507.3
  Prefactor  = 10000
  norm       = 9999.99
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 17.6616
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 9999.97
  norm       = 10000
  norm       = 1.62688
  Prefactor  = 10000
  Prefactor  = 0.000529465
  Prefactor  = 0.296683
  Prefactor  = 0.000155541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.4321
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.16018
  Prefactor  = 0.000100043
  Normalizat = 0.01
  Prefactor  = 2.22045e-15
 **********
 **   18 **HESSE 
 **********

 FCN=   243.1339     FROM HESSE     STATUS=OK          1033 CALLS     8636 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    25.065        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.929        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.2619        .77508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.456        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.7609        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10124E-03    143.97        .10592E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    58.538        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .11130E-03    786.60        .10638E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .40883E-02    1681.7        .90712E-02   -1.5721    
  10  norm          .10000E-03    53.249        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    25.866        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .75604        .59981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1489.9        5606.9        .28084E-03   -.77823    
  14  norm          .10000E-03    14.182        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        789.50        .90712E-02    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10312E-03    7670.9        .98613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4507.3        6470.8        .20098E-03   -.98701E-01
  18  Prefactor    10000.0        6811.2        .91656E-02    1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm         10000.0        8862.5        .93603E-02    1.5688    
  20  norm         10000.0        7477.6        .94901E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor    10000.0        6188.7        .99104E-02    1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.662        17.084        .23825E-02   -1.4867    
  23  Prefactor    10000.0        8580.8        .90986E-02    1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor    10000.0        8455.1        .91746E-02    1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor    10000.0        6214.3        .92126E-02    1.5673    
  26  norm         10000.0        6439.7        .97279E-02    1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.6269        1.8323        .48652E-02   -1.5453    
  28  Prefactor    10000.0        8564.4        .94966E-02    1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .52947E-03    664.59        .90712E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .29668        762.43        .10838       -1.5599    
  31  Prefactor     .15554E-03    492.72        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    12.393        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    5.4452        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     15.432        439.92        .25820E-02   -1.4922    
  35  norm          .10000E-03    15.067        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     .10000E-03    36.177        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  norm          3.1602        2.1238        .40130E-02   -1.5352    
  38  Prefactor     .10004E-03    85.500        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  39  Normalizat    .10000E-01    .57673E-01    .52455E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  40  Prefactor     .22204E-14    .66243E-01    .56391E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04773e-05
Minuit parameter uncertainties:
  1  0.00121674
  2  0.000192085
  3  7.1603e-07
  4  0.000445488
  5  3.28567e-06
  6  0.0268059
  7  0.00135206
  8  0.191087
  9  5.33707
  10  0.000219838
  11  0.000656669
  12  6.72073e-07
  13  4011.15
  14  2.34158e-06
  15  0.315705
  16  0.289495
  17  11373
  18  3.29842
  19  21.17
  20  0.537255
  21  3.48463
  22  17.089
  23  8.44862
  24  5.4524
  25  90.8279
  26  3.80993
  27  1.83237
  28  4.38022
  29  1.0807
  30  30.4712
  31  0.333635
  32  7.91101e-06
  33  3.88658e-06
  34  166.154
  35  1.20677e-05
  36  0.00013451
  37  2.12386
  38  0.00384135
  39  6.14919e-09
  40  2.31072e-08
Done.

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

Extracting fit parameters...

4FGL J0844.2+5312
   Spectrum: PowerLaw
340    Prefactor:  1.000e+04  3.298e+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

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  2.220e-15  2.311e-08  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  6.149e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.48
Ra Dec: 131.051 53.214
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 3.22e-05 +/- 1.06e-08
Energy Flux (Fixed Index): 2.05e-02 +/- 6.75e-06
calc_int error: parameter max 10000.0 is not large enough
delta logLike = 0.0

TS (Fixed Index): 2.48
Ra Dec: 131.051 53.214
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.52e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/705968/likelihoodResults_603504001_603763201_4FGL_J0844.2+5312_daily_bin1405.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) = 17.0627857473
delta logL = 226.07112262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17.0607740479
delta logL = 226.073134319

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    10.000       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=   17.06077     FROM MIGRAD    STATUS=CONVERGED     11 CALLS       49 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index      10.0000        .14560E-01    .70688E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Index      = 10
 **********
 **   18 **HESSE 
 **********

 FCN=   17.06077     FROM HESSE     STATUS=OK             5 CALLS       54 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index      10.0000        .14560E-01    .70688E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09962e-12
Minuit parameter uncertainties:
  1  5.89914e-08
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705968': 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) = 17.0607740479
delta logL = 226.073134319

Extracting fit parameters...

4FGL J0844.2+5312
   Spectrum: PowerLaw
340    Prefactor:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
341        Index:  1.000e+01  5.899e-08  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:  4.703e-11  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 454.63
Ra Dec: 131.051 53.214
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 2.87e+04 +/- 4.50e-03
Energy Flux (Free Index): 3.21e+06 +/- 5.04e-01

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/705968/cmap_HighResolution_603504001_603763201_4FGL_J0844.2+5312_daily_bin1405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.52e+04', comment='SUCCESS', photon_flux='3.22e-05', energy_flux2='3.21e+06', photon_flux_error='1.06e-08', dlogl='2.26e+02', energy_flux='2.05e-02', photon_flux2='2.87e+04', job_status='DONE', time_completed='2021-08-30 08:19:25.326988', photon_index_error2='0.00', photon_index2='10.00', ts='2.48', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='5.04e-01', EG='0.01', time_epoch_completed='1630336765.33', return_code='0', job_id='705968', GAL2='0.00', EG2='0.01', return_code2='0', energy_flux_error='6.75e-06', photon_flux_error2='4.50e-03', ts2='454.63', photon_index='2.03' WHERE bin_id='1405' AND source_name='4FGL J0844.2+5312' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 08:19:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 705968: <4FGL_J0844.2+5312_daily_bin1405> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0844.2+5312_daily_bin1405 131.051 53.2141 603504001 603763201 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 :                                   412.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             221.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            767 sec.

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

