/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 8 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7529
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1023.1+3949_daily_bin674
RA = 155.788, Dec = 39.8226
tmin = 414028801, tmax = 414288001
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='835812', job_status='RUN', time_executed='2021-09-01 19:16:08.301279', time_epoch_executed='1630548968.3' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/835812

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/835812/ft1_4FGL_J1023.1+3949_daily_bin674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/835812/ft2_4FGL_J1023.1+3949_daily_bin674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/835812/ft1_4FGL_J1023.1+3949_daily_bin674.fits outfile=/scratch/kocevski/835812/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin674.fits ra=155.788 dec=39.8226 rad=12.0 tmin=414028801.0 tmax=414288001.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 6.43
user 4.99
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/835812/ft2_4FGL_J1023.1+3949_daily_bin674.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/835812/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin674.fits evtable="EVENTS" outfile="/scratch/kocevski/835812/ft1_filtered_4FGL_J1023.1+3949_daily_bin674.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/835812/ft1_filtered_4FGL_J1023.1+3949_daily_bin674.fits" evtable="EVENTS" scfile=/scratch/kocevski/835812/ft2_4FGL_J1023.1+3949_daily_bin674.fits sctable="SC_DATA" outfile=/scratch/kocevski/835812/ltcube_414028801_414288001_4FGL_J1023.1+3949_daily_bin674.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/835812/ft2_4FGL_J1023.1+3949_daily_bin674.fits
.....................!
real 12.02
user 11.67
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/835812/ft1_filtered_4FGL_J1023.1+3949_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/835812/ft2_4FGL_J1023.1+3949_daily_bin674.fits sctable="SC_DATA" expcube=/scratch/kocevski/835812/ltcube_414028801_414288001_4FGL_J1023.1+3949_daily_bin674.fits outfile=/scratch/kocevski/835812/expmap_414028801_414288001_4FGL_J1023.1+3949_daily_bin674.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/835812/ltcube_414028801_414288001_4FGL_J1023.1+3949_daily_bin674.fits
.....................!
real 191.22
user 186.50
sys 4.40

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/835812/ft1_filtered_4FGL_J1023.1+3949_daily_bin674.fits scfile=/scratch/kocevski/835812/ft2_4FGL_J1023.1+3949_daily_bin674.fits outfile=/scratch/kocevski/835812/cmap_414028801_414288001_4FGL_J1023.1+3949_daily_bin674.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/835812/ft1_filtered_4FGL_J1023.1+3949_daily_bin674.fits scfile=/scratch/kocevski/835812/ft2_4FGL_J1023.1+3949_daily_bin674.fits outfile=/scratch/kocevski/835812/cmap_HighResolution_414028801_414288001_4FGL_J1023.1+3949_daily_bin674.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/835812/ft1_filtered_4FGL_J1023.1+3949_daily_bin674.fits', '/scratch/kocevski/835812/ft2_4FGL_J1023.1+3949_daily_bin674.fits', expMap='/scratch/kocevski/835812/expmap_414028801_414288001_4FGL_J1023.1+3949_daily_bin674.fits', expCube='/scratch/kocevski/835812/ltcube_414028801_414288001_4FGL_J1023.1+3949_daily_bin674.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/835812/Model_4FGL_J1023.1+3949_daily_bin674.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/835812/ft1_filtered_4FGL_J1023.1+3949_daily_bin674.fits
Spacecraft file(s): /scratch/kocevski/835812/ft2_4FGL_J1023.1+3949_daily_bin674.fits
Exposure map: /scratch/kocevski/835812/expmap_414028801_414288001_4FGL_J1023.1+3949_daily_bin674.fits
Exposure cube: /scratch/kocevski/835812/ltcube_414028801_414288001_4FGL_J1023.1+3949_daily_bin674.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/835812/Model_4FGL_J1023.1+3949_daily_bin674.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) = 5955.15997893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10195E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .32125       1.0000         .10000E-03   10000.    
     3 'norm      '    .10302E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13085E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.355       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.1765       1.0000         .10000E-03   10000.    
     7 'norm      '    .36988E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.992       1.0000         .10000E-03   10000.    
    12 'norm      '    26.003       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.2239       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.107       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3930       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .59173E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11198E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.238       1.0000         .10000E-03   10000.    
    22 'Prefactor '    53.284       1.0000         .10000E-03   10000.    
    23 'norm      '    2.7194       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.5541       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .83918       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2851       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=   5955.144     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     3522 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.3197       -.78946E-08** at limit **
   2  Prefactor     .32315        1.6879        .35885E-06    .37279E-05
   3  norm          .10000E-03    10.088       -.12134E-06** at limit **
   4  Prefactor     .10000E-03    26.450        .27640E-06** at limit **
   5  Prefactor     21.347        30.569        .57690E-06    .31373E-04
   6  Prefactor     7.1800        11.359        .76469E-07    .10749E-04
   7  norm          .10004E-03    12.902       -.52755E-05** at limit **
   8  Prefactor     .10000E-03    3.5735       -.53686E-07** at limit **
   9  Prefactor     .10000E-03    2.0370       -.50482E-07** at limit **
  10  Prefactor     .10000E-03    1.3526       -.62663E-08** at limit **
  11  Prefactor     34.003        27.442       -.39803E-06   -.65457E-05
  12  norm          26.000        5.1682       -.42124E-08    .23317E-03
  13  Prefactor     .10000E-03    2.0796        .18737E-07** at limit **
  14  norm          3.2223        6.9849        .18780E-05    .58408E-03
  15  Prefactor     .10000E-03    22.508       -.11519E-05** at limit **
  16  Prefactor     11.029        32.416        .16324E-05    .12553E-03
  17  Prefactor     2.3916        4.4843        .76302E-07    .13439E-03
  18  Prefactor     .10005E-03    4.2805       -.92558E-06** at limit **
  19  Prefactor     .10000E-03    26.966        .10768E-05** at limit **
  20  Prefactor     .10000E-03    95.189       -.21668E-05** at limit **
  21  Prefactor     24.241        22.510       -.49323E-07    .13484E-05
  22  Prefactor     53.382        104.77       -.10207E-04   -.12732E-03
  23  norm          2.7194        .46734        .13293E-07    .22035E-03
  24  Prefactor     .10000E-03    4.8743       -.59701E-07** at limit **
  25  Prefactor     .10000E-03    4.6887        .69143E-07** at limit **
  26  norm          2.5567        11.440        .30047E-06    .21957E-04
  27  Normalizat    .83973        .18181       -.13547E-05    .47362E-05
  28  Prefactor     1.2843        .22369        .10403E-05    .11710E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.323148
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.3473
  Prefactor  = 7.18004
  norm       = 0.000100043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.0034
  norm       = 25.9997
  Prefactor  = 0.0001
  norm       = 3.22228
  Prefactor  = 0.0001
  Prefactor  = 11.0286
  Prefactor  = 2.39162
  Prefactor  = 0.000100046
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 24.2414
  Prefactor  = 53.3818
  norm       = 2.71936
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.55668
  Normalizat = 0.839728
  Prefactor  = 1.28425
 **********
 **   18 **HESSE 
 **********

 FCN=   5955.144     FROM HESSE     STATUS=OK           525 CALLS     4047 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.3684        .17378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .32315        3.0950        .19157E-02   -1.5594    
   3  norm          .10000E-03    10.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.347        30.565        .86674E-04   -1.4784    
   6  Prefactor     7.1800        11.349        .14973E-03   -1.5172    
   7  norm          .10004E-03    20.470        .37699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.6313        .14242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.0654        .10748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.3623        .87609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     34.003        27.479        .68732E-04   -1.4541    
  12  norm          26.000        5.1646        .75633E-04   -1.4688    
  13  Prefactor     .10000E-03    2.1087        .10862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.2223        7.1425        .11281E-02   -1.5349    
  15  Prefactor     .10000E-03    22.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.029        29.903        .12021E-03   -1.5044    
  17  Prefactor     2.3916        4.4491        .20947E-03   -1.5399    
  18  Prefactor     .10005E-03    47.778        .26044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    27.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    95.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.241        22.513        .81364E-04   -1.4723    
  22  Prefactor     53.382        107.52        .27473E-03   -1.4245    
  23  norm          2.7194        .46774        .21119E-04   -1.5378    
  24  Prefactor     .10000E-03    4.8785        .16637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.6905        .16320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.5567        11.410        .25547E-03   -1.5388    
  27  Normalizat    .83973        .21156        .26370E-03   -.98612    
  28  Prefactor     1.2843        .26343        .28253E-03   -.83776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99769e-09
