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


Performing analysis on: 4FGL_J0851.5+5528_daily_bin974
RA = 132.88, Dec = 55.4794
tmin = 491788801, tmax = 492048001
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='788064', job_status='RUN', time_executed='2021-08-30 12:48:11.926022', time_epoch_executed='1630352891.93' WHERE source_name='4FGL J0851.5+5528' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/788064

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/788064/ft1_4FGL_J0851.5+5528_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/788064/ft2_4FGL_J0851.5+5528_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/788064/ft1_4FGL_J0851.5+5528_daily_bin974.fits outfile=/scratch/kocevski/788064/ft1_filteredMKT_4FGL_J0851.5+5528_daily_bin974.fits ra=132.88 dec=55.4794 rad=12.0 tmin=491788801.0 tmax=492048001.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 12.76
user 4.00
sys 8.71

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/788064/ft2_4FGL_J0851.5+5528_daily_bin974.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/788064/ft2_4FGL_J0851.5+5528_daily_bin974.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/788064/ft1_filteredMKT_4FGL_J0851.5+5528_daily_bin974.fits evtable="EVENTS" outfile="/scratch/kocevski/788064/ft1_filtered_4FGL_J0851.5+5528_daily_bin974.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 9.28
user 0.34
sys 8.88

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/788064/ft1_filtered_4FGL_J0851.5+5528_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/788064/ft2_4FGL_J0851.5+5528_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/788064/ltcube_491788801_492048001_4FGL_J0851.5+5528_daily_bin974.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/788064/ft2_4FGL_J0851.5+5528_daily_bin974.fits
.....................!
real 21.28
user 11.35
sys 9.86

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/788064/ft1_filtered_4FGL_J0851.5+5528_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/788064/ft2_4FGL_J0851.5+5528_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/788064/ltcube_491788801_492048001_4FGL_J0851.5+5528_daily_bin974.fits outfile=/scratch/kocevski/788064/expmap_491788801_492048001_4FGL_J0851.5+5528_daily_bin974.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/788064/ltcube_491788801_492048001_4FGL_J0851.5+5528_daily_bin974.fits
.....................!
real 201.13
user 185.06
sys 15.63

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 233 point sources and 0 extended sources

Setting source of interest to:
4FGL J0851.5+5528 @ 132.88 55.4794

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/788064/ft1_filtered_4FGL_J0851.5+5528_daily_bin974.fits scfile=/scratch/kocevski/788064/ft2_4FGL_J0851.5+5528_daily_bin974.fits outfile=/scratch/kocevski/788064/cmap_491788801_492048001_4FGL_J0851.5+5528_daily_bin974.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=132.88 yref=55.4794 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 8.13
user 0.38
sys 7.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/788064/ft1_filtered_4FGL_J0851.5+5528_daily_bin974.fits scfile=/scratch/kocevski/788064/ft2_4FGL_J0851.5+5528_daily_bin974.fits outfile=/scratch/kocevski/788064/cmap_HighResolution_491788801_492048001_4FGL_J0851.5+5528_daily_bin974.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=132.88 yref=55.4794 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 9.03
user 0.39
sys 8.59

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/788064/ft1_filtered_4FGL_J0851.5+5528_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/788064/ft2_4FGL_J0851.5+5528_daily_bin974.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/788064/Model_4FGL_J0851.5+5528_daily_bin974.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/788064/ft1_filtered_4FGL_J0851.5+5528_daily_bin974.fits.......................!
real 34.11
user 20.29
sys 13.59

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/788064/ft1_filtered_4FGL_J0851.5+5528_daily_bin974.fits', '/scratch/kocevski/788064/ft2_4FGL_J0851.5+5528_daily_bin974.fits', expMap='/scratch/kocevski/788064/expmap_491788801_492048001_4FGL_J0851.5+5528_daily_bin974.fits', expCube='/scratch/kocevski/788064/ltcube_491788801_492048001_4FGL_J0851.5+5528_daily_bin974.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/788064/Model_4FGL_J0851.5+5528_daily_bin974.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0851.5+5528'

4FGL J0851.5+5528
   Spectrum: PowerLaw
