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


Performing analysis on: 4FGL_J1023.7+0038_daily_bin666
RA = 155.945, Dec = 0.6499
tmin = 411955201, tmax = 412214401
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='845576', job_status='RUN', time_executed='2021-09-01 19:55:23.956576', time_epoch_executed='1630551323.96' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/845576

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/845576/ft1_4FGL_J1023.7+0038_daily_bin666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/845576/ft2_4FGL_J1023.7+0038_daily_bin666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/845576/ft1_4FGL_J1023.7+0038_daily_bin666.fits outfile=/scratch/kocevski/845576/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin666.fits ra=155.945 dec=0.6499 rad=12.0 tmin=411955201.0 tmax=412214401.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 5.60
user 5.33
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/845576/ft2_4FGL_J1023.7+0038_daily_bin666.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/845576/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin666.fits evtable="EVENTS" outfile="/scratch/kocevski/845576/ft1_filtered_4FGL_J1023.7+0038_daily_bin666.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/845576/ft1_filtered_4FGL_J1023.7+0038_daily_bin666.fits" evtable="EVENTS" scfile=/scratch/kocevski/845576/ft2_4FGL_J1023.7+0038_daily_bin666.fits sctable="SC_DATA" outfile=/scratch/kocevski/845576/ltcube_411955201_412214401_4FGL_J1023.7+0038_daily_bin666.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/845576/ft2_4FGL_J1023.7+0038_daily_bin666.fits
.....................!
real 15.36
user 14.98
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/845576/ft1_filtered_4FGL_J1023.7+0038_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/845576/ft2_4FGL_J1023.7+0038_daily_bin666.fits sctable="SC_DATA" expcube=/scratch/kocevski/845576/ltcube_411955201_412214401_4FGL_J1023.7+0038_daily_bin666.fits outfile=/scratch/kocevski/845576/expmap_411955201_412214401_4FGL_J1023.7+0038_daily_bin666.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/845576/ltcube_411955201_412214401_4FGL_J1023.7+0038_daily_bin666.fits
.....................!
real 190.67
user 186.49
sys 3.76

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/845576/ft1_filtered_4FGL_J1023.7+0038_daily_bin666.fits scfile=/scratch/kocevski/845576/ft2_4FGL_J1023.7+0038_daily_bin666.fits outfile=/scratch/kocevski/845576/cmap_411955201_412214401_4FGL_J1023.7+0038_daily_bin666.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/845576/ft1_filtered_4FGL_J1023.7+0038_daily_bin666.fits scfile=/scratch/kocevski/845576/ft2_4FGL_J1023.7+0038_daily_bin666.fits outfile=/scratch/kocevski/845576/cmap_HighResolution_411955201_412214401_4FGL_J1023.7+0038_daily_bin666.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/845576/ft1_filtered_4FGL_J1023.7+0038_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/845576/ft2_4FGL_J1023.7+0038_daily_bin666.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/845576/Model_4FGL_J1023.7+0038_daily_bin666.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/845576/ft1_filtered_4FGL_J1023.7+0038_daily_bin666.fits.....................!
real 48.29
user 46.98
sys 1.16

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4627.76864528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6734       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13923E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.1912       1.0000         .10000E-03   10000.    
     5 'norm      '    .11112E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28127E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.6438       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0010       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.599       1.0000         .10000E-03   10000.    
    14 'norm      '    3.7079       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3662       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .38350       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2969       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.

 FCN=   4627.706     FROM MIGRAD    STATUS=CONVERGED    334 CALLS     1597 TOTAL
                     EDM=   .82E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6735        1.0602        .38468E-07   -.58273E-04
   2  Prefactor     .10000E-03    4.8466        .10614E-06** at limit **
   3  Prefactor     .10000E-03    15.749        .71640E-06** at limit **
   4  Prefactor     8.1715        41.210        .47809E-05    .63316E-05
   5  norm          .10000E-03    5.0794       -.10446E-06** at limit **
   6  Prefactor     .10000E-03    3.9134        .28771E-07** at limit **
   7  Prefactor     .10000E-03    18.108       -.67892E-06** at limit **
   8  Prefactor     .10000E-03    16.424       -.23062E-05** at limit **
   9  Prefactor     .10000E-03    6.3067        .67229E-07** at limit **
  10  norm          4.6438        1.9490        .39845E-08   -.69148E-05
  11  Prefactor     .10000E-03    3.0862       -.74224E-07** at limit **
  12  Prefactor     5.0026        4.9389        .11177E-05   -.11683E-04
  13  Prefactor     24.588        13.399       -.45326E-06    .17302E-04
  14  norm          3.7039        1.4697       -.22559E-06    .81824E-04
  15  Prefactor     5.4467        22.206        .44617E-05   -.95330E-05
  16  Normalizat    .38339        .25949       -.22086E-05   -.12766E-04
  17  Prefactor     1.2970        .20455        .26652E-06    .24692E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.67348
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.17151
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.64382
  Prefactor  = 0.0001
  Prefactor  = 5.00261
  Prefactor  = 24.5876
  norm       = 3.70392
  Prefactor  = 5.44669
  Normalizat = 0.383386
  Prefactor  = 1.29698
 **********
 **   18 **HESSE 
 **********

 FCN=   4627.706     FROM HESSE     STATUS=OK           223 CALLS     1820 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6735        1.0535        .40334E-04   -1.5381    
   2  Prefactor     .10000E-03    4.8625        .14627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.1715        41.145        .14008E-03   -1.5136    
   5  norm          .10000E-03    5.0821        .14973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.9259        .13142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.415        .21417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.3111        .16686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.6438        1.9469        .58915E-04   -1.5277    
  11  Prefactor     .10000E-03    3.0989        .11669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.0026        4.9037        .67357E-03   -1.5261    
  13  Prefactor     24.588        13.373        .80766E-04   -1.4716    
  14  norm          3.7039        1.4632        .20972E-04   -1.5323    
  15  Prefactor     5.4467        22.215        .86741E-03   -1.5241    
  16  Normalizat    .38339        .26232        .42536E-03   -1.1817    
  17  Prefactor     1.2970        .21063        .19976E-03   -.83397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22234e-11
