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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin1179
RA = 155.788, Dec = 39.8226
tmin = 544924801, tmax = 545184001
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='839557', job_status='RUN', time_executed='2021-09-01 19:32:53.887700', time_epoch_executed='1630549973.89' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='1179'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839557

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839557/ft1_4FGL_J1023.1+3949_daily_bin1179.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839557/ft2_4FGL_J1023.1+3949_daily_bin1179.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839557/ft1_4FGL_J1023.1+3949_daily_bin1179.fits outfile=/scratch/kocevski/839557/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1179.fits ra=155.788 dec=39.8226 rad=12.0 tmin=544924801.0 tmax=545184001.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 4.19
user 3.92
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/839557/ft2_4FGL_J1023.1+3949_daily_bin1179.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/839557/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin1179.fits evtable="EVENTS" outfile="/scratch/kocevski/839557/ft1_filtered_4FGL_J1023.1+3949_daily_bin1179.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.52
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839557/ft1_filtered_4FGL_J1023.1+3949_daily_bin1179.fits evtable="EVENTS" scfile=/scratch/kocevski/839557/ft2_4FGL_J1023.1+3949_daily_bin1179.fits sctable="SC_DATA" expcube=/scratch/kocevski/839557/ltcube_544924801_545184001_4FGL_J1023.1+3949_daily_bin1179.fits outfile=/scratch/kocevski/839557/expmap_544924801_545184001_4FGL_J1023.1+3949_daily_bin1179.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/839557/ltcube_544924801_545184001_4FGL_J1023.1+3949_daily_bin1179.fits
.....................!
real 194.11
user 188.18
sys 5.11

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/839557/ft1_filtered_4FGL_J1023.1+3949_daily_bin1179.fits scfile=/scratch/kocevski/839557/ft2_4FGL_J1023.1+3949_daily_bin1179.fits outfile=/scratch/kocevski/839557/cmap_544924801_545184001_4FGL_J1023.1+3949_daily_bin1179.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.39
sys 0.15

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/839557/ft1_filtered_4FGL_J1023.1+3949_daily_bin1179.fits', '/scratch/kocevski/839557/ft2_4FGL_J1023.1+3949_daily_bin1179.fits', expMap='/scratch/kocevski/839557/expmap_544924801_545184001_4FGL_J1023.1+3949_daily_bin1179.fits', expCube='/scratch/kocevski/839557/ltcube_544924801_545184001_4FGL_J1023.1+3949_daily_bin1179.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/839557/Model_4FGL_J1023.1+3949_daily_bin1179.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/839557/ft1_filtered_4FGL_J1023.1+3949_daily_bin1179.fits
Spacecraft file(s): /scratch/kocevski/839557/ft2_4FGL_J1023.1+3949_daily_bin1179.fits
Exposure map: /scratch/kocevski/839557/expmap_544924801_545184001_4FGL_J1023.1+3949_daily_bin1179.fits
Exposure cube: /scratch/kocevski/839557/ltcube_544924801_545184001_4FGL_J1023.1+3949_daily_bin1179.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/839557/Model_4FGL_J1023.1+3949_daily_bin1179.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 169.516170705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 168.84414113

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3766       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0663       1.0000         .10000E-03   10000.    
     3 'norm      '    1.9778       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7820       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.1186       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.767       1.0000         .10000E-03   10000.    
     7 'norm      '    6.8267       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2352       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14241E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7681       1.0000         .10000E-03   10000.    
    12 'norm      '    6.9652       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .24366E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .30029E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    137.27       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .94470E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .59014E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .61054       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.7450       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10665E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.0559       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.799       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .16756E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    4.2568       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .98482       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   168.8341     FROM MIGRAD    STATUS=CONVERGED    206 CALLS      379 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3766        1.0114         .0000         .0000    
   2  Prefactor     1.0663        1.2185         .0000         .0000    
   3  norm          1.9778        1.0362         .0000         .0000    
   4  Prefactor     2.7820        1.0171         .0000         .0000    
   5  Prefactor     6.4321        .95295       -.47385E-05    .23318E-02
   6  Prefactor     16.057        1.1221       -.87872E-04   -.43641E-04
   7  norm          6.8267        1.0027         .0000         .0000    
   8  Prefactor     1.2352        1.1226         .0000         .0000    
   9  Prefactor     .10000E-03    .20571       -.52268E-05** at limit **
  10  Prefactor     .10000E-03    .20571        .17049E-05** at limit **
  11  Prefactor     .71774E-03    .67584E-01   -.64347E-04** at limit **
  12  norm          6.9652        1.0026         .0000         .0000    
  13  Prefactor     .10000E-03    .20571        .24853E-06** at limit **
  14  norm          .10000E-03    .21032       -.64654E-05** at limit **
  15  Prefactor     142.60        1.0190        .95695E-05   -.10191E-01
  16  Prefactor     .10001E-03    .22490        .74024E-05** at limit **
  17  Prefactor     .10000E-03    .21687       -.17705E-04** at limit **
  18  Prefactor     .10000E-03    .20571        .20477E-04** at limit **
  19  Prefactor     .10000E-03    .34305       -.34113E-04** at limit **
  20  Prefactor     9.7450        1.0013         .0000         .0000    
  21  Prefactor     .10000E-03    .20571        .11746E-04** at limit **
  22  Prefactor     .39661E-02    .49967E-01   -.85463E-04   -.17921E-02
  23  norm          .10000E-03    .20571        .90677E-06** at limit **
  24  Prefactor     12.724        .96092        .60506E-05   -.30363E-04
  25  Prefactor     .10000E-03    .25963       -.23333E-04** at limit **
  26  norm          7.6548        1.3502        .25457E-04   -.37274E-05
  27  Normalizat    .10000E-01    .25505        .54648E-05** at limit **
  28  Prefactor     .96684        1.3140        .11595E-04    .55118E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.37659
  Prefactor  = 1.06631
  norm       = 1.97778
  Prefactor  = 2.78201
  Prefactor  = 6.43206
  Prefactor  = 16.0568
  norm       = 6.82667
  Prefactor  = 1.23522
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000717742
  norm       = 6.96518
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 142.599
  Prefactor  = 0.000100007
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.74504
  Prefactor  = 0.0001
  Prefactor  = 0.00396611
  norm       = 0.0001
  Prefactor  = 12.7238
  Prefactor  = 0.0001
  norm       = 7.65478
  Normalizat = 0.01
  Prefactor  = 0.966836
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   168.8341     FROM HESSE     STATUS=FAILED         9 CALLS      388 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          549.54        546.08         .0000       -1.5340    
   2  Prefactor     1.0663        1.2185         .0000       -1.5501    
   3  norm          1.9778        1.0362         .0000       -1.5427    
   4  Prefactor     2.7820        1.0171         .0000       -1.5374    
   5  Prefactor     6.4321        .95295       -.47385E-05   -1.5201    
   6  Prefactor     16.057        1.1221       -.87872E-04   -1.4906    
   7  norm          6.8267        1.0027         .0000       -1.5185    
   8  Prefactor     1.2352        1.1226         .0000       -1.5486    
   9  Prefactor     .10000E-03    .20571       -.52268E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .20571        .17049E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .71774E-03    .67584E-01   -.64347E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.9652        1.0026         .0000       -1.5180    
  13  Prefactor     .10000E-03    .20571        .24853E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .21032       -.64654E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     142.60        1.0190        .95695E-05   -1.3314    
  16  Prefactor     .10001E-03    .22490        .74024E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .21687       -.17705E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .20571        .20477E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .34305       -.34113E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.7450        1.0013         .0000       -1.5084    
  21  Prefactor     .10000E-03    .20571        .11746E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .39661E-02    .49967E-01   -.85463E-04   -1.5720    
  23  norm          .10000E-03    .20571        .90677E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.724        .96092        .60506E-05   -1.4994    
  25  Prefactor     .10000E-03    .25963       -.23333E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          7.6548        1.3502        .25457E-04   -1.5155    
  27  Normalizat    .10000E-01    .25505        .54648E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .96684        1.3140        .11595E-04   -.93843    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.9352e-10
