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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin1624
RA = 126.236, Dec = 39.2574
tmin = 660268801, tmax = 660528001
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='261990', job_status='RUN', time_executed='2021-12-07 19:07:55.851843', time_epoch_executed='1638932875.85' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='1624'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261990

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261990/ft1_4FGL_J0824.9+3915_daily_bin1624.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261990/ft2_4FGL_J0824.9+3915_daily_bin1624.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261990/ft1_4FGL_J0824.9+3915_daily_bin1624.fits outfile=/scratch/kocevski/261990/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1624.fits ra=126.236 dec=39.2574 rad=12.0 tmin=660268801.0 tmax=660528001.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.88
user 3.64
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/261990/ft2_4FGL_J0824.9+3915_daily_bin1624.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261990/ft2_4FGL_J0824.9+3915_daily_bin1624.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/261990/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1624.fits evtable="EVENTS" outfile="/scratch/kocevski/261990/ft1_filtered_4FGL_J0824.9+3915_daily_bin1624.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.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261990/ft1_filtered_4FGL_J0824.9+3915_daily_bin1624.fits" evtable="EVENTS" scfile=/scratch/kocevski/261990/ft2_4FGL_J0824.9+3915_daily_bin1624.fits sctable="SC_DATA" outfile=/scratch/kocevski/261990/ltcube_660268801_660528001_4FGL_J0824.9+3915_daily_bin1624.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/261990/ft2_4FGL_J0824.9+3915_daily_bin1624.fits
.....................!
real 12.68
user 12.32
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261990/ft1_filtered_4FGL_J0824.9+3915_daily_bin1624.fits evtable="EVENTS" scfile=/scratch/kocevski/261990/ft2_4FGL_J0824.9+3915_daily_bin1624.fits sctable="SC_DATA" expcube=/scratch/kocevski/261990/ltcube_660268801_660528001_4FGL_J0824.9+3915_daily_bin1624.fits outfile=/scratch/kocevski/261990/expmap_660268801_660528001_4FGL_J0824.9+3915_daily_bin1624.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/261990/ltcube_660268801_660528001_4FGL_J0824.9+3915_daily_bin1624.fits
.....................!
real 192.24
user 186.27
sys 5.62

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

