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


Performing analysis on: 4FGL_J0127.2+0324_daily_bin1588
RA = 21.8237, Dec = 3.413
tmin = 650937601, tmax = 651196801
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='608357', job_status='RUN', time_executed='2021-08-21 00:30:32.927948', time_epoch_executed='1629531032.93' WHERE source_name='4FGL J0127.2+0324' and cadence='daily' and bin_id='1588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/608357

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/608357/ft1_4FGL_J0127.2+0324_daily_bin1588.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/608357/ft2_4FGL_J0127.2+0324_daily_bin1588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/608357/ft1_4FGL_J0127.2+0324_daily_bin1588.fits outfile=/scratch/kocevski/608357/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin1588.fits ra=21.8237 dec=3.413 rad=12.0 tmin=650937601.0 tmax=651196801.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 11.10
user 3.40
sys 7.33

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/608357/ft2_4FGL_J0127.2+0324_daily_bin1588.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/608357/ft2_4FGL_J0127.2+0324_daily_bin1588.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/608357/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin1588.fits evtable="EVENTS" outfile="/scratch/kocevski/608357/ft1_filtered_4FGL_J0127.2+0324_daily_bin1588.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 7.78
user 0.33
sys 7.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/608357/ft1_filtered_4FGL_J0127.2+0324_daily_bin1588.fits" evtable="EVENTS" scfile=/scratch/kocevski/608357/ft2_4FGL_J0127.2+0324_daily_bin1588.fits sctable="SC_DATA" outfile=/scratch/kocevski/608357/ltcube_650937601_651196801_4FGL_J0127.2+0324_daily_bin1588.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/608357/ft2_4FGL_J0127.2+0324_daily_bin1588.fits
.....................!
real 20.04
user 11.64
sys 8.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/608357/ft1_filtered_4FGL_J0127.2+0324_daily_bin1588.fits evtable="EVENTS" scfile=/scratch/kocevski/608357/ft2_4FGL_J0127.2+0324_daily_bin1588.fits sctable="SC_DATA" expcube=/scratch/kocevski/608357/ltcube_650937601_651196801_4FGL_J0127.2+0324_daily_bin1588.fits outfile=/scratch/kocevski/608357/expmap_650937601_651196801_4FGL_J0127.2+0324_daily_bin1588.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/608357/ltcube_650937601_651196801_4FGL_J0127.2+0324_daily_bin1588.fits
.....................!
real 200.22
user 184.73
sys 15.03

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 176 point sources and 0 extended sources

Setting source of interest to:
4FGL J0127.2+0324 @ 21.8237 3.413

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/608357/ft1_filtered_4FGL_J0127.2+0324_daily_bin1588.fits scfile=/scratch/kocevski/608357/ft2_4FGL_J0127.2+0324_daily_bin1588.fits outfile=/scratch/kocevski/608357/cmap_650937601_651196801_4FGL_J0127.2+0324_daily_bin1588.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=21.8237 yref=3.413 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 7.65
user 0.38
sys 7.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/608357/ft1_filtered_4FGL_J0127.2+0324_daily_bin1588.fits scfile=/scratch/kocevski/608357/ft2_4FGL_J0127.2+0324_daily_bin1588.fits outfile=/scratch/kocevski/608357/cmap_HighResolution_650937601_651196801_4FGL_J0127.2+0324_daily_bin1588.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=21.8237 yref=3.413 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 9.39
user 0.38
sys 7.21

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/608357/ft1_filtered_4FGL_J0127.2+0324_daily_bin1588.fits evtable="EVENTS" scfile=/scratch/kocevski/608357/ft2_4FGL_J0127.2+0324_daily_bin1588.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/608357/Model_4FGL_J0127.2+0324_daily_bin1588.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/608357/ft1_filtered_4FGL_J0127.2+0324_daily_bin1588.fits.....................!
real 85.71
user 62.41
sys 10.95

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/608357/ft1_filtered_4FGL_J0127.2+0324_daily_bin1588.fits', '/scratch/kocevski/608357/ft2_4FGL_J0127.2+0324_daily_bin1588.fits', expMap='/scratch/kocevski/608357/expmap_650937601_651196801_4FGL_J0127.2+0324_daily_bin1588.fits', expCube='/scratch/kocevski/608357/ltcube_650937601_651196801_4FGL_J0127.2+0324_daily_bin1588.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/608357/Model_4FGL_J0127.2+0324_daily_bin1588.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0127.2+0324'

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  8.781e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.967e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  2.374e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/608357/ft1_filtered_4FGL_J0127.2+0324_daily_bin1588.fits
Spacecraft file(s): /scratch/kocevski/608357/ft2_4FGL_J0127.2+0324_daily_bin1588.fits
Exposure map: /scratch/kocevski/608357/expmap_650937601_651196801_4FGL_J0127.2+0324_daily_bin1588.fits
Exposure cube: /scratch/kocevski/608357/ltcube_650937601_651196801_4FGL_J0127.2+0324_daily_bin1588.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/608357/Model_4FGL_J0127.2+0324_daily_bin1588.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) = 5665.91368685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55455       1.0000         .10000E-03   10000.    
     2 'Prefactor '    78.629       1.0000         .10000E-03   10000.    
     3 'norm      '    32.566       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10415E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.3960       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.153       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .76537E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11084E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.465       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2552       1.0000         .10000E-03   10000.    
    14 'norm      '    .11800E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3240       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .93555       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .96987       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5665.910     FROM MIGRAD    STATUS=CONVERGED    337 CALLS     1606 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55338        1.5734        .19322E-05    .98508E-03
   2  Prefactor     78.684        52.151       -.13623E-06   -.73364E-04
   3  norm          32.564        16.734        .11060E-06   -.41149E-04
   4  Prefactor     .10000E-03    20.967        .17574E-06** at limit **
   5  Prefactor     .10000E-03    39.901        .48700E-06** at limit **
   6  norm          7.3971        2.0137       -.32657E-06   -.26980E-02
   7  Prefactor     .10000E-03    39.526        .13526E-05** at limit **
   8  Prefactor     15.151        16.204       -.33683E-06   -.33635E-04
   9  Prefactor     .10400E-03    6.9831        .32610E-05** at limit **
  10  Prefactor     .10000E-03    4.9007       -.90004E-06** at limit **
  11  Prefactor     .10000E-03    51.517        .81061E-06** at limit **
  12  Prefactor     31.177        114.90       -.86242E-05   -.80760E-04
  13  Prefactor     2.2548        2.3145       -.12355E-06   -.11759E-03
  14  norm          .10000E-03    11.154        .50602E-06** at limit **
  15  Prefactor     2.3245        5.0167        .12007E-05    .24025E-03
  16  Normalizat    .93501        .21466        .72554E-05   -.59041E-03
  17  Prefactor     .97031        .16545       -.65101E-05   -.58466E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.553381
  Prefactor  = 78.6839
  norm       = 32.5635
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.39712
  Prefactor  = 0.0001
  Prefactor  = 15.1512
  Prefactor  = 0.000103998
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.1769
  Prefactor  = 2.25479
  norm       = 0.0001
  Prefactor  = 2.32446
  Normalizat = 0.935005
  Prefactor  = 0.970313
 **********
 **   18 **HESSE 
 **********

 FCN=   5665.910     FROM HESSE     STATUS=OK           229 CALLS     1835 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55338        1.5931        .15709E-03   -1.5559    
   2  Prefactor     78.684        52.177        .22644E-03   -1.3932    
   3  norm          32.564        16.735        .70216E-04   -1.4566    
   4  Prefactor     .10000E-03    20.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    39.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.3971        2.0259        .52768E-04   -1.5164    
   7  Prefactor     .10000E-03    39.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.151        16.213        .10289E-03   -1.4929    
   9  Prefactor     .10400E-03    5.7480        .49596E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.9275        .16281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    51.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     31.177        115.76        .35715E-03   -1.4591    
  13  Prefactor     2.2548        2.3238        .11299E-03   -1.5408    
  14  norm          .10000E-03    11.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.3245        5.0135        .23978E-03   -1.5403    
  16  Normalizat    .93501        .21728        .26869E-03   -.95241    
  17  Prefactor     .97031        .16830        .21488E-03   -.93726    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60339e-09
