/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 = 7431
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1023.1+3949_daily_bin110
RA = 155.788, Dec = 39.8226
tmin = 267840001, tmax = 268099201
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='832920', job_status='RUN', time_executed='2021-09-01 19:06:14.623885', time_epoch_executed='1630548374.62' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/832920

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/832920/ft1_4FGL_J1023.1+3949_daily_bin110.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/832920/ft2_4FGL_J1023.1+3949_daily_bin110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/832920/ft1_4FGL_J1023.1+3949_daily_bin110.fits outfile=/scratch/kocevski/832920/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin110.fits ra=155.788 dec=39.8226 rad=12.0 tmin=267840001.0 tmax=268099201.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 1.57
user 1.31
sys 0.14

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/832920/ft1_filtered_4FGL_J1023.1+3949_daily_bin110.fits" evtable="EVENTS" scfile=/scratch/kocevski/832920/ft2_4FGL_J1023.1+3949_daily_bin110.fits sctable="SC_DATA" outfile=/scratch/kocevski/832920/ltcube_267840001_268099201_4FGL_J1023.1+3949_daily_bin110.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/832920/ft2_4FGL_J1023.1+3949_daily_bin110.fits
.....................!
real 12.67
user 12.32
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/832920/ft1_filtered_4FGL_J1023.1+3949_daily_bin110.fits evtable="EVENTS" scfile=/scratch/kocevski/832920/ft2_4FGL_J1023.1+3949_daily_bin110.fits sctable="SC_DATA" expcube=/scratch/kocevski/832920/ltcube_267840001_268099201_4FGL_J1023.1+3949_daily_bin110.fits outfile=/scratch/kocevski/832920/expmap_267840001_268099201_4FGL_J1023.1+3949_daily_bin110.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/832920/ltcube_267840001_268099201_4FGL_J1023.1+3949_daily_bin110.fits
.....................!
real 189.69
user 185.15
sys 4.10

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/832920/ft1_filtered_4FGL_J1023.1+3949_daily_bin110.fits scfile=/scratch/kocevski/832920/ft2_4FGL_J1023.1+3949_daily_bin110.fits outfile=/scratch/kocevski/832920/cmap_267840001_268099201_4FGL_J1023.1+3949_daily_bin110.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/832920/ft1_filtered_4FGL_J1023.1+3949_daily_bin110.fits scfile=/scratch/kocevski/832920/ft2_4FGL_J1023.1+3949_daily_bin110.fits outfile=/scratch/kocevski/832920/cmap_HighResolution_267840001_268099201_4FGL_J1023.1+3949_daily_bin110.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3484       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8418       1.0000         .10000E-03   10000.    
     3 'norm      '    8.2365       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10901E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.378       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .55544E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2333       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.0230       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6511       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13084E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1936       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    89.821       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    73.641       1.0000         .10000E-03   10000.    
    23 'norm      '    1.3360       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    23.822       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2125       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .74955       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=   4760.344     FROM MIGRAD    STATUS=CONVERGED    689 CALLS     3443 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3486        8.5622        .10471E-05    .78202E-04
   2  Prefactor     1.8420        1.8988        .25299E-07    .78211E-04
   3  norm          8.2411        16.442        .66303E-06    .84423E-04
   4  Prefactor     .10000E-03    33.343       -.16712E-05** at limit **
   5  Prefactor     26.376        34.455        .10427E-05    .75257E-04
   6  Prefactor     .10000E-03    8.1934       -.34519E-06** at limit **
   7  norm          .10000E-03    5.4663        .19065E-06** at limit **
   8  Prefactor     .10000E-03    2.5707        .62424E-08** at limit **
   9  Prefactor     3.2334        2.1359        .21028E-07   -.30460E-04
  10  Prefactor     .10000E-03    1.1682       -.14983E-07** at limit **
  11  Prefactor     .10000E-03    12.284        .49863E-06** at limit **
  12  norm          3.0229        2.5286        .46021E-07   -.18563E-04
  13  Prefactor     1.6518        3.8877       -.34409E-06   -.98235E-04
  14  norm          .10000E-03    7.2510        .34700E-06** at limit **
  15  Prefactor     .10000E-03    25.383        .16125E-05** at limit **
  16  Prefactor     .10000E-03    103.03        .12247E-05** at limit **
  17  Prefactor     .10000E-03    2.5683       -.42296E-08** at limit **
  18  Prefactor     3.1689        6.9206        .48026E-05   -.37850E-04
  19  Prefactor     .10000E-03    16.488       -.11569E-05** at limit **
  20  Prefactor     89.817        97.310        .72891E-06   -.65508E-05
  21  Prefactor     .10000E-03    20.653        .40885E-06** at limit **
  22  Prefactor     73.635        84.171        .99672E-06   -.96948E-05
  23  norm          1.3360        .36143        .17535E-07    .89297E-03
  24  Prefactor     .10000E-03    5.5512       -.20408E-06** at limit **
  25  Prefactor     .10000E-03    7.7562       -.49960E-06** at limit **
  26  norm          23.822        15.428        .12448E-06    .19235E-04
  27  Normalizat    1.2125        .19500       -.13596E-05   -.51856E-04
  28  Prefactor     .74963        .23363       -.32295E-06   -.88901E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.34861
  Prefactor  = 1.84198
  norm       = 8.24106
  Prefactor  = 0.0001
  Prefactor  = 26.3763
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.2334
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.02292
  Prefactor  = 1.65176
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.16889
  Prefactor  = 0.0001
  Prefactor  = 89.8169
  Prefactor  = 0.0001
  Prefactor  = 73.6346
  norm       = 1.336
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.8216
  Normalizat = 1.21247
  Prefactor  = 0.749634
 **********
 **   18 **HESSE 
 **********

 FCN=   4760.344     FROM HESSE     STATUS=OK           515 CALLS     3958 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3486        8.5513        .79652E-03   -1.5204    
   2  Prefactor     1.8420        1.9044        .93577E-04   -1.5437    
   3  norm          8.2411        16.456        .13969E-03   -1.5134    
   4  Prefactor     .10000E-03    33.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.376        34.525        .77999E-04   -1.4680    
   6  Prefactor     .10000E-03    38.694        .37918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.4808        .15755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.5743        .10803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.2334        2.1357        .79844E-04   -1.5348    
  10  Prefactor     .10000E-03    1.1699        .72709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.0229        2.5292        .97579E-04   -1.5360    
  13  Prefactor     1.6518        3.8514        .19667E-03   -1.5451    
  14  norm          .10000E-03    7.3264        .18132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    104.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.6182        .10793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.1689        6.9342        .11337E-02   -1.5352    
  19  Prefactor     .10000E-03    16.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     89.817        97.341        .21199E-03   -1.3810    
  21  Prefactor     .10000E-03    20.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     73.635        84.206        .46786E-04   -1.3990    
  23  norm          1.3360        .36196        .20893E-04   -1.5477    
  24  Prefactor     .10000E-03    5.5587        .15874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.7688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          23.822        15.425        .82070E-04   -1.4731    
  27  Normalizat    1.2125        .22372        .21258E-03   -.86218    
  28  Prefactor     .74963        .26943        .32640E-03   -1.0161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92524e-10
