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


Performing analysis on: 4FGL_J1023.7+0038_daily_bin361
RA = 155.945, Dec = 0.6499
tmin = 332899201, tmax = 333158401
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='842904', job_status='RUN', time_executed='2021-09-01 19:48:40.335718', time_epoch_executed='1630550920.34' WHERE source_name='4FGL J1023.7+0038' and cadence='daily' and bin_id='361'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/842904

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/842904/ft1_4FGL_J1023.7+0038_daily_bin361.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/842904/ft2_4FGL_J1023.7+0038_daily_bin361.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/842904/ft1_4FGL_J1023.7+0038_daily_bin361.fits outfile=/scratch/kocevski/842904/ft1_filteredMKT_4FGL_J1023.7+0038_daily_bin361.fits ra=155.945 dec=0.6499 rad=12.0 tmin=332899201.0 tmax=333158401.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 4.18
user 3.93
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/842904/ft1_filtered_4FGL_J1023.7+0038_daily_bin361.fits" evtable="EVENTS" scfile=/scratch/kocevski/842904/ft2_4FGL_J1023.7+0038_daily_bin361.fits sctable="SC_DATA" outfile=/scratch/kocevski/842904/ltcube_332899201_333158401_4FGL_J1023.7+0038_daily_bin361.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/842904/ft2_4FGL_J1023.7+0038_daily_bin361.fits
.....................!
real 14.40
user 14.02
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/842904/ft1_filtered_4FGL_J1023.7+0038_daily_bin361.fits evtable="EVENTS" scfile=/scratch/kocevski/842904/ft2_4FGL_J1023.7+0038_daily_bin361.fits sctable="SC_DATA" expcube=/scratch/kocevski/842904/ltcube_332899201_333158401_4FGL_J1023.7+0038_daily_bin361.fits outfile=/scratch/kocevski/842904/expmap_332899201_333158401_4FGL_J1023.7+0038_daily_bin361.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/842904/ltcube_332899201_333158401_4FGL_J1023.7+0038_daily_bin361.fits
.....................!
real 192.33
user 187.07
sys 4.85

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/842904/ft1_filtered_4FGL_J1023.7+0038_daily_bin361.fits scfile=/scratch/kocevski/842904/ft2_4FGL_J1023.7+0038_daily_bin361.fits outfile=/scratch/kocevski/842904/cmap_332899201_333158401_4FGL_J1023.7+0038_daily_bin361.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/842904/ft1_filtered_4FGL_J1023.7+0038_daily_bin361.fits scfile=/scratch/kocevski/842904/ft2_4FGL_J1023.7+0038_daily_bin361.fits outfile=/scratch/kocevski/842904/cmap_HighResolution_332899201_333158401_4FGL_J1023.7+0038_daily_bin361.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.57
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/842904/ft1_filtered_4FGL_J1023.7+0038_daily_bin361.fits evtable="EVENTS" scfile=/scratch/kocevski/842904/ft2_4FGL_J1023.7+0038_daily_bin361.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/842904/Model_4FGL_J1023.7+0038_daily_bin361.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/842904/ft1_filtered_4FGL_J1023.7+0038_daily_bin361.fits.....................!
real 55.14
user 53.69
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1977       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.127       1.0000         .10000E-03   10000.    
     3 'Prefactor '    55.065       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.876       1.0000         .10000E-03   10000.    
     5 'norm      '    .10174E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10649E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12544E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38561E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.377       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .38473E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.938       1.0000         .10000E-03   10000.    
    14 'norm      '    4.1068       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2432       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0302       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=   5388.108     FROM MIGRAD    STATUS=CONVERGED    341 CALLS     1629 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1977        .69789       -.25127E-07    .33577E-04
   2  Prefactor     15.132        13.433       -.85759E-07    .75989E-04
   3  Prefactor     55.002        49.484       -.22979E-06   -.44323E-04
   4  Prefactor     10.870        40.333       -.11947E-06    .15941E-04
   5  norm          .10000E-03    13.187       -.59210E-07** at limit **
   6  Prefactor     .10000E-03    9.5476       -.19677E-05** at limit **
   7  Prefactor     .10000E-03    168.19       -.88634E-06** at limit **
   8  Prefactor     .10000E-03    327.60       -.23043E-04** at limit **
   9  Prefactor     10.402        17.613       -.49569E-06    .21963E-03
  10  norm          .10000E-03    .42334       -.10387E-06** at limit **
  11  Prefactor     .10005E-03    6.6976       -.94648E-06** at limit **
  12  Prefactor     .10000E-03    1.4940        .21899E-06** at limit **
  13  Prefactor     12.932        8.3864        .12982E-08    .11033E-03
  14  norm          4.1068        .94922       -.13077E-07    .97604E-04
  15  Prefactor     .10000E-03    3.3117        .94762E-07** at limit **
  16  Normalizat    1.2432        .23330        .12290E-05    .16726E-03
  17  Prefactor     1.0303        .18154       -.62255E-06    .20596E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.19765
  Prefactor  = 15.1319
  Prefactor  = 55.0025
  Prefactor  = 10.8704
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 10.4019
  norm       = 0.0001
  Prefactor  = 0.000100054
  Prefactor  = 0.0001
  Prefactor  = 12.9321
  norm       = 4.10679
  Prefactor  = 0.0001
  Normalizat = 1.24322
  Prefactor  = 1.03034
 **********
 **   18 **HESSE 
 **********

 FCN=   5388.108     FROM HESSE     STATUS=OK           221 CALLS     1850 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1977        .68628        .44837E-04   -1.5489    
   2  Prefactor     15.132        13.450        .10298E-03   -1.4930    
   3  Prefactor     55.002        49.834        .54056E-04   -1.4223    
   4  Prefactor     10.870        40.279        .12149E-03   -1.5048    
   5  norm          .10000E-03    13.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.5802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    169.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    329.40        .42561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.402        16.889        .12438E-03   -1.5063    
  10  norm          .10000E-03    .42785        .46642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10005E-03    42.422        .34652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.5167        .87515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.932        8.3986        .11136E-03   -1.4989    
  14  norm          4.1068        .95021        .32851E-04   -1.5303    
  15  Prefactor     .10000E-03    3.3145        .13041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2432        .27023        .28026E-03   -.85277    
  17  Prefactor     1.0303        .21078        .24529E-03   -.91725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38816e-09