Setting source of interest to:
4FGL J0824.9+3915 @ 126.236 39.2574

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/261990/ft1_filtered_4FGL_J0824.9+3915_daily_bin1624.fits scfile=/scratch/kocevski/261990/ft2_4FGL_J0824.9+3915_daily_bin1624.fits outfile=/scratch/kocevski/261990/cmap_660268801_660528001_4FGL_J0824.9+3915_daily_bin1624.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.236 yref=39.2574 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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261990/ft1_filtered_4FGL_J0824.9+3915_daily_bin1624.fits scfile=/scratch/kocevski/261990/ft2_4FGL_J0824.9+3915_daily_bin1624.fits outfile=/scratch/kocevski/261990/cmap_HighResolution_660268801_660528001_4FGL_J0824.9+3915_daily_bin1624.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.236 yref=39.2574 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261990/ft1_filtered_4FGL_J0824.9+3915_daily_bin1624.fits evtable="EVENTS" scfile=/scratch/kocevski/261990/ft2_4FGL_J0824.9+3915_daily_bin1624.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261990/Model_4FGL_J0824.9+3915_daily_bin1624.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/261990/ft1_filtered_4FGL_J0824.9+3915_daily_bin1624.fits.....................!
real 67.04
user 65.58
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/261990/ft1_filtered_4FGL_J0824.9+3915_daily_bin1624.fits', '/scratch/kocevski/261990/ft2_4FGL_J0824.9+3915_daily_bin1624.fits', expMap='/scratch/kocevski/261990/expmap_660268801_660528001_4FGL_J0824.9+3915_daily_bin1624.fits', expCube='/scratch/kocevski/261990/ltcube_660268801_660528001_4FGL_J0824.9+3915_daily_bin1624.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/261990/Model_4FGL_J0824.9+3915_daily_bin1624.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0824.9+3915'

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.301e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.432e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  8.513e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/261990/ft1_filtered_4FGL_J0824.9+3915_daily_bin1624.fits
Spacecraft file(s): /scratch/kocevski/261990/ft2_4FGL_J0824.9+3915_daily_bin1624.fits
Exposure map: /scratch/kocevski/261990/expmap_660268801_660528001_4FGL_J0824.9+3915_daily_bin1624.fits
Exposure cube: /scratch/kocevski/261990/ltcube_660268801_660528001_4FGL_J0824.9+3915_daily_bin1624.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/261990/Model_4FGL_J0824.9+3915_daily_bin1624.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46177       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.819       1.0000         .10000E-03   10000.    
     3 'norm      '    4.6693       1.0000         .10000E-03   10000.    
     4 'norm      '    .21237       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3399       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2044       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .79015       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .29469E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.9872       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .28601E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .39931       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0117       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9035       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .57726E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .72315       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3379       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .73968       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6998.938     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     2827 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48027        6.1450        .11114        .45600E-03
   2  Prefactor     15.817        18.122        .25175E-02   -.53877E-03
   3  norm          4.6695        5.4708        .46560E-02    .18391E-02
   4  norm          .23255        1.4034        .58277E-01    .33530E-03
   5  Prefactor     6.3310        7.7082        .39853E-02   -.73382E-03
   6  Prefactor     .10000E-03    118.10        .90712E-02** at limit **
   7  Prefactor     1.2072        5.2031        .10328E-01    .11016E-02
   8  Prefactor     .10000E-03    6.0794        .90712E-02** at limit **
   9  norm          .78993        .52932        .10266E-01    .16464E-04
  10  Prefactor     .10000E-03    6.1277        .90712E-02** at limit **
  11  Prefactor     .10000E-03    8.1947        .90712E-02** at limit **
  12  Prefactor     .10000E-03    6.9459        .90712E-02** at limit **
  13  Prefactor     .10001E-03    1.2192        .66379E-01** at limit **
  14  Prefactor     8.9943        21.462        .33424E-02    .46602E-03
  15  Prefactor     .10000E-03    7.7844        .90712E-02** at limit **
  16  norm          .10000E-03    3.4856        .49782E-01** at limit **
  17  Prefactor     .39828        1.6702        .36596E-01    .13450E-02
  18  Prefactor     1.0144        3.8245        .13106E-01    .12675E-02
  19  Prefactor     .10000E-03    9.9154        .90712E-02** at limit **
  20  Prefactor     2.8980        3.9054        .59615E-02    .47185E-03
  21  Prefactor     .10000E-03    31.211        .90712E-02** at limit **
  22  norm          .90560E-02    .28030        .23836E-01    .83760E-03
  23  norm          .10000E-03    9.6028        .90712E-02** at limit **
  24  Prefactor     .72842        2.6892        .41101E-01    .10016E-02
  25  Normalizat    1.3377        .17718        .52988E-01   -.13222E-03
  26  Prefactor     .73959        .13205        .42927E-01   -.72138E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.480268
  Prefactor  = 15.8167
  norm       = 4.66947
  norm       = 0.232552
  Prefactor  = 6.33096
  Prefactor  = 0.000100001
  Prefactor  = 1.2072
  Prefactor  = 0.000100001
  norm       = 0.789931
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 8.99434
  Prefactor  = 0.000100002
  norm       = 0.000100001
  Prefactor  = 0.398279
  Prefactor  = 1.01436
  Prefactor  = 0.0001
  Prefactor  = 2.89802
  Prefactor  = 0.0001
  norm       = 0.00905596
  norm       = 0.000100001
  Prefactor  = 0.728424
  Normalizat = 1.33767
  Prefactor  = 0.739586
 **********
 **   18 **HESSE 
 **********

 FCN=   6998.938     FROM HESSE     STATUS=OK           472 CALLS     3299 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48027        50.319        .39758E-02   -1.5569    
   2  Prefactor     15.817        18.071        .10070E-03   -1.4912    
   3  norm          4.6695        5.4664        .93120E-03   -1.5276    
   4  norm          .23255        7.7051        .18916E-02   -1.5612    
   5  Prefactor     6.3310        7.6740        .15941E-03   -1.5205    
   6  Prefactor     .10000E-03    120.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.2072        4.9551        .34006E-03   -1.5488    
   8  Prefactor     .10000E-03    6.0797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .78993        .51255        .46017E-04   -1.5530    
  10  Prefactor     .10000E-03    6.1279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.2036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.9665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    25.132        .17274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.9943        21.374        .13370E-03   -1.5108    
  15  Prefactor     .10000E-03    7.9655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    22.629        .30209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .39828        2.8929        .20167E-02   -1.5582    
  18  Prefactor     1.0144        3.8373        .30218E-03   -1.5507    
  19  Prefactor     .10000E-03    9.9167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.8980        3.7470        .15763E-03   -1.5367    
  21  Prefactor     .10000E-03    31.991        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .90560E-02    4.8469        .82841E-03   -1.5689    
  23  norm          .10000E-03    9.8120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .72842        3.6432        .21390E-02   -1.5537    
  25  Normalizat    1.3377        .20226        .23428E-03   -.82449    
  26  Prefactor     .73959        .15344        .24090E-03   -1.0200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.15744e-08
