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


Performing analysis on: 4FGL_J0824.7+5552_daily_bin1333
RA = 126.198, Dec = 55.8816
tmin = 584841601, tmax = 585100801
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='450836', job_status='RUN', time_executed='2021-08-29 19:12:52.554581', time_epoch_executed='1630289572.55' WHERE source_name='4FGL J0824.7+5552' and cadence='daily' and bin_id='1333'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/450836

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/450836/ft1_4FGL_J0824.7+5552_daily_bin1333.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/450836/ft2_4FGL_J0824.7+5552_daily_bin1333.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/450836/ft1_4FGL_J0824.7+5552_daily_bin1333.fits outfile=/scratch/kocevski/450836/ft1_filteredMKT_4FGL_J0824.7+5552_daily_bin1333.fits ra=126.198 dec=55.8816 rad=12.0 tmin=584841601.0 tmax=585100801.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 3.53
user 2.74
sys 0.62

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/450836/ft2_4FGL_J0824.7+5552_daily_bin1333.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/450836/ft2_4FGL_J0824.7+5552_daily_bin1333.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/450836/ft1_filteredMKT_4FGL_J0824.7+5552_daily_bin1333.fits evtable="EVENTS" outfile="/scratch/kocevski/450836/ft1_filtered_4FGL_J0824.7+5552_daily_bin1333.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 1.29
user 0.31
sys 0.59

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/450836/ft1_filtered_4FGL_J0824.7+5552_daily_bin1333.fits" evtable="EVENTS" scfile=/scratch/kocevski/450836/ft2_4FGL_J0824.7+5552_daily_bin1333.fits sctable="SC_DATA" outfile=/scratch/kocevski/450836/ltcube_584841601_585100801_4FGL_J0824.7+5552_daily_bin1333.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/450836/ft2_4FGL_J0824.7+5552_daily_bin1333.fits
.....................!
real 13.38
user 12.08
sys 0.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/450836/ft1_filtered_4FGL_J0824.7+5552_daily_bin1333.fits evtable="EVENTS" scfile=/scratch/kocevski/450836/ft2_4FGL_J0824.7+5552_daily_bin1333.fits sctable="SC_DATA" expcube=/scratch/kocevski/450836/ltcube_584841601_585100801_4FGL_J0824.7+5552_daily_bin1333.fits outfile=/scratch/kocevski/450836/expmap_584841601_585100801_4FGL_J0824.7+5552_daily_bin1333.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/450836/ltcube_584841601_585100801_4FGL_J0824.7+5552_daily_bin1333.fits
.....................!
real 192.35
user 186.29
sys 5.21

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

Setting source of interest to:
4FGL J0824.7+5552 @ 126.198 55.8816

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/450836/ft1_filtered_4FGL_J0824.7+5552_daily_bin1333.fits scfile=/scratch/kocevski/450836/ft2_4FGL_J0824.7+5552_daily_bin1333.fits outfile=/scratch/kocevski/450836/cmap_584841601_585100801_4FGL_J0824.7+5552_daily_bin1333.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=126.198 yref=55.8816 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 1.44
user 0.37
sys 0.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/450836/ft1_filtered_4FGL_J0824.7+5552_daily_bin1333.fits scfile=/scratch/kocevski/450836/ft2_4FGL_J0824.7+5552_daily_bin1333.fits outfile=/scratch/kocevski/450836/cmap_HighResolution_584841601_585100801_4FGL_J0824.7+5552_daily_bin1333.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=126.198 yref=55.8816 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 1.37
user 0.40
sys 0.55

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/450836/ft1_filtered_4FGL_J0824.7+5552_daily_bin1333.fits evtable="EVENTS" scfile=/scratch/kocevski/450836/ft2_4FGL_J0824.7+5552_daily_bin1333.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/450836/Model_4FGL_J0824.7+5552_daily_bin1333.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/450836/ft1_filtered_4FGL_J0824.7+5552_daily_bin1333.fits.....................!
real 36.35
user 32.06
sys 1.72

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/450836/ft1_filtered_4FGL_J0824.7+5552_daily_bin1333.fits', '/scratch/kocevski/450836/ft2_4FGL_J0824.7+5552_daily_bin1333.fits', expMap='/scratch/kocevski/450836/expmap_584841601_585100801_4FGL_J0824.7+5552_daily_bin1333.fits', expCube='/scratch/kocevski/450836/ltcube_584841601_585100801_4FGL_J0824.7+5552_daily_bin1333.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/450836/Model_4FGL_J0824.7+5552_daily_bin1333.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0824.7+5552'