Minuit parameter uncertainties:
  1  3.60217e-06
  2  1.99997
  3  1.65732e-05
  4  7.60914e-06
  5  30.5876
  6  11.3523
  7  0.00188088
  8  1.03554e-06
  9  2.38697e-06
  10  6.69385e-08
  11  27.4891
  12  5.16466
  13  1.69257e-06
  14  7.14435
  15  0.000131235
  16  29.9435
  17  4.44975
  18  0.00297628
  19  0.000168218
  20  0.000454575
  21  22.5212
  22  107.912
  23  0.467745
  24  1.11705e-06
  25  4.82752e-06
  26  10.8054
  27  0.211772
  28  0.2637
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  3.222e+00  7.144e+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

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.284e+00  2.637e-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:  8.397e-01  2.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.28
Ra Dec: 155.788 39.823
Photon Flux Upper Limit: 6.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/835812/likelihoodResults_414028801_414288001_4FGL_J1023.1+3949_daily_bin674.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) = 5954.98568789
delta logL = 0.158492315726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5954.98247585
delta logL = 0.161704356161

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6748       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5646       1.0000          .0000       5.0000    
     3 'Normalizat'    .84671       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2755       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.

 FCN=   5954.982     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      203 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6748        6.1815        .52675E-02   -.14857E-02
   2  alpha         1.5651        .77162        .45562       -.32022E-04
   3  Normalizat    .84672        .17012        .44217E-01    .15014E-04
   4  Prefactor     1.2755        .22138        .64041E-01    .58245E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.6748
  alpha      = 1.56506
  Normalizat = 0.846721
  Prefactor  = 1.27548
 **********
 **   18 **HESSE 
 **********

 FCN=   5954.982     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6748        6.4169        .21070E-03   -1.5325    
   2  alpha         1.5651        .97863        .24833E-01   -.38329    
   3  Normalizat    .84672        .20082        .26269E-03   -.98358    
   4  Prefactor     1.2755        .26119        .28325E-03   -.84039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23959e-09
Minuit parameter uncertainties:
  1  6.41809
  2  1.0103
  3  0.200993
  4  0.26146
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/835812': 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) = 5954.98247572
delta logL = 0.161704482278

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  3.675e+00  6.418e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  1.565e+00  1.010e+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.275e+00  2.615e-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:  8.467e-01  2.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
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/835812/cmap_HighResolution_414028801_414288001_4FGL_J1023.1+3949_daily_bin674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.43e-05', job_status='DONE', photon_flux_upper_limit='6.96e-08', time_completed='2021-09-01 19:30:30.854020', job_id='835812', GAL2='1.28', fit_tolerance='1e-08', EG2='0.85', EG='0.84', time_epoch_completed='1630549830.85', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='1.62e-01', ts2='0.61', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='674' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:30:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 835812: <4FGL_J1023.1+3949_daily_bin674> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin674> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 19:15:51 2021
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:15:53 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:15:53 2021
Terminated at Wed Sep  1 19:30:31 2021
Results reported at Wed Sep  1 19:30:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin674 155.788 39.8226 414028801 414288001 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 :                                   856.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            880 sec.

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

