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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin1047
RA = 126.236, Dec = 39.2574
tmin = 510710401, tmax = 510969601
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='460622', job_status='RUN', time_executed='2021-08-29 19:40:43.625067', time_epoch_executed='1630291243.63' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='1047'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460622

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460622/ft1_4FGL_J0824.9+3915_daily_bin1047.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460622/ft2_4FGL_J0824.9+3915_daily_bin1047.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460622/ft1_4FGL_J0824.9+3915_daily_bin1047.fits outfile=/scratch/kocevski/460622/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1047.fits ra=126.236 dec=39.2574 rad=12.0 tmin=510710401.0 tmax=510969601.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.70
user 3.21
sys 0.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/460622/ft2_4FGL_J0824.9+3915_daily_bin1047.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/460622/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1047.fits evtable="EVENTS" outfile="/scratch/kocevski/460622/ft1_filtered_4FGL_J0824.9+3915_daily_bin1047.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.86
user 0.34
sys 0.34

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460622/ft1_filtered_4FGL_J0824.9+3915_daily_bin1047.fits" evtable="EVENTS" scfile=/scratch/kocevski/460622/ft2_4FGL_J0824.9+3915_daily_bin1047.fits sctable="SC_DATA" outfile=/scratch/kocevski/460622/ltcube_510710401_510969601_4FGL_J0824.9+3915_daily_bin1047.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/460622/ft2_4FGL_J0824.9+3915_daily_bin1047.fits
.....................!
real 15.07
user 11.93
sys 0.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460622/ft1_filtered_4FGL_J0824.9+3915_daily_bin1047.fits evtable="EVENTS" scfile=/scratch/kocevski/460622/ft2_4FGL_J0824.9+3915_daily_bin1047.fits sctable="SC_DATA" expcube=/scratch/kocevski/460622/ltcube_510710401_510969601_4FGL_J0824.9+3915_daily_bin1047.fits outfile=/scratch/kocevski/460622/expmap_510710401_510969601_4FGL_J0824.9+3915_daily_bin1047.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/460622/ltcube_510710401_510969601_4FGL_J0824.9+3915_daily_bin1047.fits
.....................!
real 193.57
user 184.92
sys 4.46

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/460622/ft1_filtered_4FGL_J0824.9+3915_daily_bin1047.fits scfile=/scratch/kocevski/460622/ft2_4FGL_J0824.9+3915_daily_bin1047.fits outfile=/scratch/kocevski/460622/cmap_510710401_510969601_4FGL_J0824.9+3915_daily_bin1047.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.82
user 0.38
sys 0.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460622/ft1_filtered_4FGL_J0824.9+3915_daily_bin1047.fits scfile=/scratch/kocevski/460622/ft2_4FGL_J0824.9+3915_daily_bin1047.fits outfile=/scratch/kocevski/460622/cmap_HighResolution_510710401_510969601_4FGL_J0824.9+3915_daily_bin1047.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.76
user 0.37
sys 0.35

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/460622/ft1_filtered_4FGL_J0824.9+3915_daily_bin1047.fits', '/scratch/kocevski/460622/ft2_4FGL_J0824.9+3915_daily_bin1047.fits', expMap='/scratch/kocevski/460622/expmap_510710401_510969601_4FGL_J0824.9+3915_daily_bin1047.fits', expCube='/scratch/kocevski/460622/ltcube_510710401_510969601_4FGL_J0824.9+3915_daily_bin1047.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/460622/Model_4FGL_J0824.9+3915_daily_bin1047.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/460622/ft1_filtered_4FGL_J0824.9+3915_daily_bin1047.fits
Spacecraft file(s): /scratch/kocevski/460622/ft2_4FGL_J0824.9+3915_daily_bin1047.fits
Exposure map: /scratch/kocevski/460622/expmap_510710401_510969601_4FGL_J0824.9+3915_daily_bin1047.fits
Exposure cube: /scratch/kocevski/460622/ltcube_510710401_510969601_4FGL_J0824.9+3915_daily_bin1047.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/460622/Model_4FGL_J0824.9+3915_daily_bin1047.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) = 7120.78509472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9616       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .97012       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15123E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5221       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .58034       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.9322       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10333E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.3964       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8543       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .73088       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.092       1.0000         .10000E-03   10000.    
    22 'norm      '    1.8964       1.0000         .10000E-03   10000.    
    23 'norm      '    .45564E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.3248       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1012       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86587       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7120.643     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     2686 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9619        8.5980        .43944E-06    .11198E-03
   2  Prefactor     .10000E-03    8.8160       -.67951E-06** at limit **
   3  norm          .96964        11.803        .22089E-05    .32572E-03
   4  norm          .10000E-03    .76512       -.26445E-07** at limit **
   5  Prefactor     .10004E-03    10.618        .38703E-05** at limit **
   6  Prefactor     .10000E-03    13.390        .37794E-05** at limit **
   7  Prefactor     1.5224        4.3062       -.69515E-06    .28336E-04
   8  Prefactor     .10000E-03    12.163       -.12211E-05** at limit **
   9  norm          .58044        .46067        .83704E-07    .84951E-03
  10  Prefactor     .10000E-03    19.336        .33568E-05** at limit **
  11  Prefactor     .10000E-03    59.396        .13509E-05** at limit **
  12  Prefactor     .10000E-03    5.5598       -.12196E-06** at limit **
  13  Prefactor     .10000E-03    1.2686        .25190E-07** at limit **
  14  Prefactor     6.9330        13.282        .14775E-06    .22448E-04
  15  Prefactor     .10000E-03    4.8235        .39664E-07** at limit **
  16  norm          .10000E-03    5.3868        .20493E-05** at limit **
  17  Prefactor     4.3959        3.0077        .34785E-07    .11577E-03
  18  Prefactor     2.8545        2.8862        .29967E-06    .20933E-03
  19  Prefactor     .10000E-03    8.5541        .13001E-05** at limit **
  20  Prefactor     .73113        2.7089        .52997E-06    .49668E-03
  21  Prefactor     13.100        11.256        .15624E-06    .12244E-03
  22  norm          1.8963        .75650        .49449E-08    .26862E-03
  23  norm          .10000E-03    5.6747       -.15934E-05** at limit **
  24  Prefactor     2.3258        2.4057       -.51505E-07    .24098E-03
  25  Normalizat    1.1013        .16201        .99826E-07    .57974E-04
  26  Prefactor     .86585        .12656        .40264E-06    .44896E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.96189
  Prefactor  = 0.0001
  norm       = 0.969638
  norm       = 0.0001
  Prefactor  = 0.000100037
  Prefactor  = 0.000100001
  Prefactor  = 1.52243
  Prefactor  = 0.0001
  norm       = 0.580436
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.93299
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.39589
  Prefactor  = 2.85448
  Prefactor  = 0.0001
  Prefactor  = 0.731133
  Prefactor  = 13.0997
  norm       = 1.89634
  norm       = 0.000100004
  Prefactor  = 2.32577
  Normalizat = 1.10125
  Prefactor  = 0.865848
 **********
 **   18 **HESSE 
 **********

 FCN=   7120.643     FROM HESSE     STATUS=OK           462 CALLS     3148 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9619        8.6631        .29616E-03   -1.5428    
   2  Prefactor     .10000E-03    8.9132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .96964        13.511        .52239E-03   -1.5511    
   4  norm          .10000E-03    .77347        .72079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10004E-03    21.428        .34524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.5224        4.2778        .27121E-03   -1.5461    
   8  Prefactor     .10000E-03    12.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .58044        .44166        .48033E-03   -1.5556    
  10  Prefactor     .10000E-03    19.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    60.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.5907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.2999        .18539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.9330        13.267        .15238E-03   -1.5181    
  15  Prefactor     .10000E-03    4.8980        .18093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    11.669        .30983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.3959        2.9945        .11293E-03   -1.5289    
  18  Prefactor     2.8545        2.8953        .14002E-03   -1.5370    
  19  Prefactor     .10000E-03    8.5747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .73113        2.7631        .24666E-03   -1.5537    
  21  Prefactor     13.100        11.133        .11070E-03   -1.4984    
  22  norm          1.8963        .75136        .43523E-04   -1.5433    
  23  norm          .10000E-03    22.282        .35325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.3258        2.3484        .12238E-03   -1.5403    
  25  Normalizat    1.1013        .18790        .24385E-03   -.89712    
  26  Prefactor     .86585        .14669        .22019E-03   -.97345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92904e-09