Minuit parameter uncertainties:
  1  1.59321
  2  52.2071
  3  16.7374
  4  2.0442e-05
  5  8.17877e-05
  6  2.02589
  7  0.000171777
  8  16.2179
  9  0.00958798
  10  5.1168e-05
  11  9.69392e-05
  12  116.605
  13  2.32392
  14  6.43141e-05
  15  5.01443
  16  0.217482
  17  0.168387
Done.

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

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  9.694e-05  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.967e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  2.374e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  9.703e-01  1.684e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  9.350e-01  2.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 21.824 3.413
Photon Flux Upper Limit: 5.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/608357/likelihoodResults_650937601_651196801_4FGL_J0127.2+0324_daily_bin1588.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) = 5665.9105895
delta logL = -9.18507366805e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5665.91049755
delta logL = 9.61263140198e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0217       1.0000          .0000       10.000    
     3 'Normalizat'    .93500       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97031       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5665.910     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      241 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6368.7        .90712E-02** at limit **
   2  Index         2.0739        5.9416        .50000       -.80191E-05
   3  Normalizat    .93501        .34714E-01    .45347E-01    .19356E-04
   4  Prefactor     .97031        .28380E-01    .45895E-01   -.18623E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.07393
  Normalizat = 0.935008
  Prefactor  = 0.970312
 **********
 **   18 **HESSE 
 **********

 FCN=   5665.910     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      274 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8355.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0739        6.1786        .50000       -.62514    
   3  Normalizat    .93501        .72103E-01    .26868E-03   -.95241    
   4  Prefactor     .97031        .58962E-01    .21488E-03   -.93726    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88037e-08
Minuit parameter uncertainties:
  1  0.0130696
  2  48.8767
  3  0.0721108
  4  0.0589657
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/608357': 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) = 5665.91049745
delta logL = 1.95165739569e-07

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.307e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.074e+00  4.888e+01  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  2.374e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  9.703e-01  5.897e-02  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  9.350e-01  7.211e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 21.824 3.413

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/608357/cmap_HighResolution_650937601_651196801_4FGL_J0127.2+0324_daily_bin1588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.03e-03', job_status='DONE', photon_flux_upper_limit='5.38e-08', time_completed='2021-08-21 00:41:29.579136', job_id='608357', GAL2='0.97', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1629531689.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.95e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1588' AND source_name='4FGL J0127.2+0324' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 00:41:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 608357: <4FGL_J0127.2+0324_daily_bin1588> in cluster <slac> Done

Job <4FGL_J0127.2+0324_daily_bin1588> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 21 00:25:36 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 00:25:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 21 00:25:38 2021
Terminated at Sat Aug 21 00:41:32 2021
Results reported at Sat Aug 21 00:41:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0127.2+0324_daily_bin1588 21.8237 3.413 650937601 651196801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0127.2+0324 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   755.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             222.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            956 sec.

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