354    Prefactor:  3.870e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
355        Index:  2.219e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
356        Scale:  1.239e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/788064/ft1_filtered_4FGL_J0851.5+5528_daily_bin974.fits
Spacecraft file(s): /scratch/kocevski/788064/ft2_4FGL_J0851.5+5528_daily_bin974.fits
Exposure map: /scratch/kocevski/788064/expmap_491788801_492048001_4FGL_J0851.5+5528_daily_bin974.fits
Exposure cube: /scratch/kocevski/788064/ltcube_491788801_492048001_4FGL_J0851.5+5528_daily_bin974.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/788064/Model_4FGL_J0851.5+5528_daily_bin974.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) = 976.125331649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8401       1.0000         .10000E-03   10000.    
     2 'norm      '    .27768       1.0000         .10000E-03   10000.    
     3 'Prefactor '    76.459       1.0000         .10000E-03   10000.    
     4 'norm      '    15.961       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    18.398       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.911       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1711       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.549       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    711.75       1.0000         .10000E-03   10000.    
    23 'norm      '    1.8270       1.0000         .10000E-03   10000.    
    24 'norm      '    3.7240       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10829E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    34.075       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .32906E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    34 'norm      '    1.6925       1.0000         .10000E-03   10000.    
    35 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    36 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    37 'Normalizat'    .46522       1.0000         .10000E-01   10.000    
    38 'Prefactor '    1.0138       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   976.0084     FROM MIGRAD    STATUS=CONVERGED    128 CALLS     4919 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8445        1.4800        .19104E-05   -.48744E-03
   2  norm          .27749        5.6622        .55971E-06    .71561E-04
   3  Prefactor     76.453        1.7400       -.81834E-06    .16649E-02
   4  norm          15.963        1.0060        .35921E-07   -.54445E-04
   5  Prefactor     .10034E-03    15.562        .11264E-04** at limit **
   6  norm          .10000E-03    5.6183       -.11413E-06** at limit **
   7  Prefactor     .10000E-03    19.155        .17956E-04** at limit **
   8  norm          18.399        1.0178        .23736E-06    .95153E-05
   9  norm          .10000E-03    3.1818       -.28793E-06** at limit **
  10  Prefactor     13.911        1.0080        .17938E-08   -.93973E-04
  11  Prefactor     .10033E-03    5.8515       -.64046E-05** at limit **
  12  Prefactor     5.1743        1.0176       -.74711E-08    .37125E-04
  13  Prefactor     .15049E-03    169.70       -.87978E-04** at limit **
  14  Prefactor     .10002E-03    11.171       -.81119E-05** at limit **
  15  Prefactor     .10027E-03    16.919        .16883E-04** at limit **
  16  norm          .10005E-03    8.7517       -.15451E-04** at limit **
  17  norm          .10000E-03    8.0487        .12357E-05** at limit **
  18  Prefactor     16.557        1.7076        .15579E-05   -.58731E-03
  19  Prefactor     .10071E-03    9.9360        .12099E-04** at limit **
  20  Prefactor     .10000E-03    4.5325       -.42618E-06** at limit **
  21  Prefactor     .10057E-03    17.259       -.78890E-05** at limit **
  22  Prefactor     711.74        1.1439       -.11511E-06    .23174E-02
  23  norm          1.8266        2.2228       -.93908E-07    .71279E-04
  24  norm          3.7241        3.2947        .15481E-06   -.31471E-03
  25  Prefactor     .10000E-03    6.0063       -.40904E-05** at limit **
  26  Prefactor     .10000E-03    20.893       -.37618E-04** at limit **
  27  Prefactor     34.081        1.0924       -.35347E-06    .92491E-04
  28  Prefactor     .17808E-03    2.3314       -.14289E-04** at limit **
  29  Prefactor     .10046E-03    5.9452       -.93554E-05** at limit **
  30  Prefactor     .10008E-03    8.9891        .18249E-04** at limit **
  31  Prefactor     .10001E-03    5.7599       -.66624E-05** at limit **
  32  norm          .10068E-03    11.943        .19951E-04** at limit **
  33  Prefactor     .10020E-03    15.653       -.21048E-04** at limit **
  34  norm          1.6925        1.7990        .59973E-07   -.14220E-03
  35  Prefactor     .10008E-03    21.053        .28388E-04** at limit **
  36  Prefactor     .12392E-03    75.003        .29392E-04** at limit **
  37  Normalizat    .46512        .53239       -.19735E-05   -.19430E-04
  38  Prefactor     1.0139        .45350       -.15110E-05   -.36718E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.84446
  norm       = 0.277494
  Prefactor  = 76.453
  norm       = 15.9627
  Prefactor  = 0.000100337
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 18.3989
  norm       = 0.0001
  Prefactor  = 13.9114
  Prefactor  = 0.000100326
  Prefactor  = 5.17432
  Prefactor  = 0.000150493
  Prefactor  = 0.000100024
  Prefactor  = 0.000100268
  norm       = 0.000100054
  norm       = 0.0001
  Prefactor  = 16.5565
  Prefactor  = 0.000100712
  Prefactor  = 0.0001
  Prefactor  = 0.000100574
  Prefactor  = 711.743
  norm       = 1.82655
  norm       = 3.72408
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 34.0805
  Prefactor  = 0.000178084
  Prefactor  = 0.000100458
  Prefactor  = 0.00010008
  Prefactor  = 0.000100013
  norm       = 0.000100681
  Prefactor  = 0.0001002
  norm       = 1.69248
  Prefactor  = 0.000100083
  Prefactor  = 0.000123916
  Normalizat = 0.465122
  Prefactor  = 1.01388
 **********
 **   18 **HESSE 
 **********

 FCN=   976.0084     FROM HESSE     STATUS=OK           966 CALLS     5885 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8445        386.57        .33703E-02   -1.5113    
   2  norm          .27749        4.2166        .30928E-01   -1.5603    
   3  Prefactor     76.453        69.584        .11481E-02   -1.3957    
   4  norm          15.963        13.489        .25063E-02   -1.4909    
   5  Prefactor     .10034E-03    68.907        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.6041        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    34.284        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          18.399        18.112        .23344E-02   -1.4850    
   9  norm          .10000E-03    3.1781        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.911        7.5686        .26848E-02   -1.4962    
  11  Prefactor     .10033E-03    17.008        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.1743        18.143        .44196E-02   -1.5253    
  13  Prefactor     .15049E-03    263.48        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    11.270        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10027E-03    70.617        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10005E-03    8.9288        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.0493        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.557        50.753        .24614E-02   -1.4894    
  19  Prefactor     .10071E-03    21.241        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.5275        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10057E-03    37.051        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     711.74        401.60        .38893E-03   -1.0307    
  23  norm          1.8266        2.2669        .77206E-02   -1.5438    
  24  norm          3.7241        3.3235        .52313E-02   -1.5322    
  25  Prefactor     .10000E-03    19.962        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    55.256        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     34.081        21.069        .17162E-02   -1.4540    
  28  Prefactor     .17808E-03    186.61        .12893       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10046E-03    17.294        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10008E-03    9.2569        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10001E-03    19.793        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10068E-03    15.313        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10020E-03    60.046        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  norm          1.6925        1.8238        .80880E-02   -1.5448    
  35  Prefactor     .10008E-03    73.545        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     .12392E-03    136.28        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Normalizat    .46512        .58996        .90707E-01   -1.1406    
  38  Prefactor     1.0139        .43946        .42821E-01   -.92268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.22715e-07
