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


Performing analysis on: 4FGL_J0824.7+5552_daily_bin1526
RA = 126.198, Dec = 55.8816
tmin = 634867201, tmax = 635126401
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='452541', job_status='RUN', time_executed='2021-08-29 19:16:00.009559', time_epoch_executed='1630289760.01' WHERE source_name='4FGL J0824.7+5552' and cadence='daily' and bin_id='1526'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452541

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452541/ft1_4FGL_J0824.7+5552_daily_bin1526.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452541/ft2_4FGL_J0824.7+5552_daily_bin1526.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452541/ft1_4FGL_J0824.7+5552_daily_bin1526.fits outfile=/scratch/kocevski/452541/ft1_filteredMKT_4FGL_J0824.7+5552_daily_bin1526.fits ra=126.198 dec=55.8816 rad=12.0 tmin=634867201.0 tmax=635126401.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.51
user 2.82
sys 0.49

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/452541/ft2_4FGL_J0824.7+5552_daily_bin1526.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/452541/ft1_filteredMKT_4FGL_J0824.7+5552_daily_bin1526.fits evtable="EVENTS" outfile="/scratch/kocevski/452541/ft1_filtered_4FGL_J0824.7+5552_daily_bin1526.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 0.79
user 0.32
sys 0.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452541/ft1_filtered_4FGL_J0824.7+5552_daily_bin1526.fits" evtable="EVENTS" scfile=/scratch/kocevski/452541/ft2_4FGL_J0824.7+5552_daily_bin1526.fits sctable="SC_DATA" outfile=/scratch/kocevski/452541/ltcube_634867201_635126401_4FGL_J0824.7+5552_daily_bin1526.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/452541/ft2_4FGL_J0824.7+5552_daily_bin1526.fits
.....................!
real 12.71
user 11.95
sys 0.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452541/ft1_filtered_4FGL_J0824.7+5552_daily_bin1526.fits evtable="EVENTS" scfile=/scratch/kocevski/452541/ft2_4FGL_J0824.7+5552_daily_bin1526.fits sctable="SC_DATA" expcube=/scratch/kocevski/452541/ltcube_634867201_635126401_4FGL_J0824.7+5552_daily_bin1526.fits outfile=/scratch/kocevski/452541/expmap_634867201_635126401_4FGL_J0824.7+5552_daily_bin1526.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/452541/ltcube_634867201_635126401_4FGL_J0824.7+5552_daily_bin1526.fits
.....................!
real 191.65
user 185.64
sys 5.18

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/452541/ft1_filtered_4FGL_J0824.7+5552_daily_bin1526.fits scfile=/scratch/kocevski/452541/ft2_4FGL_J0824.7+5552_daily_bin1526.fits outfile=/scratch/kocevski/452541/cmap_634867201_635126401_4FGL_J0824.7+5552_daily_bin1526.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.10
user 0.37
sys 0.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452541/ft1_filtered_4FGL_J0824.7+5552_daily_bin1526.fits scfile=/scratch/kocevski/452541/ft2_4FGL_J0824.7+5552_daily_bin1526.fits outfile=/scratch/kocevski/452541/cmap_HighResolution_634867201_635126401_4FGL_J0824.7+5552_daily_bin1526.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.11
user 0.37
sys 0.45

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/452541/ft1_filtered_4FGL_J0824.7+5552_daily_bin1526.fits evtable="EVENTS" scfile=/scratch/kocevski/452541/ft2_4FGL_J0824.7+5552_daily_bin1526.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/452541/Model_4FGL_J0824.7+5552_daily_bin1526.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/452541/ft1_filtered_4FGL_J0824.7+5552_daily_bin1526.fits.....................!
real 47.99
user 43.89
sys 2.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/452541/ft1_filtered_4FGL_J0824.7+5552_daily_bin1526.fits', '/scratch/kocevski/452541/ft2_4FGL_J0824.7+5552_daily_bin1526.fits', expMap='/scratch/kocevski/452541/expmap_634867201_635126401_4FGL_J0824.7+5552_daily_bin1526.fits', expCube='/scratch/kocevski/452541/ltcube_634867201_635126401_4FGL_J0824.7+5552_daily_bin1526.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/452541/Model_4FGL_J0824.7+5552_daily_bin1526.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/452541/ft1_filtered_4FGL_J0824.7+5552_daily_bin1526.fits
Spacecraft file(s): /scratch/kocevski/452541/ft2_4FGL_J0824.7+5552_daily_bin1526.fits
Exposure map: /scratch/kocevski/452541/expmap_634867201_635126401_4FGL_J0824.7+5552_daily_bin1526.fits
Exposure cube: /scratch/kocevski/452541/ltcube_634867201_635126401_4FGL_J0824.7+5552_daily_bin1526.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/452541/Model_4FGL_J0824.7+5552_daily_bin1526.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) = 3404.19411061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0171       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.821       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6176       1.0000         .10000E-03   10000.    
     7 'norm      '    .28183       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.8821       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4721       1.0000         .10000E-03   10000.    
    11 'norm      '    3.6144       1.0000         .10000E-03   10000.    
    12 'Prefactor '    73.967       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2849       1.0000         .10000E-03   10000.    
    14 'norm      '    1.8113       1.0000         .10000E-03   10000.    
    15 'norm      '    .10209E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.412       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.0135       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10377E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11544E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    2.5272       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    34.247       1.0000         .10000E-03   10000.    
    32 'Prefactor '    11.996       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    34 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    35 'Prefactor '    2273.8       1.0000         .10000E-03   10000.    
    36 'Normalizat'    .80183       1.0000         .10000E-01   10.000    
    37 'Prefactor '    .98846       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=   3404.141     FROM MIGRAD    STATUS=CONVERGED   1042 CALLS     6384 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.6819        .46284E-07** at limit **
   2  Prefactor     3.0243        52.677        .16033E-04   -.38384E-04
   3  Prefactor     .10000E-03    22.011        .12474E-05** at limit **
   4  Prefactor     21.875        42.790       -.45914E-05   -.12411E-03
   5  Prefactor     .10000E-03    12.947       -.23028E-06** at limit **
   6  Prefactor     7.9457        642.53       -.26752E-04    .10557E-04
   7  norm          .27959        .93766        .13044E-05    .32428E-03
   8  Prefactor     .10000E-03    10.102       -.47902E-06** at limit **
   9  norm          4.8829        5.0757        .41729E-07    .81096E-04
  10  Prefactor     5.4626        20.164        .20828E-05   -.55122E-05
  11  norm          3.6141        3.7705        .89941E-07   -.67293E-04
  12  Prefactor     73.890        130.73       -.57364E-06   -.67120E-05
  13  Prefactor     6.2818        21.595        .47219E-06   -.12583E-04
  14  norm          1.8158        6.5971        .31096E-05    .47254E-03
  15  norm          .10000E-03    3.4901       -.26422E-05** at limit **
  16  Prefactor     .10000E-03    .77560       -.36290E-07** at limit **
  17  Prefactor     16.415        17.389        .19006E-06   -.24433E-04
  18  Prefactor     8.0142        14.080       -.61131E-06    .39058E-04
  19  Prefactor     .10000E-03    39.549       -.33079E-06** at limit **
  20  Prefactor     .10000E-03    10.836       -.34772E-06** at limit **
  21  Prefactor     .10000E-03    52.132       -.11007E-05** at limit **
  22  norm          .10000E-03    7.7956       -.10139E-06** at limit **
  23  norm          .10000E-03    11.098       -.24974E-06** at limit **
  24  Prefactor     .10000E-03    12.920       -.41151E-06** at limit **
  25  Prefactor     .10000E-03    4.7495       -.78162E-06** at limit **
  26  Prefactor     .10000E-03    28.336       -.39181E-06** at limit **
  27  Prefactor     .10000E-03    148.07       -.75924E-06** at limit **
  28  Prefactor     .10000E-03    178.57       -.39784E-06** at limit **
  29  norm          2.5279        1.9247       -.38531E-07    .31995E-04
  30  Prefactor     .10000E-03    152.52       -.71313E-07** at limit **
  31  Prefactor     34.279        94.753        .78201E-06    .12946E-05
  32  Prefactor     12.002        26.929        .22358E-06    .11409E-05
  33  Prefactor     .10000E-03    13.012       -.12272E-05** at limit **
  34  norm          .10000E-03    42.312       -.44558E-06** at limit **
  35  Prefactor     2271.4        1266.5       -.27638E-05   -.20416E-04
  36  Normalizat    .80157        .31549        .57495E-05   -.10582E-03
  37  Prefactor     .98875        .19186       -.40260E-05    .22526E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.02426
  Prefactor  = 0.0001
  Prefactor  = 21.8754
  Prefactor  = 0.0001
  Prefactor  = 7.94573
  norm       = 0.279591
  Prefactor  = 0.0001
  norm       = 4.8829
  Prefactor  = 5.46256
  norm       = 3.6141
  Prefactor  = 73.8902
  Prefactor  = 6.28182
  norm       = 1.81576
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 16.4146
  Prefactor  = 8.01418
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.52794
  Prefactor  = 0.0001
  Prefactor  = 34.2789
  Prefactor  = 12.0023
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2271.43
  Normalizat = 0.801571
  Prefactor  = 0.988746
 **********
 **   18 **HESSE 
 **********

 FCN=   3404.141     FROM HESSE     STATUS=OK           849 CALLS     7233 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.7141        .17732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.0243        51.054        .11682E-02   -1.5360    
   3  Prefactor     .10000E-03    22.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.875        42.509        .85745E-04   -1.4772    
   5  Prefactor     .10000E-03    12.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.9457        606.80        .14530E-02   -1.5144    
   7  norm          .27959        .88156        .92441E-04   -1.5602    
   8  Prefactor     .10000E-03    10.115        .18113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.8829        5.0700        .12795E-03   -1.5266    
  10  Prefactor     5.4626        20.103        .17177E-03   -1.5240    
  11  norm          3.6141        3.7800        .10389E-03   -1.5328    
  12  Prefactor     73.890        130.90        .23342E-03   -1.3987    
  13  Prefactor     6.2818        21.574        .16012E-03   -1.5207    
  14  norm          1.8158        6.4075        .26029E-03   -1.5438    
  15  norm          .10000E-03    5.5873        .19749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .78457        .49994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.415        17.365        .98864E-04   -1.4897    
  18  Prefactor     8.0142        13.998        .14164E-03   -1.5142    
  19  Prefactor     .10000E-03    39.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    52.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.7968        .15912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    11.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.7547        .12413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    28.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    148.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    178.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          2.5279        1.9195        .65564E-04   -1.5390    
  30  Prefactor     .10000E-03    152.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     34.279        94.708        .68476E-04   -1.4536    
  32  Prefactor     12.002        26.922        .11566E-03   -1.5015    
  33  Prefactor     .10000E-03    13.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  norm          .10000E-03    42.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     2271.4        1266.9        .47716E-04   -.57724    
  36  Normalizat    .80157        .35346        .32394E-03   -1.0001    
  37  Prefactor     .98875        .21549        .20257E-03   -.93106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5591e-09