4FGL J0824.7+5552
   Spectrum: PowerLaw
324    Prefactor:  3.167e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.612e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  5.953e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/450836/ft1_filtered_4FGL_J0824.7+5552_daily_bin1333.fits
Spacecraft file(s): /scratch/kocevski/450836/ft2_4FGL_J0824.7+5552_daily_bin1333.fits
Exposure map: /scratch/kocevski/450836/expmap_584841601_585100801_4FGL_J0824.7+5552_daily_bin1333.fits
Exposure cube: /scratch/kocevski/450836/ltcube_584841601_585100801_4FGL_J0824.7+5552_daily_bin1333.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/450836/Model_4FGL_J0824.7+5552_daily_bin1333.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) = 1971.30971399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3883       1.0000         .10000E-03   10000.    
     2 'Prefactor '    94.586       1.0000         .10000E-03   10000.    
     3 'Prefactor '    46.646       1.0000         .10000E-03   10000.    
     4 'Prefactor '    132.44       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    56.742       1.0000         .10000E-03   10000.    
     7 'norm      '    .10785       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    81.582       1.0000         .10000E-03   10000.    
    11 'norm      '    .12823E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10806E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .13871E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    203.90       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    55.502       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    284.80       1.0000         .10000E-03   10000.    
    25 'Prefactor '    26.253       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    139.97       1.0000         .10000E-03   10000.    
    29 'norm      '    5.7889       1.0000         .10000E-03   10000.    
    30 'Prefactor '    10.632       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    34 'norm      '    9.4302       1.0000         .10000E-03   10000.    
    35 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    36 'Normalizat'    .27117       1.0000         .10000E-01   10.000    
    37 'Prefactor '    .81099       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1971.282     FROM MIGRAD    STATUS=CONVERGED   1066 CALLS     6655 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3888        21.224        .31361E-06   -.63361E-05
   2  Prefactor     94.601        65.629        .12372E-05   -.20410E-05
   3  Prefactor     46.661        46.042        .12389E-05   -.72088E-05
   4  Prefactor     132.43        83.262        .13041E-05   -.79964E-04
   5  Prefactor     .10000E-03    28.879        .21549E-06** at limit **
   6  Prefactor     56.645        197.57        .99934E-05   -.25615E-04
   7  norm          .11314        1.9072        .36153E-06   -.55189E-03
   8  Prefactor     .10000E-03    34.462       -.50459E-07** at limit **
   9  norm          .10000E-03    12.209        .83828E-08** at limit **
  10  Prefactor     81.618        44.791        .93470E-06   -.21040E-03
  11  norm          .10071E-03    3.1601        .79888E-06** at limit **
  12  Prefactor    10000.0        937.02        .54261E-05** at limit **
  13  Prefactor     .10000E-03    22.893       -.23857E-06** at limit **
  14  norm          .10000E-03    226.95       -.10998E-05** at limit **
  15  norm          .10000E-03    295.57       -.46965E-06** at limit **
  16  Prefactor     .10000E-03    1.2219        .58101E-06** at limit **
  17  Prefactor     .10000E-03    41.121       -.99703E-06** at limit **
  18  Prefactor     203.87        134.03        .64038E-05   -.37209E-03
  19  Prefactor     .10000E-03    67.968        .49189E-07** at limit **
  20  Prefactor     .10000E-03    113.52       -.44105E-06** at limit **
  21  Prefactor     55.518        53.096        .24991E-05   -.28312E-05
  22  norm          .10000E-03    18.776        .56519E-07** at limit **
  23  norm          .10000E-03    19.750        .95364E-07** at limit **
  24  Prefactor     284.76        317.17        .11747E-05   -.22523E-04
  25  Prefactor     26.288        50.893        .18928E-05   -.25613E-04
  26  Prefactor     .10000E-03    3.3193        .13624E-06** at limit **
  27  Prefactor     .10000E-03    20.261        .37537E-07** at limit **
  28  Prefactor     140.03        174.81        .25254E-05    .20047E-04
  29  norm          5.7891        3.0848        .27514E-06    .76847E-04
  30  Prefactor     10.642        22.786        .25013E-05    .11044E-04
  31  Prefactor     .10000E-03    4.0635        .25154E-06** at limit **
  32  Prefactor     .10000E-03    6.1398        .25783E-07** at limit **
  33  Prefactor     .10000E-03    4.8845        .94706E-07** at limit **
  34  norm          9.4323        12.875        .12504E-05   -.20285E-03
  35  Prefactor     .10000E-03    33.822       -.84067E-07** at limit **
  36  Normalizat    .27101        .41924       -.31117E-04   -.23688E-03
  37  Prefactor     .81102        .27166        .84893E-05   -.36401E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.38882
  Prefactor  = 94.6011
  Prefactor  = 46.6609
  Prefactor  = 132.426
  Prefactor  = 0.0001
  Prefactor  = 56.6451
  norm       = 0.113137
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 81.6184
  norm       = 0.000100711
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 0.000100004
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 203.874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.518
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 284.76
  Prefactor  = 26.2875
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 140.029
  norm       = 5.78906
  Prefactor  = 10.6415
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.43227
  Prefactor  = 0.0001
  Normalizat = 0.271007
  Prefactor  = 0.811018
 **********
 **   18 **HESSE 
 **********

 FCN=   1971.282     FROM HESSE     STATUS=OK           843 CALLS     7498 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3888        21.208        .17312E-03   -1.5244    
   2  Prefactor     94.601        65.648        .20663E-03   -1.3760    
   3  Prefactor     46.661        45.983        .58708E-04   -1.4341    
   4  Prefactor     132.43        82.946        .34991E-04   -1.3401    
   5  Prefactor     .10000E-03    28.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     56.645        198.10        .26627E-03   -1.4201    
   7  norm          .11314        7.1400        .11059E-02   -1.5641    
   8  Prefactor     .10000E-03    34.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    12.209        .15155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     81.618        43.414        .44468E-04   -1.3899    
  11  norm          .10071E-03    47.703        .14039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        934.29        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    234.64        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    300.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.5547        .92184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    41.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     203.87        131.05        .14151E-03   -1.2842    
  19  Prefactor     .10000E-03    67.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    113.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     55.518        53.039        .53843E-04   -1.4216    
  22  norm          .10000E-03    18.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    19.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     284.76        316.43        .12024E-03   -1.2317    
  25  Prefactor     26.288        51.033        .78184E-04   -1.4682    
  26  Prefactor     .10000E-03    3.3238        .78993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    20.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     140.03        174.84        .17025E-03   -1.3336    
  29  norm          5.7891        3.0919        .50003E-04   -1.5227    
  30  Prefactor     10.642        22.762        .12287E-03   -1.5055    
  31  Prefactor     .10000E-03    4.1203        .87368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    6.1406        .10746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    4.8924        .95829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  norm          9.4323        12.848        .65251E-03   -1.5094    
  35  Prefactor     .10000E-03    33.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Normalizat    .27101        .42029        .47048E-03   -1.2461    
  37  Prefactor     .81102        .27600        .20840E-03   -.99323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63706e-08
