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


Performing analysis on: 4FGL_J0824.7+5552_daily_bin1579
RA = 126.198, Dec = 55.8816
tmin = 648604801, tmax = 648864001
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='452627', job_status='RUN', time_executed='2021-08-29 19:15:54.578157', time_epoch_executed='1630289754.58' WHERE source_name='4FGL J0824.7+5552' and cadence='daily' and bin_id='1579'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452627

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452627/ft1_4FGL_J0824.7+5552_daily_bin1579.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452627/ft2_4FGL_J0824.7+5552_daily_bin1579.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452627/ft1_4FGL_J0824.7+5552_daily_bin1579.fits outfile=/scratch/kocevski/452627/ft1_filteredMKT_4FGL_J0824.7+5552_daily_bin1579.fits ra=126.198 dec=55.8816 rad=12.0 tmin=648604801.0 tmax=648864001.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 2.97
user 2.76
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452627/ft1_filtered_4FGL_J0824.7+5552_daily_bin1579.fits" evtable="EVENTS" scfile=/scratch/kocevski/452627/ft2_4FGL_J0824.7+5552_daily_bin1579.fits sctable="SC_DATA" outfile=/scratch/kocevski/452627/ltcube_648604801_648864001_4FGL_J0824.7+5552_daily_bin1579.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/452627/ft2_4FGL_J0824.7+5552_daily_bin1579.fits
.....................!
real 12.14
user 11.80
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452627/ft1_filtered_4FGL_J0824.7+5552_daily_bin1579.fits evtable="EVENTS" scfile=/scratch/kocevski/452627/ft2_4FGL_J0824.7+5552_daily_bin1579.fits sctable="SC_DATA" expcube=/scratch/kocevski/452627/ltcube_648604801_648864001_4FGL_J0824.7+5552_daily_bin1579.fits outfile=/scratch/kocevski/452627/expmap_648604801_648864001_4FGL_J0824.7+5552_daily_bin1579.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/452627/ltcube_648604801_648864001_4FGL_J0824.7+5552_daily_bin1579.fits
.....................!
real 191.19
user 185.38
sys 5.27

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/452627/ft1_filtered_4FGL_J0824.7+5552_daily_bin1579.fits scfile=/scratch/kocevski/452627/ft2_4FGL_J0824.7+5552_daily_bin1579.fits outfile=/scratch/kocevski/452627/cmap_648604801_648864001_4FGL_J0824.7+5552_daily_bin1579.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.00
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452627/ft1_filtered_4FGL_J0824.7+5552_daily_bin1579.fits scfile=/scratch/kocevski/452627/ft2_4FGL_J0824.7+5552_daily_bin1579.fits outfile=/scratch/kocevski/452627/cmap_HighResolution_648604801_648864001_4FGL_J0824.7+5552_daily_bin1579.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 0.89
user 0.38
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/452627/ft1_filtered_4FGL_J0824.7+5552_daily_bin1579.fits evtable="EVENTS" scfile=/scratch/kocevski/452627/ft2_4FGL_J0824.7+5552_daily_bin1579.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/452627/Model_4FGL_J0824.7+5552_daily_bin1579.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/452627/ft1_filtered_4FGL_J0824.7+5552_daily_bin1579.fits.....................!
real 40.57
user 35.93
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.191       1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.600       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.0600       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10722E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    55.502       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5484       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.001       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.325       1.0000         .10000E-03   10000.    
    11 'norm      '    3.4432       1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.831       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0734       1.0000         .10000E-03   10000.    
    14 'norm      '    5.9873       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .23019       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    57.363       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .12712E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .19125E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    27 'Prefactor '    9584.3       1.0000         .10000E-03   10000.    
    28 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    29 'norm      '    3.6060       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'norm      '    .10249E-03   1.0000         .10000E-03   10000.    
    35 'Prefactor '    .10346E-03   1.0000         .10000E-03   10000.    
    36 'Normalizat'    .18137E-01   1.0000         .10000E-01   10.000    
    37 'Prefactor '    1.1107       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2589.590     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     5666 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.182        1.1170       -.11142E-06   -.34378E-03
   2  Prefactor     39.611        1.6688        .28260E-06    .27198E-03
   3  Prefactor     9.0838        2.2925       -.19094E-06   -.41824E-06
   4  Prefactor     .10150E-03    20.669        .12834E-04** at limit **
   5  Prefactor     55.517        2.4604        .62757E-06    .41803E-03
   6  Prefactor     .10466E-03    26.880        .17970E-04** at limit **
   7  norm          1.5492        1.2433        .86757E-07    .10851E-04
   8  Prefactor     .10000E-03    11.856       -.56428E-07** at limit **
   9  norm          11.002        6.3417        .70798E-05    .68118E-02
  10  Prefactor     16.323        1.1985        .55232E-06   -.25393E-04
  11  norm          3.4495        4.0056        .24230E-06    .44549E-04
  12  Prefactor     42.834        1.3122        .52589E-06   -.34918E-03
  13  Prefactor     6.0611        1.5703        .11067E-05   -.23119E-03
  14  norm          5.9873        6.4286       -.28552E-05   -.15838E-02
  15  norm          .10000E-03    2.0032       -.22540E-07** at limit **
  16  Prefactor     .23190        3.8236       -.16436E-07    .11332E-04
  17  Prefactor     .10000E-03    5.0267        .38982E-09** at limit **
  18  Prefactor     .10000E-03    2.6436        .16480E-07** at limit **
  19  Prefactor     .14857E-03    277.24       -.10156E-03** at limit **
  20  Prefactor     .10000E-03    8.0636        .62957E-07** at limit **
  21  Prefactor     57.403        8.4506        .37500E-05   -.17446E-02
  22  norm          .10045E-03    39.997       -.80556E-05** at limit **
  23  norm          .11033E-03    46.846       -.24862E-04** at limit **
  24  Prefactor     .10039E-03    16.000        .19510E-04** at limit **
  25  Prefactor     .10033E-03    4.6690       -.28401E-05** at limit **
  26  Prefactor    10000.0        93.148       -.18652E-04** at limit **
  27  Prefactor     9584.3        1.5258        .23687E-06   -.16994E-02
  28  Prefactor    10000.0        22.749        .38510E-04   -.78242E-03
  29  norm          3.6066        2.0662        .37566E-07    .18449E-04
  30  Prefactor     .14091E-03    88.539        .21676E-04** at limit **
  31  Prefactor     .11248E-03    79.470       -.11097E-04** at limit **
  32  Prefactor     .10000E-03    19.931        .12562E-05** at limit **
  33  Prefactor     .10044E-03    16.082       -.20363E-04** at limit **
  34  norm          .10735E-03    63.970        .89009E-05** at limit **
  35  Prefactor     .19512E-02    157.51       -.93605E-04** at limit **
  36  Normalizat    .16765E-01    6.7815       -.32251E-04   -.47930E-06
  37  Prefactor     1.1115        .23757        .36375E-06    .40929E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1816
  Prefactor  = 39.6113
  Prefactor  = 9.08382
  Prefactor  = 0.0001015
  Prefactor  = 55.5172
  Prefactor  = 0.000104657
  norm       = 1.54921
  Prefactor  = 0.0001
  norm       = 11.0021
  Prefactor  = 16.3231
  norm       = 3.44955
  Prefactor  = 42.8343
  Prefactor  = 6.06111
  norm       = 5.9873
  norm       = 0.0001
  Prefactor  = 0.231902
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00014857
  Prefactor  = 0.0001
  Prefactor  = 57.4031
  norm       = 0.000100448
  norm       = 0.000110325
  Prefactor  = 0.000100394
  Prefactor  = 0.000100333
  Prefactor  = 10000
  Prefactor  = 9584.3
  Prefactor  = 9999.96
  norm       = 3.60656
  Prefactor  = 0.000140909
  Prefactor  = 0.00011248
  Prefactor  = 0.000100003
  Prefactor  = 0.000100436
  norm       = 0.000107353
  Prefactor  = 0.00195124
  Normalizat = 0.0167651
  Prefactor  = 1.11152
 **********
 **   18 **HESSE 
 **********

 FCN=   2589.590     FROM HESSE     STATUS=NOT POSDEF   931 CALLS     6597 TOTAL
                     EDM=   .96E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.182        16.761        .26581E-02   -1.4955    
   2  Prefactor     39.611        57.326        .15924E-02   -1.4448    
   3  Prefactor     9.0838        215.36        .33289E-02   -1.5105    
   4  Prefactor     .10150E-03    44.198        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     55.517        52.072        .13461E-02   -1.4216    
   6  Prefactor     .10466E-03    42.636        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5492        1.9257        .85592E-02   -1.5459    
   8  Prefactor     .10000E-03    10.130        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.002        6.0537        .30198E-02   -1.5044    
  10  Prefactor     16.323        36.039        .24782E-02   -1.4900    
  11  norm          3.4495        8.6273        .54492E-02   -1.5336    
  12  Prefactor     42.834        114.46        .15314E-02   -1.4398    
  13  Prefactor     6.0611        52.905        .40729E-02   -1.5216    
  14  norm          5.9873        6.2028        .41025E-02   -1.5219    
  15  norm          .10000E-03    1.6912        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .23190        9.1636        .23836E-01   -1.5612    
  17  Prefactor     .10000E-03    4.2965        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.2566        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .14857E-03    544.96        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.9056        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     57.403        122.31        .13242E-02   -1.4191    
  22  norm          .10045E-03    34.405        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .11033E-03    48.906        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10039E-03    13.903        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10033E-03    20.909        .59628E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor    10000.0        214.09        .90712E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     9584.3        5041.2        .50099E-03    1.1601    
  28  Prefactor    10000.0        8682.2        .92467E-02    1.5669    
  29  norm          3.6066        2.9347        .53195E-02   -1.5328    
  30  Prefactor     .14091E-03    208.58        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .11248E-03    125.11        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    17.038        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10044E-03    13.998        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  norm          .10735E-03    136.04        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     .19512E-02    1201.1        .90712E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Normalizat    .16765E-01    9.7451        .22787       -1.5187    
  37  Prefactor     1.1115        .95825        .37194E-01   -.89099    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.56715e-05