Minuit parameter uncertainties:
  1  1.38384e-05
  2  24.8761
  3  2.42464e-05
  4  42.5681
  5  2.35387e-05
  6  140.375
  7  0.881605
  8  2.03998e-05
  9  5.07048
  10  20.1282
  11  3.78029
  12  131.42
  13  21.6008
  14  6.40988
  15  0.000128614
  16  2.57862e-06
  17  17.3702
  18  14.0034
  19  2.84355e-05
  20  6.29328e-07
  21  8.30754e-05
  22  4.81013e-07
  23  1.77186e-07
  24  2.59694e-06
  25  3.33976e-06
  26  3.84006e-05
  27  0.000203082
  28  0.000311824
  29  1.91951
  30  0.000145289
  31  95.1278
  32  26.9492
  33  1.05242e-05
  34  2.53124e-05
  35  1287.05
  36  0.354479
  37  0.215673
Done.

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

Extracting fit parameters...

4FGL J0824.7+5552
   Spectrum: PowerLaw
324    Prefactor:  8.014e+00  1.400e+01  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:  9.887e-01  2.157e-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:  8.016e-01  3.545e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.44
Ra Dec: 126.198 55.882
Photon Flux Upper Limit: 2.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.91e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/452541/likelihoodResults_634867201_635126401_4FGL_J0824.7+5552_daily_bin1526.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) = 3404.1398698
delta logL = 0.000847523983794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3404.13965688
delta logL = 0.00106044608719

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2861       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5624       1.0000          .0000       10.000    
     3 'Normalizat'    .80321       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98780       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.

 FCN=   3404.140     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      226 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2861        666.05        .34818E-02   -.40751E-03
   2  Index         2.5624        5.1931        .23322       -.12879E-03
   3  Normalizat    .80309        .10071        .73130E-01    .99984E-05
   4  Prefactor     .98789        .77610E-01    .46114E-01   -.15495E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.28614
  Index      = 2.56235
  Normalizat = 0.803091
  Prefactor  = 0.987886
 **********
 **   18 **HESSE 
 **********

 FCN=   3404.140     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2861        14.888        .13927E-03   -1.5132    
   2  Index         2.5624        1.0720        .10014E-01   -.50926    
   3  Normalizat    .80309        .30619        .32365E-03   -.99954    
   4  Prefactor     .98789        .20996        .20265E-03   -.93134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12501e-09