Minuit parameter uncertainties:
  1  9.83935
  2  18.0768
  3  5.46699
  4  2.67699
  5  7.67524
  6  0.000708046
  7  4.89202
  8  0.000132229
  9  0.512549
  10  0.000106696
  11  0.000139108
  12  4.57002e-05
  13  0.00102657
  14  21.3923
  15  0.000219617
  16  0.000247029
  17  2.14667
  18  3.83818
  19  0.000105625
  20  3.74732
  21  0.000208212
  22  0.416728
  23  0.00021552
  24  3.25818
  25  0.202375
  26  0.153529
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.027e-03  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.432e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  8.513e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  7.396e-01  1.535e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  1.338e+00  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 126.236 39.257
Photon Flux Upper Limit: 8.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261990/likelihoodResults_660268801_660528001_4FGL_J0824.9+3915_daily_bin1624.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) = 6998.93771195
delta logL = -0.00019101552698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6998.93736796
delta logL = 0.000152979499944

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35640E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6062       1.0000          .0000       10.000    
     3 'Normalizat'    1.3376       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73971       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6998.854     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      263 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22237        3.7058        .19609E-01    .19228E-02
   2  Index         3.7307        2.4946        .23179        .50951E-04
   3  Normalizat    1.3138        .18296E-01    .53386E-01   -.13639E-03
   4  Prefactor     .74850        .14526E-01    .42927E-01   -.14799E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.22237
  Index      = 3.73068
  Normalizat = 1.31383
  Prefactor  = 0.748499
 **********
 **   18 **HESSE 
 **********

 FCN=   6998.854     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      296 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22237        58.702        .76083E-03   -1.5614    
   2  Index         3.7307        7.5922        .10709E-01   -.25667    
   3  Normalizat    1.3138        .12231        .23605E-03   -.83154    
   4  Prefactor     .74850        .99731E-01    .23956E-03   -1.0166    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.79283e-07
Minuit parameter uncertainties:
  1  7.23152
  2  18.3022
  3  0.122334
  4  0.0997551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261990': 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) = 6998.85414658
delta logL = 0.0833743587109

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  2.224e-01  7.232e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  3.731e+00  1.830e+01  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  8.513e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  7.485e-01  9.976e-02  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  1.314e+00  1.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 126.236 39.257

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/261990/cmap_HighResolution_660268801_660528001_4FGL_J0824.9+3915_daily_bin1624.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.58e-03', job_status='DONE', photon_flux_upper_limit='8.49e-08', time_completed='2021-12-07 19:21:40.849327', job_id='261990', GAL2='0.75', fit_tolerance='1e-08', EG2='1.31', EG='1.34', time_epoch_completed='1638933700.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='8.34e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1624' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 19:21:40 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 261990: <4FGL_J0824.9+3915_daily_bin1624> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin1624> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 19:05:18 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 19:05:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 19:05:57 2021
Terminated at Tue Dec  7 19:21:41 2021
Results reported at Tue Dec  7 19:21:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin1624 126.236 39.2574 660268801 660528001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0824.9+3915 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   823.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            983 sec.

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

