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


Performing analysis on: 4FGL_J1023.7+0038_daily_bin56
RA = 155.945, Dec = 0.6499
tmin = 253843201, tmax = 254102401
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='841384', job_status='RUN', time_executed='2021-09-01 19:41:52.046857', time_epoch_executed='1630550512.05' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/841384

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/841384/ft1_4FGL_J1023.7+0038_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/841384/ft2_4FGL_J1023.7+0038_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/841384/ft1_4FGL_J1023.7+0038_daily_bin56.fits outfile=/scratch/kocevski/841384/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin56.fits ra=155.945 dec=0.6499 rad=12.0 tmin=253843201.0 tmax=254102401.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.48
user 1.30
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/841384/ft2_4FGL_J1023.7+0038_daily_bin56.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/841384/ft2_4FGL_J1023.7+0038_daily_bin56.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/841384/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin56.fits evtable="EVENTS" outfile="/scratch/kocevski/841384/ft1_filtered_4FGL_J1023.7+0038_daily_bin56.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/841384/ft1_filtered_4FGL_J1023.7+0038_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/841384/ft2_4FGL_J1023.7+0038_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/841384/ltcube_253843201_254102401_4FGL_J1023.7+0038_daily_bin56.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/841384/ft2_4FGL_J1023.7+0038_daily_bin56.fits
.....................!
real 14.22
user 13.91
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/841384/ft1_filtered_4FGL_J1023.7+0038_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/841384/ft2_4FGL_J1023.7+0038_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/841384/ltcube_253843201_254102401_4FGL_J1023.7+0038_daily_bin56.fits outfile=/scratch/kocevski/841384/expmap_253843201_254102401_4FGL_J1023.7+0038_daily_bin56.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/841384/ltcube_253843201_254102401_4FGL_J1023.7+0038_daily_bin56.fits
.....................!
real 192.02
user 186.58
sys 4.88

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

Setting source of interest to:
4FGL J1023.7+0038 @ 155.945 0.6499

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/841384/ft1_filtered_4FGL_J1023.7+0038_daily_bin56.fits scfile=/scratch/kocevski/841384/ft2_4FGL_J1023.7+0038_daily_bin56.fits outfile=/scratch/kocevski/841384/cmap_253843201_254102401_4FGL_J1023.7+0038_daily_bin56.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.945 yref=0.6499 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/841384/ft1_filtered_4FGL_J1023.7+0038_daily_bin56.fits scfile=/scratch/kocevski/841384/ft2_4FGL_J1023.7+0038_daily_bin56.fits outfile=/scratch/kocevski/841384/cmap_HighResolution_253843201_254102401_4FGL_J1023.7+0038_daily_bin56.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.945 yref=0.6499 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/841384/ft1_filtered_4FGL_J1023.7+0038_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/841384/ft2_4FGL_J1023.7+0038_daily_bin56.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/841384/Model_4FGL_J1023.7+0038_daily_bin56.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/841384/ft1_filtered_4FGL_J1023.7+0038_daily_bin56.fits.....................!
real 62.68
user 61.29
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/841384/ft1_filtered_4FGL_J1023.7+0038_daily_bin56.fits', '/scratch/kocevski/841384/ft2_4FGL_J1023.7+0038_daily_bin56.fits', expMap='/scratch/kocevski/841384/expmap_253843201_254102401_4FGL_J1023.7+0038_daily_bin56.fits', expCube='/scratch/kocevski/841384/ltcube_253843201_254102401_4FGL_J1023.7+0038_daily_bin56.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/841384/Model_4FGL_J1023.7+0038_daily_bin56.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1023.7+0038'

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  2.061e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  2.233e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
216         beta:  1.811e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
217           Eb:  5.178e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/841384/ft1_filtered_4FGL_J1023.7+0038_daily_bin56.fits
Spacecraft file(s): /scratch/kocevski/841384/ft2_4FGL_J1023.7+0038_daily_bin56.fits
Exposure map: /scratch/kocevski/841384/expmap_253843201_254102401_4FGL_J1023.7+0038_daily_bin56.fits
Exposure cube: /scratch/kocevski/841384/ltcube_253843201_254102401_4FGL_J1023.7+0038_daily_bin56.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/841384/Model_4FGL_J1023.7+0038_daily_bin56.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) = 6480.6870801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10269       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.1708       1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.847       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.239       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .33037       1.0000         .10000E-03   10000.    
     8 'Prefactor '    150.09       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7977       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .33213E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .98828E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.711       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2994       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .86087       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6480.681     FROM MIGRAD    STATUS=CONVERGED     88 CALLS     1402 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10221        1.0195        .78902E-05    .50932E-03
   2  Prefactor     7.1730        1.5290        .25523E-05   -.28500E-02
   3  Prefactor     37.873        1.8970        .79888E-06    .60248E-02
   4  Prefactor     .10000E-03    16.661       -.27075E-06** at limit **
   5  norm          .10000E-03    6.2818        .44719E-05** at limit **
   6  Prefactor     25.251        2.4133        .26949E-05   -.85403E-03
   7  Prefactor     .10446E-03    1184.7       -.38129E-03** at limit **
   8  Prefactor     150.07        1.7054       -.66140E-07   -.18552E-01
   9  Prefactor     .10000E-03    9.9258       -.65981E-05** at limit **
  10  norm          .10000E-03    .35182       -.66782E-06** at limit **
  11  Prefactor     .10000E-03    3.3940        .28685E-05** at limit **
  12  Prefactor     6.7959        3.5887       -.12301E-05   -.65302E-04
  13  Prefactor     .10000E-03    14.540        .63410E-04** at limit **
  14  norm          .99255E-01    .92236       -.49804E-05    .16144E-02
  15  Prefactor     16.685        11.178        .95368E-05    .12135E-02
  16  Normalizat    1.2994        .23051       -.42045E-04   -.29847E-03
  17  Prefactor     .86088        .17654        .12882E-04   -.19256E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.102214
  Prefactor  = 7.173
  Prefactor  = 37.8726
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.251
  Prefactor  = 0.000104462
  Prefactor  = 150.071
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.79595
  Prefactor  = 0.000100004
  norm       = 0.0992549
  Prefactor  = 16.6851
  Normalizat = 1.29935
  Prefactor  = 0.860881
 **********
 **   18 **HESSE 
 **********

 FCN=   6480.681     FROM HESSE     STATUS=OK           277 CALLS     1679 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10221        .49690        .17586E-01   -1.5644    
   2  Prefactor     7.1730        8.3738        .37449E-02   -1.5172    
   3  Prefactor     37.873        44.673        .16287E-02   -1.4476    
   4  Prefactor     .10000E-03    16.729        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.2902        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.251        14.057        .19934E-02   -1.4703    
   7  Prefactor     .10446E-03    60.895        .14980       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     150.07        76.921        .82245E-03   -1.3252    
   9  Prefactor     .10000E-03    9.9505        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .34915        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.3212        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.7959        3.6049        .38473E-02   -1.5187    
  13  Prefactor     .10000E-03    4.7108        .56091E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .99255E-01    .63075        .17003E-01   -1.5645    
  15  Prefactor     16.685        12.290        .24494E-02   -1.4891    
  16  Normalizat    1.2994        .20263        .58202E-01   -.83586    
  17  Prefactor     .86088        .14981        .44504E-01   -.97522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55331e-06