Minuit parameter uncertainties:
  1  1.05349
  2  3.75313e-06
  3  1.25299e-05
  4  36.7127
  5  8.7844e-07
  6  2.88885e-06
  7  2.46398e-06
  8  2.30588e-05
  9  2.93603e-06
  10  1.94697
  11  4.90812e-06
  12  4.90406
  13  13.3749
  14  1.46325
  15  22.014
  16  0.26317
  17  0.210768
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  4.644e+00  1.947e+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

GAL_V02
   Spectrum: PowerLaw
496    Prefactor:  1.297e+00  2.108e-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:  3.834e-01  2.632e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.78
Ra Dec: 155.945 0.650
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.18e-07 +/- 4.96e-08
Energy Flux (Fixed Index): 4.06e-05 +/- 1.70e-05

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) = 4626.91357725
delta logL = 0.792168170913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4626.89593057
delta logL = 0.809814849711

Fit tolerance = 1e-08

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

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

 FCN=   4626.896     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      205 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5702        1.9827        .47074E-02   -.25182E-03
   2  alpha         1.7062        .36376        .23843       -.16284E-04
   3  Normalizat    .42416        .24015        .91489E-01    .36386E-04
   4  Prefactor     1.2763        .19948        .33037E-01   -.10513E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.57024
  alpha      = 1.7062
  Normalizat = 0.424156
  Prefactor  = 1.27629
 **********
 **   18 **HESSE 
 **********

 FCN=   4626.896     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .88E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5702        2.1150        .60853E-04   -1.5280    
   2  alpha         1.7062        .40193        .10144E-01   -.32311    
   3  Normalizat    .42416        .25268        .40541E-03   -1.1607    
   4  Prefactor     1.2763        .21081        .20114E-03   -.84015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.80533e-12
Minuit parameter uncertainties:
  1  2.11504
  2  0.403885
  3  0.253365
  4  0.210948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/845576': 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) = 4626.89593018
delta logL = 0.809815234498

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  4.570e+00  2.115e+00  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  1.706e+00  4.039e-01  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:  1.276e+00  2.109e-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:  4.242e-01  2.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.34
Ra Dec: 155.945 0.650
Photon Index (Free Index): 1.71 +/- 0.40
Photon Flux (Free Index): 8.38e-08 +/- 4.58e-08
Energy Flux (Free Index): 5.33e-05 +/- 2.68e-05

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/845576/cmap_HighResolution_411955201_412214401_4FGL_J1023.7+0038_daily_bin666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.18e-07', energy_flux2='5.33e-05', photon_flux_error='4.96e-08', dlogl='8.10e-01', energy_flux='4.06e-05', photon_flux2='8.38e-08', job_status='DONE', time_completed='2021-09-01 20:03:02.509965', photon_index_error2='0.40', photon_index2='1.71', ts='15.78', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', energy_flux_error2='2.68e-05', EG='0.38', time_epoch_completed='1630551782.51', return_code='0', job_id='845576', GAL2='1.28', EG2='0.42', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='4.58e-08', ts2='17.34', photon_index='2.23' WHERE bin_id='666' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 20:03:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 845576: <4FGL_J1023.7+0038_daily_bin666> in cluster <slac> Done

Job <4FGL_J1023.7+0038_daily_bin666> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 19:50:30 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:53:21 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:53:21 2021
Terminated at Wed Sep  1 20:03:03 2021
Results reported at Wed Sep  1 20:03:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin666 155.945 0.6499 411955201 412214401 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 :                                   457.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             281.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   581 sec.
    Turnaround time :                            753 sec.

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

