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


Performing analysis on: 4FGL_J1023.7+0038_daily_bin150
RA = 155.945, Dec = 0.6499
tmin = 278208001, tmax = 278467201
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='842567', job_status='RUN', time_executed='2021-09-01 19:46:40.763840', time_epoch_executed='1630550800.76' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='150'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/842567

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/842567/ft1_4FGL_J1023.7+0038_daily_bin150.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/842567/ft2_4FGL_J1023.7+0038_daily_bin150.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/842567/ft1_4FGL_J1023.7+0038_daily_bin150.fits outfile=/scratch/kocevski/842567/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin150.fits ra=155.945 dec=0.6499 rad=12.0 tmin=278208001.0 tmax=278467201.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.44
user 5.13
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/842567/ft1_filtered_4FGL_J1023.7+0038_daily_bin150.fits" evtable="EVENTS" scfile=/scratch/kocevski/842567/ft2_4FGL_J1023.7+0038_daily_bin150.fits sctable="SC_DATA" outfile=/scratch/kocevski/842567/ltcube_278208001_278467201_4FGL_J1023.7+0038_daily_bin150.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/842567/ft2_4FGL_J1023.7+0038_daily_bin150.fits
.....................!
real 13.12
user 12.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/842567/ft1_filtered_4FGL_J1023.7+0038_daily_bin150.fits evtable="EVENTS" scfile=/scratch/kocevski/842567/ft2_4FGL_J1023.7+0038_daily_bin150.fits sctable="SC_DATA" expcube=/scratch/kocevski/842567/ltcube_278208001_278467201_4FGL_J1023.7+0038_daily_bin150.fits outfile=/scratch/kocevski/842567/expmap_278208001_278467201_4FGL_J1023.7+0038_daily_bin150.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/842567/ltcube_278208001_278467201_4FGL_J1023.7+0038_daily_bin150.fits
.....................!
real 195.25
user 187.76
sys 4.45

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/842567/ft1_filtered_4FGL_J1023.7+0038_daily_bin150.fits scfile=/scratch/kocevski/842567/ft2_4FGL_J1023.7+0038_daily_bin150.fits outfile=/scratch/kocevski/842567/cmap_278208001_278467201_4FGL_J1023.7+0038_daily_bin150.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.59
user 0.37
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/842567/ft1_filtered_4FGL_J1023.7+0038_daily_bin150.fits evtable="EVENTS" scfile=/scratch/kocevski/842567/ft2_4FGL_J1023.7+0038_daily_bin150.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/842567/Model_4FGL_J1023.7+0038_daily_bin150.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/842567/ft1_filtered_4FGL_J1023.7+0038_daily_bin150.fits.....................!
real 56.19
user 54.37
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2014       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.204       1.0000         .10000E-03   10000.    
     8 'Prefactor '    103.49       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14187E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .14555E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.4859       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10614E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.9496       1.0000         .10000E-03   10000.    
    14 'norm      '    .67431       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.5956       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .72489       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=   5302.529     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2142 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2012        1.0662        .22645E-04   -.18325E-03
   2  Prefactor     .10000E-03    3.3054        .12928E-02** at limit **
   3  Prefactor     .10000E-03    39.183        .18142E-02** at limit **
   4  Prefactor     .10001E-03    48.553        .18142E-02** at limit **
   5  norm          .10000E-03    5.1711        .16170E-02** at limit **
   6  Prefactor     .10000E-03    26.716        .36285E-03** at limit **
   7  Prefactor     18.189        60.389        .93873E-04    .20588E-05
   8  Prefactor     103.49        106.99        .39526E-04   -.24851E-04
   9  Prefactor     .10001E-03    57.922        .96623E-01** at limit **
  10  norm          .10702E-01    2.5056        .22512E-01    .48574E-03
  11  Prefactor     9.4879        10.352        .13012E-03   -.12022E-03
  12  Prefactor     .10001E-03    6.0755        .21864E-02** at limit **
  13  Prefactor     6.9493        9.3213        .15218E-03   -.61526E-03
  14  norm          .67431        .44534        .37840E-04    .24096E-03
  15  Prefactor     .10000E-03    3.7170        .13683E-02** at limit **
  16  Normalizat    1.5958        .29026        .25493E-03   -.32176E-03
  17  Prefactor     .72488        .21025        .27456E-03   -.55608E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.2012
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.189
  Prefactor  = 103.495
  Prefactor  = 0.000100005
  norm       = 0.0107018
  Prefactor  = 9.48788
  Prefactor  = 0.000100005
  Prefactor  = 6.94935
  norm       = 0.674312
  Prefactor  = 0.0001
  Normalizat = 1.59584
  Prefactor  = 0.72488
 **********
 **   18 **HESSE 
 **********

 FCN=   5302.529     FROM HESSE     STATUS=OK           225 CALLS     2367 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2012        1.0662        .90579E-06   -1.5350    
   2  Prefactor     .10000E-03    3.3055        .25856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    39.186        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    48.558        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.1711        .32340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.716        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.189        60.351        .37549E-05   -1.4855    
   8  Prefactor     103.49        105.29        .79052E-05   -1.3670    
   9  Prefactor     .10001E-03    51.805        .10220       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10702E-01    1.7871        .28178E-01   -1.5687    
  11  Prefactor     9.4879        10.349        .52047E-05   -1.5092    
  12  Prefactor     .10001E-03    6.1209        .43728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.9493        9.3200        .60873E-05   -1.5181    
  14  norm          .67431        .44533        .15136E-05   -1.5544    
  15  Prefactor     .10000E-03    3.7173        .27367E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.5958        .29058        .50985E-04   -.75120    
  17  Prefactor     .72488        .21034        .54912E-04   -1.0256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34544e-09