Minuit parameter uncertainties:
  1  8.55295
  2  1.9045
  3  16.465
  4  0.000127878
  5  34.5516
  6  0.000527869
  7  4.01328e-06
  8  1.09232e-06
  9  2.13578
  10  9.37771e-07
  11  3.07396e-05
  12  2.52932
  13  3.85202
  14  3.96847e-05
  15  0.000115692
  16  0.000509888
  17  1.39799e-06
  18  6.93594
  19  6.5208e-05
  20  97.5146
  21  1.73398e-05
  22  84.3427
  23  0.361964
  24  1.13085e-05
  25  2.5528e-05
  26  15.4273
  27  0.223897
  28  0.269901
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  3.968e-05  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:  7.496e-01  2.699e-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:  1.212e+00  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/832920/likelihoodResults_267840001_268099201_4FGL_J1023.1+3949_daily_bin110.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) = 4760.34451099
delta logL = -0.000649952803542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4760.34386104
delta logL = -3.52883944288e-10

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4760.344     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      241 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    29.256        .82273E-01** at limit **
   2  alpha         2.0186        3.3652        .16573       -.14748E-07
   3  Normalizat    1.2125        .11624E-01    .21258E-03    .45993E-05
   4  Prefactor     .74964        .14429E-01    .32640E-03    .48762E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.01865
  Normalizat = 1.21246
  Prefactor  = 0.749635
 **********
 **   18 **HESSE 
 **********

 FCN=   4760.344     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.7360        .28944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0186        3.5481        .66293E-02   -.19375    
   3  Normalizat    1.2125        .21605        .85032E-05   -.86219    
   4  Prefactor     .74964        .26795        .13056E-04   -1.0161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89758e-12
Minuit parameter uncertainties:
  1  4.49659e-06
  2  290.669
  3  0.216212
  4  0.268411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/832920': 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) = 4760.34386074
delta logL = 2.99608473142e-07

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  4.497e-06  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.019e+00  2.907e+02  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:  7.496e-01  2.684e-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:  1.212e+00  2.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/832920/cmap_HighResolution_267840001_268099201_4FGL_J1023.1+3949_daily_bin110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.14e-05', job_status='DONE', photon_flux_upper_limit='6.14e-08', time_completed='2021-09-01 19:18:09.960452', job_id='832920', GAL2='0.75', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630549089.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='3.00e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='110' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:18:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 832920: <4FGL_J1023.1+3949_daily_bin110> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin110> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 19:05:59 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:06:00 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:06:00 2021
Terminated at Wed Sep  1 19:18:10 2021
Results reported at Wed Sep  1 19:18:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin110 155.788 39.8226 267840001 268099201 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 :                                   713.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            731 sec.

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

