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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1472
RA = 155.788, Dec = 39.8226
tmin = 620870401, tmax = 621129601
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='841124', job_status='RUN', time_executed='2021-09-01 19:40:07.779165', time_epoch_executed='1630550407.78' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1472'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/841124

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/841124/ft1_4FGL_J1023.1+3949_daily_bin1472.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/841124/ft2_4FGL_J1023.1+3949_daily_bin1472.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/841124/ft1_4FGL_J1023.1+3949_daily_bin1472.fits outfile=/scratch/kocevski/841124/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1472.fits ra=155.788 dec=39.8226 rad=12.0 tmin=620870401.0 tmax=621129601.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.37
user 3.05
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/841124/ft2_4FGL_J1023.1+3949_daily_bin1472.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/841124/ft2_4FGL_J1023.1+3949_daily_bin1472.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/841124/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1472.fits evtable="EVENTS" outfile="/scratch/kocevski/841124/ft1_filtered_4FGL_J1023.1+3949_daily_bin1472.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.51
user 0.37
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/841124/ft1_filtered_4FGL_J1023.1+3949_daily_bin1472.fits" evtable="EVENTS" scfile=/scratch/kocevski/841124/ft2_4FGL_J1023.1+3949_daily_bin1472.fits sctable="SC_DATA" outfile=/scratch/kocevski/841124/ltcube_620870401_621129601_4FGL_J1023.1+3949_daily_bin1472.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/841124/ft2_4FGL_J1023.1+3949_daily_bin1472.fits
.....................!
real 17.62
user 17.23
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/841124/ft1_filtered_4FGL_J1023.1+3949_daily_bin1472.fits evtable="EVENTS" scfile=/scratch/kocevski/841124/ft2_4FGL_J1023.1+3949_daily_bin1472.fits sctable="SC_DATA" expcube=/scratch/kocevski/841124/ltcube_620870401_621129601_4FGL_J1023.1+3949_daily_bin1472.fits outfile=/scratch/kocevski/841124/expmap_620870401_621129601_4FGL_J1023.1+3949_daily_bin1472.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/841124/ltcube_620870401_621129601_4FGL_J1023.1+3949_daily_bin1472.fits
.....................!
real 192.99
user 187.69
sys 4.60

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

