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


Performing analysis on: 4FGL_J1023.7+0038_daily_bin440
RA = 155.945, Dec = 0.6499
tmin = 353376001, tmax = 353635201
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='844143', job_status='RUN', time_executed='2021-09-01 19:50:16.730809', time_epoch_executed='1630551016.73' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='440'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/844143

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/844143/ft1_4FGL_J1023.7+0038_daily_bin440.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/844143/ft2_4FGL_J1023.7+0038_daily_bin440.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/844143/ft1_4FGL_J1023.7+0038_daily_bin440.fits outfile=/scratch/kocevski/844143/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin440.fits ra=155.945 dec=0.6499 rad=12.0 tmin=353376001.0 tmax=353635201.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 3.49
user 3.27
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/844143/ft1_filtered_4FGL_J1023.7+0038_daily_bin440.fits" evtable="EVENTS" scfile=/scratch/kocevski/844143/ft2_4FGL_J1023.7+0038_daily_bin440.fits sctable="SC_DATA" outfile=/scratch/kocevski/844143/ltcube_353376001_353635201_4FGL_J1023.7+0038_daily_bin440.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/844143/ft2_4FGL_J1023.7+0038_daily_bin440.fits
.....................!
real 15.38
user 14.97
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/844143/ft1_filtered_4FGL_J1023.7+0038_daily_bin440.fits evtable="EVENTS" scfile=/scratch/kocevski/844143/ft2_4FGL_J1023.7+0038_daily_bin440.fits sctable="SC_DATA" expcube=/scratch/kocevski/844143/ltcube_353376001_353635201_4FGL_J1023.7+0038_daily_bin440.fits outfile=/scratch/kocevski/844143/expmap_353376001_353635201_4FGL_J1023.7+0038_daily_bin440.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/844143/ltcube_353376001_353635201_4FGL_J1023.7+0038_daily_bin440.fits
.....................!
real 192.02
user 186.68
sys 3.91

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/844143/ft1_filtered_4FGL_J1023.7+0038_daily_bin440.fits scfile=/scratch/kocevski/844143/ft2_4FGL_J1023.7+0038_daily_bin440.fits outfile=/scratch/kocevski/844143/cmap_353376001_353635201_4FGL_J1023.7+0038_daily_bin440.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/844143/ft1_filtered_4FGL_J1023.7+0038_daily_bin440.fits scfile=/scratch/kocevski/844143/ft2_4FGL_J1023.7+0038_daily_bin440.fits outfile=/scratch/kocevski/844143/cmap_HighResolution_353376001_353635201_4FGL_J1023.7+0038_daily_bin440.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.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/844143/ft1_filtered_4FGL_J1023.7+0038_daily_bin440.fits evtable="EVENTS" scfile=/scratch/kocevski/844143/ft2_4FGL_J1023.7+0038_daily_bin440.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/844143/Model_4FGL_J1023.7+0038_daily_bin440.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/844143/ft1_filtered_4FGL_J1023.7+0038_daily_bin440.fits.....................!
real 64.78
user 63.39
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/844143/ft1_filtered_4FGL_J1023.7+0038_daily_bin440.fits', '/scratch/kocevski/844143/ft2_4FGL_J1023.7+0038_daily_bin440.fits', expMap='/scratch/kocevski/844143/expmap_353376001_353635201_4FGL_J1023.7+0038_daily_bin440.fits', expCube='/scratch/kocevski/844143/ltcube_353376001_353635201_4FGL_J1023.7+0038_daily_bin440.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/844143/Model_4FGL_J1023.7+0038_daily_bin440.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/844143/ft1_filtered_4FGL_J1023.7+0038_daily_bin440.fits
Spacecraft file(s): /scratch/kocevski/844143/ft2_4FGL_J1023.7+0038_daily_bin440.fits
Exposure map: /scratch/kocevski/844143/expmap_353376001_353635201_4FGL_J1023.7+0038_daily_bin440.fits
Exposure cube: /scratch/kocevski/844143/ltcube_353376001_353635201_4FGL_J1023.7+0038_daily_bin440.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/844143/Model_4FGL_J1023.7+0038_daily_bin440.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) = 6482.60382678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.668       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3474       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.5303       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15220E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .37687       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8163       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1409       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .76970       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=   6482.391     FROM MIGRAD    STATUS=CONVERGED    344 CALLS     1440 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .14738        .76290E-07** at limit **
   2  Prefactor     16.662        13.219       -.98315E-06   -.53570E-04
   3  Prefactor     1.2680        191.11       -.52704E-05   -.67813E-04
   4  Prefactor     .10000E-03    59.825       -.77085E-05** at limit **
   5  norm          5.5316        11.556        .51311E-05    .36453E-03
   6  Prefactor     .10000E-03    7.7087        .20895E-06** at limit **
   7  Prefactor     .10000E-03    20.383        .45327E-06** at limit **
   8  Prefactor     .10000E-03    30.188        .25556E-06** at limit **
   9  Prefactor     .10000E-03    7.9193        .11069E-06** at limit **
  10  norm          .10000E-03    .19842       -.12716E-07** at limit **
  11  Prefactor     .10000E-03    4.9914       -.62387E-06** at limit **
  12  Prefactor     .10000E-03    1.7343        .10916E-05** at limit **
  13  Prefactor     .10029E-03    7.3144       -.34641E-05** at limit **
  14  norm          .37682        .48169        .21454E-06    .19889E-02
  15  Prefactor     5.8163        7.1244       -.43593E-06    .26129E-03
  16  Normalizat    1.1410        .16571       -.63925E-06   -.35071E-03
  17  Prefactor     .76971        .12869       -.18561E-05   -.38073E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 16.6616
  Prefactor  = 1.26803
  Prefactor  = 0.000100001
  norm       = 5.53158
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100287
  norm       = 0.37682
  Prefactor  = 5.81628
  Normalizat = 1.14102
  Prefactor  = 0.769707
 **********
 **   18 **HESSE 
 **********

 FCN=   6482.391     FROM HESSE     STATUS=OK           225 CALLS     1665 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .19146        .60228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.662        13.212        .98102E-04   -1.4891    
   3  Prefactor     1.2680        200.02        .37714E-02   -1.5483    
   4  Prefactor     .10000E-03    59.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.5316        11.659        .85423E-03   -1.5238    
   6  Prefactor     .10000E-03    7.8003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.9383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .19843        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.1085        .34987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.1119        .20017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10029E-03    22.444        .34207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .37682        .45758        .52409E-03   -1.5585    
  15  Prefactor     5.8163        7.1361        .16653E-03   -1.5226    
  16  Normalizat    1.1410        .18912        .22666E-03   -.88446    
  17  Prefactor     .76971        .14781        .21568E-03   -1.0085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35699e-08