Minuit parameter uncertainties:
  1  14.8946
  2  1.0831
  3  0.306852
  4  0.21013
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452541': 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) = 3404.1396568
delta logL = 0.00106052915407

Extracting fit parameters...

4FGL J0824.7+5552
   Spectrum: PowerLaw
324    Prefactor:  8.286e+00  1.489e+01  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.562e+00  1.083e+00  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.879e-01  2.101e-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:  8.031e-01  3.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.44
Ra Dec: 126.198 55.882

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/452541/cmap_HighResolution_634867201_635126401_4FGL_J0824.7+5552_daily_bin1526.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.91e-02', job_status='DONE', photon_flux_upper_limit='2.44e-07', time_completed='2021-08-29 19:31:09.881985', job_id='452541', GAL2='0.99', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1630290669.88', return_code2='0', ts='0.44', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.06e-03', ts2='0.45', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1526' AND source_name='4FGL J0824.7+5552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:31:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 452541: <4FGL_J0824.7+5552_daily_bin1526> in cluster <slac> Done

Job <4FGL_J0824.7+5552_daily_bin1526> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 19:15:33 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 19:15:34 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:15:34 2021
Terminated at Sun Aug 29 19:31:10 2021
Results reported at Sun Aug 29 19:31:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.7+5552_daily_bin1526 126.198 55.8816 634867201 635126401 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 :                                   902.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             323.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            937 sec.

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