Minuit parameter uncertainties:
  1  21.2377
  2  65.6985
  3  46.0182
  4  83.0188
  5  7.35831e-05
  6  200.473
  7  1.79699
  8  5.7279e-05
  9  3.58221e-06
  10  43.4312
  11  0.0116588
  12  0.0169469
  13  3.65932e-05
  14  0.00194435
  15  0.00186198
  16  2.99852e-05
  17  1.54911e-05
  18  131.241
  19  3.32007e-05
  20  0.000420944
  21  53.0838
  22  3.47285e-05
  23  1.30509e-05
  24  318.372
  25  51.1183
  26  1.21634e-05
  27  1.5061e-06
  28  175.494
  29  3.092
  30  22.7806
  31  1.19382e-05
  32  1.28863e-06
  33  4.45324e-06
  34  12.8515
  35  2.95196e-05
  36  0.425325
  37  0.276469
Done.

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

Extracting fit parameters...

4FGL J0824.7+5552
   Spectrum: PowerLaw
324    Prefactor:  2.039e+02  1.312e+02  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.612e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  5.953e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
716    Prefactor:  8.110e-01  2.765e-01  0.000e+00  1.000e+01 ( 1.000e+00)
717        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
718        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
715   Normalization:  2.710e-01  4.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.51
Ra Dec: 126.198 55.882
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.34e-06 +/- 8.59e-07
Energy Flux (Fixed Index): 3.47e-04 +/- 2.23e-04

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) = 1968.79432366
delta logL = 2.48727050537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1968.78270278
delta logL = 2.49889138122

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1968.783     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      324 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.904        68.207        .56785E-04   -.15640E-02
   2  Index         4.3109        .94850        .22380E-03   -.83967E-03
   3  Normalizat    .10000E-01    1.7820        .13324E-01** at limit **
   4  Prefactor     .93538        .13708        .19416E-03    .46882E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.9042
  Index      = 4.31093
  Normalizat = 0.01
  Prefactor  = 0.935379
 **********
 **   18 **HESSE 
 **********

 FCN=   1968.783     FROM HESSE     STATUS=OK            23 CALLS      347 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.904        66.531        .11357E-04   -1.4294    
   2  Index         4.3109        .92532        .89520E-05   -.13825    
   3  Normalizat    .10000E-01    1.7912        .53297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .93538        .13580        .38833E-04   -.94916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16568e-09