Minuit parameter uncertainties:
  1  0.686282
  2  13.4531
  3  49.8718
  4  40.3802
  5  2.92814e-06
  6  2.1775e-05
  7  4.55484e-05
  8  0.00251564
  9  16.8964
  10  5.12308e-07
  11  0.00302239
  12  1.81867e-06
  13  8.3994
  14  0.950216
  15  1.49948e-06
  16  0.270534
  17  0.210948
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
496    Prefactor:  1.030e+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:  1.243e+00  2.705e-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: 5.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/842904/likelihoodResults_332899201_333158401_4FGL_J1023.7+0038_daily_bin361.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) = 5388.10778024
delta logL = -2.12494114749e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5388.10775957
delta logL = -5.81811036682e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2308       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0305       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5388.108     FROM MIGRAD    STATUS=FAILED        82 CALLS      225 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    .48948        .46646E-03** at limit **
   2  alpha         2.2119        3.3988        .16583        .54765E-05
   3  Normalizat    1.2432        .25932        .28026E-03    .32127E-04
   4  Prefactor     1.0303        .21015        .24529E-03    .35411E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5388.108     FROM SIMPLEX   STATUS=UNCHANGED    115 CALLS      340 TOTAL
                     EDM=   .57E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    .48948        .69581E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2119        3.3988        .74367E-03   -.11550    
   3  Normalizat    1.2432        .25932        .85610E-04   -.85277    
   4  Prefactor     1.0303        .21015        .97255E-04   -.91725    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5388.108     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      367 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .42819        .93292E-04** at limit **
   2  alpha         2.1908        3.5898        .66331E-02   -.91181E-07
   3  Normalizat    1.2432        .25955        .11210E-04   -.30424E-05
   4  Prefactor     1.0303        .21034        .98114E-05   -.41714E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.19076
  Normalizat = 1.24322
  Prefactor  = 1.03034
 **********
 **   18 **HESSE 
 **********

 FCN=   5388.108     FROM HESSE     STATUS=OK            23 CALLS      390 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .42819        .18658E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1908        3.5913        .13266E-02   -.12401    
   3  Normalizat    1.2432        .25943        .22421E-05   -.85277    
   4  Prefactor     1.0303        .21027        .19623E-05   -.91725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64665e-11
Minuit parameter uncertainties:
  1  3.18599e-06
  2  96.9131
  3  0.259704
  4  0.210443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/842904': 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) = 5388.1077589
delta logL = 9.13123585633e-08

Extracting fit parameters...

4FGL J1023.7+0038
   Spectrum: LogParabola
214         norm:  1.000e-04  3.186e-06  1.000e-04  1.000e+04 ( 1.000e-11)
215        alpha:  2.191e+00  9.691e+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.030e+00  2.104e-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.243e+00  2.597e-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/842904/cmap_HighResolution_332899201_333158401_4FGL_J1023.7+0038_daily_bin361.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.94e-05', job_status='DONE', photon_flux_upper_limit='5.65e-08', time_completed='2021-09-01 19:57:19.189592', job_id='842904', GAL2='1.03', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1630551439.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='9.13e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='361' AND source_name='4FGL J1023.7+0038' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:57:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 842904: <4FGL_J1023.7+0038_daily_bin361> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.7+0038_daily_bin361 155.945 0.6499 332899201 333158401 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 :                                   516.53 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   533 sec.
    Turnaround time :                            985 sec.

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

