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


Performing analysis on: 4FGL_J0127.2+0324_daily_bin1616
RA = 21.8237, Dec = 3.413
tmin = 658195201, tmax = 658454401
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='139568', job_status='RUN', time_executed='2021-12-07 12:07:19.311176', time_epoch_executed='1638907639.31' WHERE source_name='4FGL J0127.2+0324' and cadence='daily' and bin_id='1616'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/139568

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/139568/ft1_4FGL_J0127.2+0324_daily_bin1616.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/139568/ft2_4FGL_J0127.2+0324_daily_bin1616.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/139568/ft1_4FGL_J0127.2+0324_daily_bin1616.fits outfile=/scratch/kocevski/139568/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin1616.fits ra=21.8237 dec=3.413 rad=12.0 tmin=658195201.0 tmax=658454401.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.94
user 4.62
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/139568/ft2_4FGL_J0127.2+0324_daily_bin1616.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/139568/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin1616.fits evtable="EVENTS" outfile="/scratch/kocevski/139568/ft1_filtered_4FGL_J0127.2+0324_daily_bin1616.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.53
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/139568/ft1_filtered_4FGL_J0127.2+0324_daily_bin1616.fits" evtable="EVENTS" scfile=/scratch/kocevski/139568/ft2_4FGL_J0127.2+0324_daily_bin1616.fits sctable="SC_DATA" outfile=/scratch/kocevski/139568/ltcube_658195201_658454401_4FGL_J0127.2+0324_daily_bin1616.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/139568/ft2_4FGL_J0127.2+0324_daily_bin1616.fits
.....................!
real 24.97
user 24.41
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/139568/ft1_filtered_4FGL_J0127.2+0324_daily_bin1616.fits evtable="EVENTS" scfile=/scratch/kocevski/139568/ft2_4FGL_J0127.2+0324_daily_bin1616.fits sctable="SC_DATA" expcube=/scratch/kocevski/139568/ltcube_658195201_658454401_4FGL_J0127.2+0324_daily_bin1616.fits outfile=/scratch/kocevski/139568/expmap_658195201_658454401_4FGL_J0127.2+0324_daily_bin1616.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/139568/ltcube_658195201_658454401_4FGL_J0127.2+0324_daily_bin1616.fits
.....................!
real 198.42
user 192.44
sys 5.12

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/139568/ft1_filtered_4FGL_J0127.2+0324_daily_bin1616.fits scfile=/scratch/kocevski/139568/ft2_4FGL_J0127.2+0324_daily_bin1616.fits outfile=/scratch/kocevski/139568/cmap_658195201_658454401_4FGL_J0127.2+0324_daily_bin1616.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 0.65
user 0.48
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/139568/ft1_filtered_4FGL_J0127.2+0324_daily_bin1616.fits scfile=/scratch/kocevski/139568/ft2_4FGL_J0127.2+0324_daily_bin1616.fits outfile=/scratch/kocevski/139568/cmap_HighResolution_658195201_658454401_4FGL_J0127.2+0324_daily_bin1616.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 0.59
user 0.43
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/139568/ft1_filtered_4FGL_J0127.2+0324_daily_bin1616.fits', '/scratch/kocevski/139568/ft2_4FGL_J0127.2+0324_daily_bin1616.fits', expMap='/scratch/kocevski/139568/expmap_658195201_658454401_4FGL_J0127.2+0324_daily_bin1616.fits', expCube='/scratch/kocevski/139568/ltcube_658195201_658454401_4FGL_J0127.2+0324_daily_bin1616.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/139568/Model_4FGL_J0127.2+0324_daily_bin1616.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/139568/ft1_filtered_4FGL_J0127.2+0324_daily_bin1616.fits
Spacecraft file(s): /scratch/kocevski/139568/ft2_4FGL_J0127.2+0324_daily_bin1616.fits
Exposure map: /scratch/kocevski/139568/expmap_658195201_658454401_4FGL_J0127.2+0324_daily_bin1616.fits
Exposure cube: /scratch/kocevski/139568/ltcube_658195201_658454401_4FGL_J0127.2+0324_daily_bin1616.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/139568/Model_4FGL_J0127.2+0324_daily_bin1616.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) = 5642.86287655

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8552       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.7824       1.0000         .10000E-03   10000.    
     3 'norm      '    17.291       1.0000         .10000E-03   10000.    
     4 'Prefactor '    55.072       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    13.794       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0501       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    168.41       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.596       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0699       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .97082       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=   5642.539     FROM MIGRAD    STATUS=CONVERGED    323 CALLS     1627 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8558        3.3962        .38309E-02    .41547E-04
   2  Prefactor     7.7790        23.765        .35935E-02    .67145E-03
   3  norm          17.290        16.326        .24080E-02    .49861E-04
   4  Prefactor     55.071        72.548        .13513E-02    .95850E-03
   5  Prefactor     .10001E-03    44.994        .90712E-02** at limit **
   6  norm          13.795        2.8470        .26961E-02    .12269E-03
   7  Prefactor     .10012E-03    36.477        .90712E-02** at limit **
   8  Prefactor     .10000E-03    10.924        .90712E-02** at limit **
   9  Prefactor     4.0386        9.5957        .50089E-02    .54060E-03
  10  Prefactor     .10000E-03    11.805        .90712E-02** at limit **
  11  Prefactor     .10000E-03    16.274        .90712E-02** at limit **
  12  Prefactor     168.41        123.31        .77716E-03   -.17818E-04
  13  Prefactor     .10000E-03    2.2735        .90712E-02** at limit **
  14  norm          .10004E-03    32.189        .90712E-02** at limit **
  15  Prefactor     12.597        9.5317        .28217E-02    .65324E-04
  16  Normalizat    1.0696        .22261        .67145E-01    .68463E-04
  17  Prefactor     .97102        .16634        .45901E-01    .10710E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.85577
  Prefactor  = 7.77903
  norm       = 17.2901
  Prefactor  = 55.0709
  Prefactor  = 0.000100014
  norm       = 13.7951
  Prefactor  = 0.000100117
  Prefactor  = 0.0001
  Prefactor  = 4.03861
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 168.407
  Prefactor  = 0.0001
  norm       = 0.000100042
  Prefactor  = 12.5968
  Normalizat = 1.0696
  Prefactor  = 0.971025
 **********
 **   18 **HESSE 
 **********

 FCN=   5642.539     FROM HESSE     STATUS=OK           219 CALLS     1846 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8558        3.4051        .93069E-04   -1.5184    
   2  Prefactor     7.7790        23.756        .14374E-03   -1.5150    
   3  norm          17.290        16.333        .96320E-04   -1.4876    
   4  Prefactor     55.071        72.572        .54052E-04   -1.4222    
   5  Prefactor     .10001E-03    45.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.795        2.8493        .52991E-04   -1.4965    
   7  Prefactor     .10012E-03    36.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.0386        9.5795        .20036E-03   -1.5306    
  10  Prefactor     .10000E-03    12.130        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     168.41        123.92        .31086E-04   -1.3105    
  13  Prefactor     .10000E-03    2.2850        .11060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10004E-03    32.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.597        9.5384        .11287E-03   -1.4998    
  16  Normalizat    1.0696        .26082        .29705E-03   -.90734    
  17  Prefactor     .97102        .19444        .24142E-03   -.93702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72816e-08