Minuit parameter uncertainties:
  1  1.01141
  2  1.21855
  3  1.03618
  4  1.01714
  5  0.952952
  6  1.12213
  7  1.00271
  8  1.12262
  9  1.52482e-06
  10  5.48301e-08
  11  0.0129228
  12  1.0026
  13  5.78383e-07
  14  6.42731e-05
  15  1.01896
  16  7.88116e-05
  17  3.42872e-05
  18  3.79529e-06
  19  2.02503e-06
  20  1.00132
  21  3.21429e-06
  22  0.0277976
  23  2.49021e-07
  24  0.960924
  25  1.97238e-05
  26  1.35024
  27  2.79893e-07
  28  1.3617
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 168.834135351

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  6.427e-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:  9.668e-01  1.362e+00  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.000e-02  2.799e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 155.788 39.823
Photon Flux Upper Limit: 1.92e-06 ph cm-2 s-1
Energy Flux Upper Limit: 6.69e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/839557/likelihoodResults_544924801_545184001_4FGL_J1023.1+3949_daily_bin1179.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) = 168.834177156
delta logL = -4.18046148525e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 168.83413592
delta logL = -5.68143406099e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6528       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96683       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   168.8341     FROM MIGRAD    STATUS=FAILED        97 CALLS      264 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10006E-03    7800.9        .90684E-02** at limit **
   2  alpha         2.0550        3.4798        .19526        .41229E-08
   3  Normalizat    .10000E-01    .24770E-01    .16794E-02** at limit **
   4  Prefactor     .96684        .14131        .16201E-03   -.20174E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   168.8341     FROM SIMPLEX   STATUS=UNCHANGED    175 CALLS      439 TOTAL
                     EDM=   .94E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10006E-03    7800.9        .14088E-02** at limit **
   2  alpha         2.0550        3.4798        .26190E-06    .41229E-08
   3  Normalizat    .10000E-01    .24770E-01    .17772E-02** at limit **
   4  Prefactor     .96684        .14131        .54585E-09   -.20174E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   168.8341     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      467 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    117.48        .13672E-02** at limit **
   2  alpha         2.0713        2.6946        .78105E-02    .19104E-07
   3  Normalizat    .10000E-01    .17507        .33588E-03** at limit **
   4  Prefactor     .96684        .37575        .64806E-05   -.19736E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100018
  alpha      = 2.07127
  Normalizat = 0.01
  Prefactor  = 0.966836
 **********
 **   18 **HESSE 
 **********

 FCN=   168.8341     FROM HESSE     STATUS=OK            23 CALLS      490 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    115.33        .27343E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0713        3.2636        .15621E-02   -.17234    
   3  Normalizat    .10000E-01    .17507        .67177E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .96684        .37577        .12961E-05   -.93843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0911e-10
Minuit parameter uncertainties:
  1  0.00287296
  2  1638.83
  3  2.16657e-09
  4  0.376793
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839557': 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) = 168.834135344
delta logL = 7.17477632861e-09

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  2.873e-03  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.071e+00  1.639e+03  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:  9.668e-01  3.768e-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.000e-02  2.167e-09  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/839557/cmap_HighResolution_544924801_545184001_4FGL_J1023.1+3949_daily_bin1179.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.69e-04', job_status='DONE', photon_flux_upper_limit='1.92e-06', time_completed='2021-09-01 19:38:42.346862', job_id='839557', GAL2='0.97', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630550322.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.97', dlogl='7.17e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1179' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:38:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 839557: <4FGL_J1023.1+3949_daily_bin1179> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin1179> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 19:30:38 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:32:40 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:32:40 2021
Terminated at Wed Sep  1 19:38:43 2021
Results reported at Wed Sep  1 19:38:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin1179 155.788 39.8226 544924801 545184001 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 :                                   343.28 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             417.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   362 sec.
    Turnaround time :                            485 sec.

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