Minuit parameter uncertainties:
  1  66.6304
  2  0.930794
  3  4.43299e-05
  4  0.135845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/450836': 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) = 1968.78269945
delta logL = 2.49889471674

Extracting fit parameters...

4FGL J0824.7+5552
   Spectrum: PowerLaw
324    Prefactor:  4.990e+01  6.663e+01  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  4.311e+00  9.308e-01  0.000e+00  1.000e+01 (-1.000e+00)
326        Scale:  5.953e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
716    Prefactor:  9.354e-01  1.358e-01  0.000e+00  1.000e+01 ( 1.000e+00)
717        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
718        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
715   Normalization:  1.000e-02  4.433e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.09
Ra Dec: 126.198 55.882
Photon Index (Free Index): 4.31 +/- 0.93
Photon Flux (Free Index): 3.31e-06 +/- 1.31e-06
Energy Flux (Free Index): 4.73e-04 +/- 1.82e-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/450836/cmap_HighResolution_584841601_585100801_4FGL_J0824.7+5552_daily_bin1333.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.34e-06', energy_flux2='4.73e-04', photon_flux_error='8.59e-07', dlogl='2.50e+00', energy_flux='3.47e-04', photon_flux2='3.31e-06', job_status='DONE', time_completed='2021-08-29 19:24:09.814278', photon_index_error2='0.93', photon_index2='4.31', ts='4.51', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.82e-04', EG='0.27', time_epoch_completed='1630290249.81', return_code='0', job_id='450836', GAL2='0.94', EG2='0.01', return_code2='0', energy_flux_error='2.23e-04', photon_flux_error2='1.31e-06', ts2='11.09', photon_index='2.61' WHERE bin_id='1333' AND source_name='4FGL J0824.7+5552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:24:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0045>
Subject: Job 450836: <4FGL_J0824.7+5552_daily_bin1333> in cluster <slac> Done

Job <4FGL_J0824.7+5552_daily_bin1333> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 19:10:32 2021
Job was executed on host(s) <bullet0045>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 19:10:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 19:10:33 2021
Terminated at Sun Aug 29 19:24:10 2021
Results reported at Sun Aug 29 19:24:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.7+5552_daily_bin1333 126.198 55.8816 584841601 585100801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0824.7+5552 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   641.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            818 sec.

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