Minuit parameter uncertainties:
  1  16.7661
  2  57.4056
  3  88.8212
  4  0.016299
  5  52.1149
  6  0.0282034
  7  1.92576
  8  1.15827e-05
  9  6.05402
  10  36.0865
  11  8.63046
  12  115.058
  13  35.8565
  14  6.20349
  15  1.66761e-07
  16  2.91537
  17  2.03761e-07
  18  3.53057e-07
  19  0.328417
  20  3.477e-06
  21  122.85
  22  0.00785468
  23  0.0449799
  24  0.00468121
  25  0.00527999
  26  0.20228
  27  10988.9
  28  40.0208
  29  2.93486
  30  0.185394
  31  0.0791929
  32  0.000422079
  33  0.00494061
  34  0.0633986
  35  3.04541
  36  0.945188
  37  0.973748
Done.

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

Extracting fit parameters...

4FGL J0824.7+5552
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  3.531e-07  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:  1.112e+00  9.737e-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.677e-02  9.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 126.198 55.882
Photon Flux Upper Limit: 9.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/452627/likelihoodResults_648604801_648864001_4FGL_J0824.7+5552_daily_bin1579.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) = 2589.59111789
delta logL = -0.00119575587723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2589.58992192
delta logL = 2.18378772843e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5953       1.0000          .0000       10.000    
     3 'Normalizat'    .16761E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1115       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=   2589.590     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      264 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.831        .82207E-02** at limit **
   2  Index         1.8626        5.9292        .50000       -.81559E-07
   3  Normalizat    .16758E-01    .23476E-01    .13289E-01    .11968E-04
   4  Prefactor     1.1115        .16954E-01    .18310E-03    .43347E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.86261
  Normalizat = 0.0167583
  Prefactor  = 1.11152
 **********
 **   18 **HESSE 
 **********

 FCN=   2589.590     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      295 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    298.33        .99239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8626        5.8000        .50000       -.67831    
   3  Normalizat    .16758E-01    .17520        .53156E-03   -1.5188    
   4  Prefactor     1.1115        .49404E-01    .36621E-04   -.89099    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.61253e-09
Minuit parameter uncertainties:
  1  0.000384184
  2  928.114
  3  0.0690461
  4  0.0494064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452627': 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) = 2589.58991575
delta logL = 6.38119990981e-06

Extracting fit parameters...

4FGL J0824.7+5552
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  3.842e-04  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  1.863e+00  9.281e+02  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:  1.112e+00  4.941e-02  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.676e-02  6.905e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/452627/cmap_HighResolution_648604801_648864001_4FGL_J0824.7+5552_daily_bin1579.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.72e-03', job_status='DONE', photon_flux_upper_limit='9.86e-08', time_completed='2021-08-29 19:29:14.845248', job_id='452627', GAL2='1.11', fit_tolerance='1e-08', EG2='0.02', EG='0.02', time_epoch_completed='1630290554.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='102', GAL='1.11', dlogl='6.38e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1579' AND source_name='4FGL J0824.7+5552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:29:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 452627: <4FGL_J0824.7+5552_daily_bin1579> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.7+5552_daily_bin1579 126.198 55.8816 648604801 648864001 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 :                                   788.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            816 sec.

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