Minuit parameter uncertainties:
  1  3.04056e-06
  2  13.214
  3  31.9593
  4  0.000389258
  5  11.6641
  6  1.27712e-05
  7  0.000146122
  8  4.98508e-05
  9  5.1897e-07
  10  9.42758e-08
  11  1.39722e-05
  12  6.2144e-05
  13  0.00508022
  14  0.457585
  15  7.13716
  16  0.18923
  17  0.147889
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  1.000e-04  9.428e-08  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:  7.697e-01  1.479e-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.141e+00  1.892e-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: 2.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.00e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/844143/likelihoodResults_353376001_353635201_4FGL_J1023.7+0038_daily_bin440.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) = 6482.3912442
delta logL = -9.42419301282e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6482.3911498
delta logL = 1.57913746079e-07

Fit tolerance = 1e-08

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

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

 FCN=   6482.391     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      248 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .20083        .18142E-03** at limit **
   2  alpha         2.1185        3.4733        .16632        .23719E-07
   3  Normalizat    1.1410        .18422        .22666E-03    .62698E-05
   4  Prefactor     .76971        .14756        .21568E-03    .44803E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.11853
  Normalizat = 1.14102
  Prefactor  = 0.769708
 **********
 **   18 **HESSE 
 **********

 FCN=   6482.391     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .19916        .36285E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1185        3.3801        .66527E-02   -.15319    
   3  Normalizat    1.1410        .18440        .90663E-05   -.88446    
   4  Prefactor     .76971        .14771        .86274E-05   -1.0085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84625e-12
Minuit parameter uncertainties:
  1  4.42224e-07
  2  82.4619
  3  0.184505
  4  0.147787
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/844143': 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) = 6482.39114903
delta logL = 9.26277607505e-07

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  1.000e-04  4.422e-07  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  2.119e+00  8.246e+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:  7.697e-01  1.478e-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.141e+00  1.845e-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/844143/cmap_HighResolution_353376001_353635201_4FGL_J1023.7+0038_daily_bin440.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-05', job_status='DONE', photon_flux_upper_limit='2.93e-08', time_completed='2021-09-01 19:59:11.427553', job_id='844143', GAL2='0.77', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630551551.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='9.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='440' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:59:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 844143: <4FGL_J1023.7+0038_daily_bin440> in cluster <slac> Done

Job <4FGL_J1023.7+0038_daily_bin440> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 19:45:32 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:50:06 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:50:06 2021
Terminated at Wed Sep  1 19:59:12 2021
Results reported at Wed Sep  1 19:59:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin440 155.945 0.6499 353376001 353635201 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 :                                   531.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             285.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   546 sec.
    Turnaround time :                            820 sec.

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

