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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin70
RA = 155.788, Dec = 39.8226
tmin = 257472001, tmax = 257731201
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='832852', job_status='RUN', time_executed='2021-09-01 19:06:10.145946', time_epoch_executed='1630548370.15' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='70'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/832852

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/832852/ft1_4FGL_J1023.1+3949_daily_bin70.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/832852/ft2_4FGL_J1023.1+3949_daily_bin70.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/832852/ft1_4FGL_J1023.1+3949_daily_bin70.fits outfile=/scratch/kocevski/832852/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin70.fits ra=155.788 dec=39.8226 rad=12.0 tmin=257472001.0 tmax=257731201.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 2.04
user 1.81
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/832852/ft2_4FGL_J1023.1+3949_daily_bin70.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/832852/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin70.fits evtable="EVENTS" outfile="/scratch/kocevski/832852/ft1_filtered_4FGL_J1023.1+3949_daily_bin70.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.60
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/832852/ft1_filtered_4FGL_J1023.1+3949_daily_bin70.fits" evtable="EVENTS" scfile=/scratch/kocevski/832852/ft2_4FGL_J1023.1+3949_daily_bin70.fits sctable="SC_DATA" outfile=/scratch/kocevski/832852/ltcube_257472001_257731201_4FGL_J1023.1+3949_daily_bin70.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/832852/ft2_4FGL_J1023.1+3949_daily_bin70.fits
.....................!
real 13.41
user 12.89
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/832852/ft1_filtered_4FGL_J1023.1+3949_daily_bin70.fits evtable="EVENTS" scfile=/scratch/kocevski/832852/ft2_4FGL_J1023.1+3949_daily_bin70.fits sctable="SC_DATA" expcube=/scratch/kocevski/832852/ltcube_257472001_257731201_4FGL_J1023.1+3949_daily_bin70.fits outfile=/scratch/kocevski/832852/expmap_257472001_257731201_4FGL_J1023.1+3949_daily_bin70.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/832852/ltcube_257472001_257731201_4FGL_J1023.1+3949_daily_bin70.fits
.....................!
real 190.88
user 185.84
sys 3.90

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/832852/ft1_filtered_4FGL_J1023.1+3949_daily_bin70.fits scfile=/scratch/kocevski/832852/ft2_4FGL_J1023.1+3949_daily_bin70.fits outfile=/scratch/kocevski/832852/cmap_257472001_257731201_4FGL_J1023.1+3949_daily_bin70.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1335       1.0000         .10000E-03   10000.    
     3 'norm      '    .13537E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25452E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7550       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19908E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.6344       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3771       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.4208       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .13074E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.816       1.0000         .10000E-03   10000.    
    16 'Prefactor '    44.230       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6051       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.855       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .95757       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    19.947       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0157       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .82217       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=   6100.049     FROM MIGRAD    STATUS=CONVERGED    678 CALLS     3469 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.7757       -.46008E-07** at limit **
   2  Prefactor     1.1331        1.6419       -.78552E-07   -.11919E-03
   3  norm          .10000E-03    24.485       -.31641E-05** at limit **
   4  Prefactor     .10001E-03    55.421       -.53914E-05** at limit **
   5  Prefactor     4.7197        59.651        .10581E-04    .11923E-04
   6  Prefactor     .10004E-03    6.8901       -.23835E-05** at limit **
   7  norm          .10000E-03    5.8424        .22693E-07** at limit **
   8  Prefactor     5.6333        6.9044        .20179E-06    .58676E-05
   9  Prefactor     .10000E-03    1.3640        .87031E-07** at limit **
  10  Prefactor     2.3776        3.1486        .14504E-05    .27406E-03
  11  Prefactor     .10000E-03    30.992       -.11782E-05** at limit **
  12  norm          7.4204        3.5630       -.31699E-07    .21370E-04
  13  Prefactor     .10000E-03    2.5400        .54149E-06** at limit **
  14  norm          .10000E-03    11.307       -.35310E-06** at limit **
  15  Prefactor     17.801        31.578        .21712E-05   -.23947E-04
  16  Prefactor     44.216        29.485        .10467E-05   -.14047E-04
  17  Prefactor     6.6055        4.4780        .13878E-06    .25289E-04
  18  Prefactor     .10000E-03    3.5812       -.50911E-06** at limit **
  19  Prefactor     .10000E-03    12.886       -.38141E-06** at limit **
  20  Prefactor     .10000E-03    35.153       -.62800E-06** at limit **
  21  Prefactor     12.853        16.635        .27226E-06   -.83032E-05
  22  Prefactor     .10000E-03    39.257        .95672E-06** at limit **
  23  norm          .95747        .27891        .97204E-08   -.20635E-03
  24  Prefactor     .10000E-03    10.477        .42187E-06** at limit **
  25  Prefactor     .10000E-03    4.1836        .89075E-08** at limit **
  26  norm          19.938        14.910        .25556E-06   -.25665E-04
  27  Normalizat    1.0158        .15821       -.87335E-06    .13253E-03
  28  Prefactor     .82208        .18962       -.11411E-05    .36347E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1.13308
  norm       = 0.000100003
  Prefactor  = 0.000100009
  Prefactor  = 4.71973
  Prefactor  = 0.00010004
  norm       = 0.0001
  Prefactor  = 5.63331
  Prefactor  = 0.0001
  Prefactor  = 2.3776
  Prefactor  = 0.0001
  norm       = 7.42041
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.8008
  Prefactor  = 44.2158
  Prefactor  = 6.60552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8529
  Prefactor  = 0.0001
  norm       = 0.957467
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.9385
  Normalizat = 1.01583
  Prefactor  = 0.822079
 **********
 **   18 **HESSE 
 **********

 FCN=   6100.049     FROM HESSE     STATUS=OK           515 CALLS     3984 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.7954        .14818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1331        1.6000        .11663E-03   -1.5495    
   3  norm          .10000E-03    25.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    57.787        .42916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.7197        61.096        .18452E-03   -1.5273    
   6  Prefactor     .10004E-03    20.748        .34903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.8696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.6333        6.9096        .16924E-03   -1.5233    
   9  Prefactor     .10000E-03    1.3879        .89030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3776        3.2479        .77747E-03   -1.5400    
  11  Prefactor     .10000E-03    31.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.4204        3.5594        .97443E-04   -1.5163    
  13  Prefactor     .10000E-03    2.6133        .12192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    11.638        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.801        31.500        .94889E-04   -1.4864    
  16  Prefactor     44.216        29.303        .60282E-04   -1.4377    
  17  Prefactor     6.6055        4.4775        .12914E-03   -1.5194    
  18  Prefactor     .10000E-03    3.6582        .28738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.853        16.629        .11172E-03   -1.4991    
  22  Prefactor     .10000E-03    39.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .95747        .27923        .21490E-04   -1.5512    
  24  Prefactor     .10000E-03    10.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.1852        .15601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          19.938        14.890        .89680E-04   -1.4815    
  27  Normalizat    1.0158        .18800        .21423E-03   -.92502    
  28  Prefactor     .82208        .22469        .29317E-03   -.98920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2287e-09