Minuit parameter uncertainties:
  1  117.764
  2  2.16319
  3  69.658
  4  13.4913
  5  0.00964678
  6  2.36437e-05
  7  0.000328803
  8  18.1177
  9  3.15743e-05
  10  7.56911
  11  0.00471047
  12  18.1625
  13  0.23171
  14  0.00104629
  15  0.0087153
  16  0.00138991
  17  9.2053e-05
  18  50.8855
  19  0.00778286
  20  2.2745e-05
  21  0.00923104
  22  403.253
  23  2.26699
  24  3.32367
  25  0.000298699
  26  0.000692227
  27  21.0734
  28  0.242181
  29  0.00563139
  30  0.00172093
  31  0.00101938
  32  0.00646169
  33  0.00694194
  34  1.82384
  35  0.00494526
  36  0.11444
  37  0.598141
  38  0.441024
Done.

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

Extracting fit parameters...

4FGL J0851.5+5528
   Spectrum: PowerLaw
354    Prefactor:  1.656e+01  5.089e+01  1.000e-04  1.000e+04 ( 1.000e-13)
355        Index:  2.219e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
356        Scale:  1.239e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
741    Prefactor:  1.014e+00  4.410e-01  0.000e+00  1.000e+01 ( 1.000e+00)
742        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
743        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
740   Normalization:  4.651e-01  5.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.15
Ra Dec: 132.880 55.479
Photon Flux Upper Limit: 3.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.70e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/788064/likelihoodResults_491788801_492048001_4FGL_J0851.5+5528_daily_bin974.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) = 974.941424259
delta logL = 1.06696394581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 974.882525585
delta logL = 1.12586262058

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62529       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6785       1.0000          .0000       10.000    
     3 'Normalizat'    .25327       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1170       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   974.8825     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      236 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62402        17.998        .47373E-02    .79430E-05
   2  Index         4.6795        3.9700        .52974E-01    .25815E-04
   3  Normalizat    .25306        .20784        .12141        .19440E-05
   4  Prefactor     1.1172        .17666        .36974E-01   -.20265E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.624018
  Index      = 4.67949
  Normalizat = 0.253061
  Prefactor  = 1.11715
 **********
 **   18 **HESSE 
 **********

 FCN=   974.8825     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      267 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62402        24.846        .21026E-04   -1.5550    
   2  Index         4.6795        7.1529        .22759E-02   -.64145E-01
   3  Normalizat    .25306        .51877        .53646E-03   -1.2576    
   4  Prefactor     1.1172        .44262        .22701E-03   -.88920    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.70691e-08