Minuit parameter uncertainties:
  1  3.40515
  2  23.7851
  3  16.3369
  4  72.6893
  5  0.00156859
  6  2.84937
  7  0.004142
  8  6.4528e-05
  9  9.58317
  10  9.98518e-06
  11  6.00876e-05
  12  124.117
  13  1.20903e-05
  14  0.00233382
  15  9.53952
  16  0.261136
  17  0.194577
Done.

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

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  6.009e-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.710e-01  1.946e-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:  1.070e+00  2.611e-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: 4.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/139568/likelihoodResults_658195201_658454401_4FGL_J0127.2+0324_daily_bin1616.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) = 5642.5389992
delta logL = -0.000291678024041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5642.53871053
delta logL = -3.00744522974e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10820E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5541       1.0000          .0000       10.000    
     3 'Normalizat'    1.0696       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97104       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5642.539     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      282 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10887E-03    1.1478        .18142E-01** at limit **
   2  Index         2.3745        5.3507        .50000        .23709E-04
   3  Normalizat    1.0696        .17974E-02    .29705E-03    .13472E-04
   4  Prefactor     .97103        .14074E-02    .24142E-03    .25099E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000108868
  Index      = 2.37454
  Normalizat = 1.0696
  Prefactor  = 0.971026
 **********
 **   18 **HESSE 
 **********

 FCN=   5642.539     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      311 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10887E-03    74.406        .24304E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3745        5.0387        .50000       -.55282    
   3  Normalizat    1.0696        .14570E-01    .11882E-04   -.90734    
   4  Prefactor     .97103        .11408E-01    .96569E-05   -.93702    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.04983e-08
Minuit parameter uncertainties:
  1  0.0514396
  2  436.522
  3  0.0145704
  4  0.0114085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/139568': 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) = 5642.5387094
delta logL = -1.87648402061e-06

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  1.089e-04  5.144e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.375e+00  4.365e+02  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.710e-01  1.141e-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:  1.070e+00  1.457e-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/139568/cmap_HighResolution_658195201_658454401_4FGL_J0127.2+0324_daily_bin1616.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.51e-03', job_status='DONE', photon_flux_upper_limit='4.70e-08', time_completed='2021-12-07 12:16:59.507324', job_id='139568', GAL2='0.97', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1638908219.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-1.88e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1616' AND source_name='4FGL J0127.2+0324' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:16:59 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 139568: <4FGL_J0127.2+0324_daily_bin1616> in cluster <slac> Done

Job <4FGL_J0127.2+0324_daily_bin1616> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec  7 12:05:27 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:07:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 12:07:10 2021
Terminated at Tue Dec  7 12:17:00 2021
Results reported at Tue Dec  7 12:17:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0127.2+0324_daily_bin1616 21.8237 3.413 658195201 658454401 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 :                                   576.39 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             353.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   589 sec.
    Turnaround time :                            693 sec.

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