Minuit parameter uncertainties:
  1  8.24703
  2  4.80823e-05
  3  7.24055
  4  1.482e-06
  5  0.00178046
  6  0.000242229
  7  4.27863
  8  8.47315e-05
  9  0.441658
  10  0.000258503
  11  3.95852e-05
  12  3.05856e-06
  13  7.36689e-07
  14  13.2729
  15  4.97322e-06
  16  0.000127773
  17  2.99462
  18  2.89539
  19  6.78291e-05
  20  2.76355
  21  11.1344
  22  0.751368
  23  0.000559588
  24  2.34853
  25  0.188019
  26  0.146761
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  7.367e-07  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:  8.658e-01  1.468e-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.101e+00  1.880e-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: 5.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/460622/likelihoodResults_510710401_510969601_4FGL_J0824.9+3915_daily_bin1047.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) = 7120.64664452
delta logL = -0.00366785623191

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7120.64297645
delta logL = 2.12035956793e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7120.643     FROM MIGRAD    STATUS=FAILED        90 CALLS      251 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10112E-03    21.208        .18650E-02** at limit **
   2  Index         2.3500        8.8140        .50000        .60611E-04
   3  Normalizat    1.1013        .16621E-01    .24385E-03   -.79350E-04
   4  Prefactor     .86585        .13548E-01    .22019E-03   -.54421E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7120.643     FROM SIMPLEX   STATUS=PROGRESS     117 CALLS      368 TOTAL
                     EDM=   .69E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10042E-03    21.208        .15243E-03** at limit **
   2  Index         2.3486        8.8140        .45174E-03    .60611E-04
   3  Normalizat    1.1012        .16621E-01    .23033E-05   -.79350E-04
   4  Prefactor     .86584        .13548E-01    .26971E-05   -.54421E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7120.643     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      418 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.743        .37299E-02** at limit **
   2  Index         2.0633        8.8565        .50000        .13865E-06
   3  Normalizat    1.1013        .14746E-01    .97540E-05   -.63172E-04
   4  Prefactor     .86585        .12020E-01    .88074E-05   -.58861E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.06332
  Normalizat = 1.10125
  Prefactor  = 0.865848
 **********
 **   18 **HESSE 
 **********

 FCN=   7120.643     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      447 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    93.070        .74599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0633        5.0574        .50000       -.62776    
   3  Normalizat    1.1013        .36074E-01    .19508E-05   -.89712    
   4  Prefactor     .86585        .29399E-01    .17615E-05   -.97345    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.37131e-09
Minuit parameter uncertainties:
  1  5.08117e-05
  2  559.264
  3  0.0360745
  4  0.0293996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460622': 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) = 7120.64297334
delta logL = 3.32167383021e-06

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  5.081e-05  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.063e+00  5.593e+02  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:  8.658e-01  2.940e-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.101e+00  3.607e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/460622/cmap_HighResolution_510710401_510969601_4FGL_J0824.9+3915_daily_bin1047.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-03', job_status='DONE', photon_flux_upper_limit='5.86e-08', time_completed='2021-08-29 19:54:43.193239', job_id='460622', GAL2='0.87', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630292083.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='3.32e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1047' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:54:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 460622: <4FGL_J0824.9+3915_daily_bin1047> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin1047> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 19:40:22 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 19:40:24 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:40:24 2021
Terminated at Sun Aug 29 19:54:43 2021
Results reported at Sun Aug 29 19:54:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin1047 126.236 39.2574 510710401 510969601 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 :                                   829.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            861 sec.

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