Minuit parameter uncertainties:
  1  2.29947e-06
  2  1.60009
  3  0.000519374
  4  0.00145664
  5  34.0045
  6  0.00181569
  7  9.58806e-06
  8  6.91056
  9  6.6785e-06
  10  3.24818
  11  5.74794e-05
  12  3.55946
  13  9.33375e-07
  14  1.04548e-05
  15  31.5299
  16  29.3127
  17  4.47773
  18  3.49397e-05
  19  3.55281e-06
  20  4.11932e-05
  21  16.6349
  22  3.65897e-06
  23  0.279229
  24  2.61128e-06
  25  1.81831e-06
  26  14.8924
  27  0.188122
  28  0.224941
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  1.045e-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:  8.221e-01  2.249e-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.016e+00  1.881e-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: 5.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.93e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/832852/likelihoodResults_257472001_257731201_4FGL_J1023.1+3949_daily_bin70.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) = 6100.04952677
delta logL = -0.000410072709201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6100.04911711
delta logL = -4.10691427533e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12425E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3093       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0159       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82197       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=   6099.923     FROM MIGRAD    STATUS=CONVERGED    204 CALLS      359 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .48419        1.0400        .34637E-02   -.17590E-02
   2  alpha         4.5538        2.5340        .16522       -.57130E-05
   3  Normalizat    .98994        .18879        .21423E-03   -.31947E-04
   4  Prefactor     .84207        .22824        .29317E-03   -.22647E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.484191
  alpha      = 4.55377
  Normalizat = 0.989938
  Prefactor  = 0.842074
 **********
 **   18 **HESSE 
 **********

 FCN=   6099.923     FROM HESSE     STATUS=OK            27 CALLS      386 TOTAL
                     EDM=   .50E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .48419        2.3951        .10673E-03   -1.5847    
   2  alpha         4.5538        3.7263        .66086E-02    2.1775    
   3  Normalizat    .98994        .18634        .85692E-05   -.93368    
   4  Prefactor     .84207        .22719        .11727E-04   -.98196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04107e-12
Minuit parameter uncertainties:
  1  2.15367
  2  3.33246
  3  0.186463
  4  0.227447
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/832852': 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) = 6099.92344295
delta logL = 0.125673745033

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  4.842e-01  2.154e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  4.554e+00  3.332e+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:  8.421e-01  2.274e-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:  9.899e-01  1.865e-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/832852/cmap_HighResolution_257472001_257731201_4FGL_J1023.1+3949_daily_bin70.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.93e-05', job_status='DONE', photon_flux_upper_limit='5.53e-08', time_completed='2021-09-01 19:20:07.473787', job_id='832852', GAL2='0.84', fit_tolerance='1e-08', EG2='0.99', EG='1.02', time_epoch_completed='1630549207.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.26e-01', ts2='0.28', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='70' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:20:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 832852: <4FGL_J1023.1+3949_daily_bin70> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin70> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 19:05:53 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:05:54 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:05:54 2021
Terminated at Wed Sep  1 19:20:08 2021
Results reported at Wed Sep  1 19:20:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin70 155.788 39.8226 257472001 257731201 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 :                                   832.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             359.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            855 sec.

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