Setting source of interest to:
4FGL J1023.1+3949 @ 155.788 39.8226

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/841124/ft1_filtered_4FGL_J1023.1+3949_daily_bin1472.fits scfile=/scratch/kocevski/841124/ft2_4FGL_J1023.1+3949_daily_bin1472.fits outfile=/scratch/kocevski/841124/cmap_620870401_621129601_4FGL_J1023.1+3949_daily_bin1472.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=155.788 yref=39.8226 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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/841124/ft1_filtered_4FGL_J1023.1+3949_daily_bin1472.fits scfile=/scratch/kocevski/841124/ft2_4FGL_J1023.1+3949_daily_bin1472.fits outfile=/scratch/kocevski/841124/cmap_HighResolution_620870401_621129601_4FGL_J1023.1+3949_daily_bin1472.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=155.788 yref=39.8226 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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/841124/ft1_filtered_4FGL_J1023.1+3949_daily_bin1472.fits evtable="EVENTS" scfile=/scratch/kocevski/841124/ft2_4FGL_J1023.1+3949_daily_bin1472.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/841124/Model_4FGL_J1023.1+3949_daily_bin1472.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/841124/ft1_filtered_4FGL_J1023.1+3949_daily_bin1472.fits......................!
real 22.69
user 21.37
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/841124/ft1_filtered_4FGL_J1023.1+3949_daily_bin1472.fits', '/scratch/kocevski/841124/ft2_4FGL_J1023.1+3949_daily_bin1472.fits', expMap='/scratch/kocevski/841124/expmap_620870401_621129601_4FGL_J1023.1+3949_daily_bin1472.fits', expCube='/scratch/kocevski/841124/ltcube_620870401_621129601_4FGL_J1023.1+3949_daily_bin1472.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/841124/Model_4FGL_J1023.1+3949_daily_bin1472.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1023.1+3949'

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  9.888e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.250e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
331         beta:  1.077e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  5.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/841124/ft1_filtered_4FGL_J1023.1+3949_daily_bin1472.fits
Spacecraft file(s): /scratch/kocevski/841124/ft2_4FGL_J1023.1+3949_daily_bin1472.fits
Exposure map: /scratch/kocevski/841124/expmap_620870401_621129601_4FGL_J1023.1+3949_daily_bin1472.fits
Exposure cube: /scratch/kocevski/841124/ltcube_620870401_621129601_4FGL_J1023.1+3949_daily_bin1472.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/841124/Model_4FGL_J1023.1+3949_daily_bin1472.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) = 1410.73315547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.173       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.5385       1.0000         .10000E-03   10000.    
     3 'norm      '    .12241E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    58.687       1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.050       1.0000         .10000E-03   10000.    
     6 'Prefactor '    76.811       1.0000         .10000E-03   10000.    
     7 'norm      '    6.6637       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.794       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.899       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    78.169       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10819E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14285E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.6251       1.0000         .10000E-03   10000.    
    24 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    26 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .32557       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0195       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1410.343     FROM MIGRAD    STATUS=CONVERGED    704 CALLS     3671 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.177        13.482        .58708E-05   -.15106E-05
   2  Prefactor     7.5381        5.0278       -.53322E-05    .91291E-04
   3  norm          .10000E-03    22.470        .29392E-07** at limit **
   4  Prefactor     59.013        76.630        .24843E-03    .16408E-03
   5  Prefactor     39.443        105.25       -.41375E-03    .24452E-04
   6  Prefactor     76.867        36.720       -.11831E-04   -.67351E-04
   7  norm          6.6692        19.208       -.16048E-04   -.93351E-04
   8  Prefactor     .10000E-03    2.7997       -.18879E-07** at limit **
   9  Prefactor     .10001E-03    7.6334        .14519E-05** at limit **
  10  Prefactor     .10000E-03    5.1045        .43467E-06** at limit **
  11  Prefactor     .10000E-03    30.083        .33630E-06** at limit **
  12  norm          10.795        5.0518       -.60015E-07    .72919E-04
  13  Prefactor     .10000E-03    3.4645        .21622E-06** at limit **
  14  norm          10.931        22.393        .19804E-04   -.31222E-05
  15  Prefactor     .10000E-03    89.190        .22853E-04** at limit **
  16  Prefactor     78.283        78.798       -.56084E-05   -.72797E-06
  17  Prefactor     .10000E-03    8.2597       -.32956E-06** at limit **
  18  Prefactor     .10000E-03    5.8227       -.43715E-09** at limit **
  19  Prefactor     .10000E-03    61.206       -.42626E-05** at limit **
  20  Prefactor     .10000E-03    186.30       -.23317E-03** at limit **
  21  Prefactor     .10000E-03    213.30        .97203E-04** at limit **
  22  Prefactor     .10000E-03    216.34        .13240E-03** at limit **
  23  norm          5.6298        5.8344       -.88522E-07    .93006E-05
  24  Prefactor    10000.0        881.16       -.32522E-03** at limit **
  25  Prefactor     .10000E-03    982.95        .41296E-03** at limit **
  26  norm          10000.        991.95       -.39989E-03** at limit **
  27  Normalizat    .32532        .38473        .79795E-05    .66400E-04
  28  Prefactor     1.0199        .42831        .12559E-05    .22732E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.1767
  Prefactor  = 7.53808
  norm       = 0.0001
  Prefactor  = 59.0132
  Prefactor  = 39.4425
  Prefactor  = 76.8667
  norm       = 6.66916
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.7949
  Prefactor  = 0.0001
  norm       = 10.9314
  Prefactor  = 0.0001
  Prefactor  = 78.2829
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.62981
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 10000
  Normalizat = 0.325324
  Prefactor  = 1.01987
 **********
 **   18 **HESSE 
 **********

 FCN=   1410.343     FROM HESSE     STATUS=OK           513 CALLS     4184 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.177        13.458        .12563E-03   -1.5070    
   2  Prefactor     7.5381        5.0179        .62647E-04   -1.5159    
   3  norm          .10000E-03    22.505        .17388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     59.013        76.346        .26185E-03   -1.4170    
   5  Prefactor     39.443        105.28        .63338E-04   -1.4451    
   6  Prefactor     76.867        36.445        .22909E-03   -1.3952    
   7  norm          6.6692        19.043        .15545E-03   -1.5191    
   8  Prefactor     .10000E-03    2.8011        .61368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    13.899        .20089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.1263        .82863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    30.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.795        5.0500        .56003E-04   -1.5051    
  13  Prefactor     .10000E-03    3.4657        .68276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.931        22.372        .12136E-03   -1.5047    
  15  Prefactor     .10000E-03    89.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     78.283        78.796        .45421E-04   -1.3936    
  17  Prefactor     .10000E-03    8.3745        .10540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.8231        .88520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    61.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    186.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    213.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    216.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.6298        5.8382        .90201E-04   -1.5233    
  24  Prefactor    10000.0        881.07        .20511E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    982.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          10000.        991.81        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .32532        .40081        .37419E-03   -1.2136    
  28  Prefactor     1.0199        .46236        .27223E-03   -.92070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.78255e-10
