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


Performing analysis on: 4FGL_J1023.7+0038_daily_bin204
RA = 155.945, Dec = 0.6499
tmin = 292204801, tmax = 292464001
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='842654', job_status='RUN', time_executed='2021-09-01 19:47:27.643184', time_epoch_executed='1630550847.64' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='204'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/842654

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/842654/ft1_4FGL_J1023.7+0038_daily_bin204.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/842654/ft2_4FGL_J1023.7+0038_daily_bin204.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/842654/ft1_4FGL_J1023.7+0038_daily_bin204.fits outfile=/scratch/kocevski/842654/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin204.fits ra=155.945 dec=0.6499 rad=12.0 tmin=292204801.0 tmax=292464001.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 9.48
user 9.17
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/842654/ft1_filtered_4FGL_J1023.7+0038_daily_bin204.fits evtable="EVENTS" scfile=/scratch/kocevski/842654/ft2_4FGL_J1023.7+0038_daily_bin204.fits sctable="SC_DATA" expcube=/scratch/kocevski/842654/ltcube_292204801_292464001_4FGL_J1023.7+0038_daily_bin204.fits outfile=/scratch/kocevski/842654/expmap_292204801_292464001_4FGL_J1023.7+0038_daily_bin204.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/842654/ltcube_292204801_292464001_4FGL_J1023.7+0038_daily_bin204.fits
.....................!
real 190.56
user 185.80
sys 4.31

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/842654/ft1_filtered_4FGL_J1023.7+0038_daily_bin204.fits scfile=/scratch/kocevski/842654/ft2_4FGL_J1023.7+0038_daily_bin204.fits outfile=/scratch/kocevski/842654/cmap_292204801_292464001_4FGL_J1023.7+0038_daily_bin204.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.58
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49140       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.031       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11426E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    71.075       1.0000         .10000E-03   10000.    
     5 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11217E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.9043       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .18515E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.3361       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5680       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0304       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .78652       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=   2583.598     FROM MIGRAD    STATUS=CONVERGED    349 CALLS     1582 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49147        .82181       -.21340E-07   -.52519E-03
   2  Prefactor     18.025        17.046        .68394E-05    .21481E-03
   3  Prefactor     .10000E-03    54.229       -.22131E-05** at limit **
   4  Prefactor     71.052        61.740       -.95445E-05   -.10195E-03
   5  norm          .10000E-03    9.7173       -.33902E-06** at limit **
   6  Prefactor     .10000E-03    17.302       -.19267E-06** at limit **
   7  Prefactor     5.6874        195.27       -.36924E-04   -.29896E-04
   8  Prefactor     .10000E-03    31.111        .75134E-07** at limit **
   9  Prefactor     .10000E-03    9.0024       -.55144E-06** at limit **
  10  norm          .10000E-03    2.0726        .44418E-06** at limit **
  11  Prefactor     .10000E-03    4.8958       -.30772E-06** at limit **
  12  Prefactor     .10000E-03    2.2270        .14027E-06** at limit **
  13  Prefactor     .10000E-03    10.232       -.86639E-06** at limit **
  14  norm          2.3367        1.3918       -.14705E-05    .20741E-02
  15  Prefactor     6.5578        18.377        .20618E-04    .18823E-04
  16  Normalizat    1.0310        .28576        .57637E-06   -.10731E-03
  17  Prefactor     .78615        .21687       -.11582E-05   -.71373E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.491471
  Prefactor  = 18.0247
  Prefactor  = 0.0001
  Prefactor  = 71.0517
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.68745
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.3367
  Prefactor  = 6.55778
  Normalizat = 1.03104
  Prefactor  = 0.786154
 **********
 **   18 **HESSE 
 **********

 FCN=   2583.598     FROM HESSE     STATUS=OK           217 CALLS     1799 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49147        .77687        .56323E-03   -1.5568    
   2  Prefactor     18.025        17.153        .94323E-04   -1.4859    
   3  Prefactor     .10000E-03    54.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     71.052        61.939        .47617E-04   -1.4020    
   5  norm          .10000E-03    9.7209        .15476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.6874        200.21        .16527E-03   -1.5231    
   8  Prefactor     .10000E-03    31.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.0032        .14896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.5056        .14012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.9189        .10981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.2429        .74041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.329        .15878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.3367        1.4068        .35938E-04   -1.5402    
  15  Prefactor     6.5578        18.388        .15659E-03   -1.5196    
  16  Normalizat    1.0310        .33235        .25157E-03   -.91998    
  17  Prefactor     .78615        .25335        .22420E-03   -1.0024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.25109e-10
Minuit parameter uncertainties:
  1  0.776884
  2  17.1574
  3  0.000109279
  4  61.9957
  5  1.01175e-06
  6  1.16952e-05
  7  67.7345
  8  5.08273e-05
  9  3.16481e-06
  10  1.94867e-05
  11  1.03867e-05
  12  2.0144e-07
  13  9.1828e-05
  14  1.40681
  15  18.4043
  16  0.333024
  17  0.25373
Done.

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

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  1.000e-04  1.949e-05  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.862e-01  2.537e-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.031e+00  3.330e-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.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.00e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/842654/likelihoodResults_292204801_292464001_4FGL_J1023.7+0038_daily_bin204.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) = 2583.51533132
delta logL = 0.0831033050672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2583.51533054
delta logL = 0.083104089912

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .34559       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6859       1.0000          .0000       5.0000    
     3 'Normalizat'    .99224       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79950       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=   2583.515     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      356 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34413        30.186        .10623E-01    .69631E-03
   2  alpha         3.6877        3.1368        .49485        .14657E-04
   3  Normalizat    .99230        .60778E-01    .46070E-01   -.97486E-05
   4  Prefactor     .79949        .48093E-01    .43711E-01    .67634E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.344131
  alpha      = 3.68768
  Normalizat = 0.992303
  Prefactor  = 0.79949
 **********
 **   18 **HESSE 
 **********

 FCN=   2583.515     FROM HESSE     STATUS=OK            33 CALLS      389 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .34413        1.5392        .68972E-04   -1.5591    
   2  alpha         3.6877        3.9244        .33811E-01    .49505    
   3  Normalizat    .99230        .32565        .25584E-03   -.93289    
   4  Prefactor     .79949        .25006        .22242E-03   -.99747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.85925e-09
Minuit parameter uncertainties:
  1  1.45545
  2  2.68785
  3  0.326305
  4  0.250416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/842654': 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) = 2583.51532979
delta logL = 0.0831048390405

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  3.441e-01  1.455e+00  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  3.688e+00  2.688e+00  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.995e-01  2.504e-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:  9.923e-01  3.263e-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/842654/cmap_HighResolution_292204801_292464001_4FGL_J1023.7+0038_daily_bin204.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.00e-05', job_status='DONE', photon_flux_upper_limit='1.46e-07', time_completed='2021-09-01 19:54:38.870933', job_id='842654', GAL2='0.80', fit_tolerance='1e-08', EG2='0.99', EG='1.03', time_epoch_completed='1630551278.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='8.31e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='204' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:54:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 842654: <4FGL_J1023.7+0038_daily_bin204> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin204 155.945 0.6499 292204801 292464001 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 :                                   428.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   583 sec.
    Turnaround time :                            847 sec.

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