Minuit parameter uncertainties:
  1  1.0662
  2  9.83884e-06
  3  0.000439258
  4  0.000999296
  5  2.85518e-05
  6  0.000168276
  7  60.5549
  8  105.477
  9  0.0010412
  10  0.275302
  11  10.3513
  12  0.000360868
  13  9.32196
  14  0.445328
  15  3.03639e-05
  16  0.290883
  17  0.210568
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  1.070e-02  2.753e-01  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.249e-01  2.106e-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.596e+00  2.909e-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: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/842567/likelihoodResults_278208001_278467201_4FGL_J1023.7+0038_daily_bin150.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) = 5302.52891014
delta logL = 2.28519611483e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5302.46679351
delta logL = 0.0621394869368

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32222       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3509       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5736       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73110       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=   5302.467     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      320 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32150        13.406        .24592E-01    .13523E-02
   2  alpha         3.3527        2.7182        .44664        .32103E-04
   3  Normalizat    1.5735        .33829E-01    .57968E-01    .41158E-06
   4  Prefactor     .73118        .26036E-01    .61815E-01    .17887E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.321503
  alpha      = 3.35274
  Normalizat = 1.57351
  Prefactor  = 0.731177
 **********
 **   18 **HESSE 
 **********

 FCN=   5302.467     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      355 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32150        127.96        .93890E-03   -1.5595    
   2  alpha         3.3527        3.0787        .51688E-01    .34808    
   3  Normalizat    1.5735        .23174        .25633E-03   -.75733    
   4  Prefactor     .73118        .22815        .27343E-03   -1.0232    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.69245e-10
Minuit parameter uncertainties:
  1  12.8539
  2  28.1546
  3  0.231896
  4  0.228443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/842567': 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): 102
logL (Free Index) = 5302.46679318
delta logL = 0.0621398124476

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  3.215e-01  1.285e+01  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  3.353e+00  2.815e+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.312e-01  2.284e-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.574e+00  2.319e-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/842567/cmap_HighResolution_278208001_278467201_4FGL_J1023.7+0038_daily_bin150.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.74e-05', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-01 19:55:48.789814', job_id='842567', GAL2='0.73', fit_tolerance='1e-08', EG2='1.57', EG='1.60', time_epoch_completed='1630551348.79', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='6.21e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='150' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:55:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 842567: <4FGL_J1023.7+0038_daily_bin150> in cluster <slac> Done

Job <4FGL_J1023.7+0038_daily_bin150> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 19:40:24 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:42:44 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:42:44 2021
Terminated at Wed Sep  1 19:55:49 2021
Results reported at Wed Sep  1 19:55:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin150 155.945 0.6499 278208001 278467201 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 :                                   540.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            925 sec.

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