Minuit parameter uncertainties:
  1  13.4623
  2  5.01819
  3  1.93092e-06
  4  76.4732
  5  105.777
  6  36.4552
  7  19.0599
  8  1.35117e-05
  9  0.000554061
  10  7.2104e-05
  11  7.13364e-05
  12  5.05016
  13  1.90084e-05
  14  22.3887
  15  2.60188e-05
  16  78.901
  17  9.14256e-05
  18  4.86362e-06
  19  7.97481e-05
  20  2.2818e-05
  21  7.79189e-06
  22  3.53683e-05
  23  5.83882
  24  0.000136445
  25  0.000121918
  26  3.67902e-05
  27  0.404413
  28  0.464178
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.093e+01  2.239e+01  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.250e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
331         beta:  1.077e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  5.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.020e+00  4.642e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  3.253e-01  4.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.33
Ra Dec: 155.788 39.823
Photon Flux Upper Limit: 2.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.76e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/841124/likelihoodResults_620870401_621129601_4FGL_J1023.1+3949_daily_bin1472.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) = 1410.34032054
delta logL = 0.00302322754146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1410.3401919
delta logL = 0.00315186905982

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.283       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1351       1.0000          .0000       5.0000    
     3 'Normalizat'    .32668       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0183       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1410.340     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      227 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.283        20.118       -.47589E-06   -.43324E-04
   2  alpha         2.1352        1.1245        .35965E-05   -.23349E-05
   3  Normalizat    .32672        .33137       -.82953E-07   -.11130E-05
   4  Prefactor     1.0183        .41726        .10997E-06   -.30477E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 11.2833
  alpha      = 2.13516
  Normalizat = 0.326716
  Prefactor  = 1.01828
 **********
 **   18 **HESSE 
 **********

 FCN=   1410.340     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .98E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.283        23.070        .11927E-03   -1.5036    
   2  alpha         2.1352        1.3471        .18764E-01   -.14646    
   3  Normalizat    .32672        .36076        .37343E-03   -1.2128    
   4  Prefactor     1.0183        .45870        .27241E-03   -.92123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.76301e-12
Minuit parameter uncertainties:
  1  23.0878
  2  1.4246
  3  0.363364
  4  0.46048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/841124': 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) = 1410.3401919
delta logL = 0.00315187300771

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.128e+01  2.309e+01  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.135e+00  1.425e+00  0.000e+00  5.000e+00 ( 1.000e+00)
331         beta:  1.077e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  5.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.018e+00  4.605e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  3.267e-01  3.634e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
Ra Dec: 155.788 39.823

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/841124/cmap_HighResolution_620870401_621129601_4FGL_J1023.1+3949_daily_bin1472.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.76e-05', job_status='DONE', photon_flux_upper_limit='2.22e-07', time_completed='2021-09-01 19:49:10.807091', job_id='841124', GAL2='1.02', fit_tolerance='1e-08', EG2='0.33', EG='0.33', time_epoch_completed='1630550950.81', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='3.15e-03', ts2='0.33', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1472' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:49:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 841124: <4FGL_J1023.1+3949_daily_bin1472> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1472> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 19:35:25 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:36:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 19:36:55 2021
Terminated at Wed Sep  1 19:49:11 2021
Results reported at Wed Sep  1 19:49:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1472 155.788 39.8226 620870401 621129601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1023.1+3949 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   463.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             233.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            826 sec.

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