Minuit parameter uncertainties:
  1  7.87797
  2  5.57665
  3  0.529126
  4  0.444085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/788064': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 974.882525386
delta logL = 1.12586281887

Extracting fit parameters...

4FGL J0851.5+5528
   Spectrum: PowerLaw
354    Prefactor:  6.240e-01  7.878e+00  1.000e-04  1.000e+04 ( 1.000e-13)
355        Index:  4.679e+00  5.577e+00  0.000e+00  1.000e+01 (-1.000e+00)
356        Scale:  1.239e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
741    Prefactor:  1.117e+00  4.441e-01  0.000e+00  1.000e+01 ( 1.000e+00)
742        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
743        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
740   Normalization:  2.531e-01  5.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.65
Ra Dec: 132.880 55.479
Photon Index (Free Index): 4.68 +/- 5.58
Photon Flux (Free Index): 2.22e-07 +/- 2.02e-07
Energy Flux (Free Index): 3.04e-05 +/- 3.38e-05

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/788064/cmap_HighResolution_491788801_492048001_4FGL_J0851.5+5528_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-02', comment='SUCCESS', energy_flux2='3.04e-05', dlogl='1.13e+00', photon_flux2='2.22e-07', job_status='DONE', time_completed='2021-08-30 12:58:31.880602', photon_index_error2='5.58', photon_index2='4.68', ts='0.15', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='3.53e-07', energy_flux_error2='3.38e-05', EG='0.47', time_epoch_completed='1630353511.88', return_code='0', job_id='788064', GAL2='1.12', EG2='0.25', return_code2='102', photon_flux_error2='2.02e-07', ts2='2.65', photon_index='2.22' WHERE bin_id='974' AND source_name='4FGL J0851.5+5528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 12:58:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 788064: <4FGL_J0851.5+5528_daily_bin974> in cluster <slac> Done

Job <4FGL_J0851.5+5528_daily_bin974> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 30 12:45:43 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 12:45:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 12:45:44 2021
Terminated at Mon Aug 30 12:58:33 2021
Results reported at Mon Aug 30 12:58:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0851.5+5528_daily_bin974 132.88 55.4794 491788801 492048001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0851.5+5528 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   752.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             241.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            770 sec.

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