Minuit parameter uncertainties:
  1  0.450521
  2  8.3752
  3  44.712
  4  0.000140766
  5  3.37887e-05
  6  14.0591
  7  0.0330008
  8  76.9722
  9  0.000203868
  10  2.46003e-07
  11  3.62516e-05
  12  3.60501
  13  0.000277934
  14  0.500176
  15  12.2922
  16  0.202755
  17  0.149881
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  1.000e-04  2.460e-07  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  2.233e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
216         beta:  1.811e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
217           Eb:  5.178e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
496    Prefactor:  8.609e-01  1.499e-01  0.000e+00  1.000e+01 ( 1.000e+00)
497        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
498        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  1.299e+00  2.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 155.945 0.650
Photon Flux Upper Limit: 4.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/841384/likelihoodResults_253843201_254102401_4FGL_J1023.7+0038_daily_bin56.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) = 6480.68148632
delta logL = -0.000105955403342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6480.68138233
delta logL = -1.97138160729e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2461       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2994       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86100       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4990E+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=   6480.681     FROM MIGRAD    STATUS=FAILED        88 CALLS      232 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    40.249        .46547E-02** at limit **
   2  alpha         3.0651        2.9575        .16569       -.15335E-06
   3  Normalizat    1.2994        .58791E-01    .25739E-03    .73337E-03
   4  Prefactor     .86088        .46153E-01    .24296E-03    .75641E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6480.681     FROM SIMPLEX   STATUS=UNCHANGED    198 CALLS      430 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    40.249        .10155E-03** at limit **
   2  alpha         3.0651        2.9575        .14350E-05   -.15335E-06
   3  Normalizat    1.2994        .58791E-01    .59305E-07    .73337E-03
   4  Prefactor     .86088        .46153E-01    .14820E-07    .75641E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6480.681     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      458 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .38907        .48611E-03** at limit **
   2  alpha         3.0667        3.8042        .66277E-02   -.56263E-07
   3  Normalizat    1.2994        .22245        .51478E-04    .73603E-03
   4  Prefactor     .86088        .17589        .48592E-04    .75822E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.06667
  Normalizat = 1.29936
  Prefactor  = 0.860882
 **********
 **   18 **HESSE 
 **********

 FCN=   6480.681     FROM HESSE     STATUS=OK            23 CALLS      481 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .38912        .97222E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.0667        3.8864        .13255E-02    .22865    
   3  Normalizat    1.2994        .22247        .10296E-04   -.83586    
   4  Prefactor     .86088        .17591        .97185E-05   -.97522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.49281e-10
Minuit parameter uncertainties:
  1  3.65296e-06
  2  204.463
  3  0.22263
  4  0.176026
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/841384': 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) = 6480.68136688
delta logL = 1.34826168505e-05

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  1.000e-04  3.653e-06  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  3.067e+00  2.045e+02  0.000e+00  5.000e+00 ( 1.000e+00)
216         beta:  1.811e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
217           Eb:  5.178e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
496    Prefactor:  8.609e-01  1.760e-01  0.000e+00  1.000e+01 ( 1.000e+00)
497        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
498        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  1.299e+00  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 155.945 0.650

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/841384/cmap_HighResolution_253843201_254102401_4FGL_J1023.7+0038_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.63e-05', job_status='DONE', photon_flux_upper_limit='4.76e-08', time_completed='2021-09-01 19:50:44.462824', job_id='841384', GAL2='0.86', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1630551044.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.35e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='56' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:50:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 841384: <4FGL_J1023.7+0038_daily_bin56> in cluster <slac> Done

Job <4FGL_J1023.7+0038_daily_bin56> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 19:35:45 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:40:51 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:40:51 2021
Terminated at Wed Sep  1 19:50:44 2021
Results reported at Wed Sep  1 19:50:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin56 155.945 0.6499 253843201 254102401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1023.7+0038 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   532.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   594 sec.
    Turnaround time :                            899 sec.

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

