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


Performing analysis on: 4FGL_J0127.2+0324_daily_bin423
RA = 21.8237, Dec = 3.413
tmin = 348969601, tmax = 349228801
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='580846', job_status='RUN', time_executed='2021-08-14 01:08:39.237969', time_epoch_executed='1628928519.24' WHERE source_name='4FGL J0127.2+0324' and cadence='daily' and bin_id='423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580846

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580846/ft1_4FGL_J0127.2+0324_daily_bin423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580846/ft2_4FGL_J0127.2+0324_daily_bin423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580846/ft1_4FGL_J0127.2+0324_daily_bin423.fits outfile=/scratch/kocevski/580846/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin423.fits ra=21.8237 dec=3.413 rad=12.0 tmin=348969601.0 tmax=349228801.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.45
user 3.58
sys 0.80

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580846/ft1_filtered_4FGL_J0127.2+0324_daily_bin423.fits" evtable="EVENTS" scfile=/scratch/kocevski/580846/ft2_4FGL_J0127.2+0324_daily_bin423.fits sctable="SC_DATA" outfile=/scratch/kocevski/580846/ltcube_348969601_349228801_4FGL_J0127.2+0324_daily_bin423.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/580846/ft2_4FGL_J0127.2+0324_daily_bin423.fits
.....................!
real 14.66
user 13.58
sys 1.01

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580846/ft1_filtered_4FGL_J0127.2+0324_daily_bin423.fits evtable="EVENTS" scfile=/scratch/kocevski/580846/ft2_4FGL_J0127.2+0324_daily_bin423.fits sctable="SC_DATA" expcube=/scratch/kocevski/580846/ltcube_348969601_349228801_4FGL_J0127.2+0324_daily_bin423.fits outfile=/scratch/kocevski/580846/expmap_348969601_349228801_4FGL_J0127.2+0324_daily_bin423.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/580846/ltcube_348969601_349228801_4FGL_J0127.2+0324_daily_bin423.fits
.....................!
real 195.10
user 188.67
sys 5.59

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/580846/ft1_filtered_4FGL_J0127.2+0324_daily_bin423.fits scfile=/scratch/kocevski/580846/ft2_4FGL_J0127.2+0324_daily_bin423.fits outfile=/scratch/kocevski/580846/cmap_348969601_349228801_4FGL_J0127.2+0324_daily_bin423.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 1.14
user 0.38
sys 0.74

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580846/ft1_filtered_4FGL_J0127.2+0324_daily_bin423.fits scfile=/scratch/kocevski/580846/ft2_4FGL_J0127.2+0324_daily_bin423.fits outfile=/scratch/kocevski/580846/cmap_HighResolution_348969601_349228801_4FGL_J0127.2+0324_daily_bin423.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 1.14
user 0.38
sys 0.75

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69463       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13374E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    48.248       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.0657       1.0000         .10000E-03   10000.    
     7 'Prefactor '    93.790       1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.742       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5192       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.597       1.0000         .10000E-03   10000.    
    14 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6850       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .70225       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2032       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=   4924.335     FROM MIGRAD    STATUS=CONVERGED    325 CALLS     1584 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .69471        1.9665        .29995E-06    .18250E-04
   2  Prefactor     .10000E-03    60.892        .23821E-05** at limit **
   3  norm          .10000E-03    29.817        .14592E-05** at limit **
   4  Prefactor     48.243        48.921        .82974E-06    .13006E-05
   5  Prefactor     .10000E-03    20.920       -.24112E-06** at limit **
   6  norm          1.0657        1.2274        .46163E-07   -.35361E-04
   7  Prefactor     93.772        54.241        .14447E-05   -.24228E-05
   8  Prefactor     36.743        18.215        .13429E-06   -.63705E-05
   9  Prefactor     .10000E-03    2.1920       -.23088E-06** at limit **
  10  Prefactor     2.5145        18.553        .84766E-05    .73071E-06
  11  Prefactor     .10000E-03    15.276        .18308E-06** at limit **
  12  Prefactor     .10000E-03    53.271       -.22242E-05** at limit **
  13  Prefactor     11.597        6.7199        .10488E-06    .22395E-05
  14  norm          .10000E-03    36.632       -.17733E-05** at limit **
  15  Prefactor     4.6849        6.0730        .45124E-06    .46732E-04
  16  Normalizat    .70250        .21152       -.95475E-06   -.10478E-04
  17  Prefactor     1.2030        .17445       -.49234E-06   -.37931E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.694715
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 48.2431
  Prefactor  = 0.0001
  norm       = 1.06567
  Prefactor  = 93.7724
  Prefactor  = 36.7431
  Prefactor  = 0.0001
  Prefactor  = 2.51448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5971
  norm       = 0.0001
  Prefactor  = 4.68495
  Normalizat = 0.702501
  Prefactor  = 1.20301
 **********
 **   18 **HESSE 
 **********

 FCN=   4924.335     FROM HESSE     STATUS=OK           219 CALLS     1803 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .69471        1.9115        .15881E-03   -1.5541    
   2  Prefactor     .10000E-03    61.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    30.855        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     48.243        48.939        .57729E-04   -1.4318    
   5  Prefactor     .10000E-03    20.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.0657        1.2264        .47249E-04   -1.5502    
   7  Prefactor     93.772        54.292        .41499E-04   -1.3768    
   8  Prefactor     36.743        18.214        .66118E-04   -1.4495    
   9  Prefactor     .10000E-03    2.2008        .10157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.5145        18.586        .12870E-02   -1.5391    
  11  Prefactor     .10000E-03    15.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    53.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.597        6.7207        .11764E-03   -1.5027    
  14  norm          .10000E-03    37.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6849        6.0790        .18592E-03   -1.5275    
  16  Normalizat    .70250        .23893        .31322E-03   -1.0379    
  17  Prefactor     1.2030        .19843        .20481E-03   -.86239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9118e-11
Minuit parameter uncertainties:
  1  1.91164
  2  0.00024923
  3  0.000153132
  4  48.9796
  5  2.51062e-06
  6  1.22645
  7  54.3205
  8  18.2172
  9  1.40694e-05
  10  13.678
  11  3.91183e-06
  12  3.09618e-05
  13  6.72112
  14  0.000126006
  15  6.07979
  16  0.239285
  17  0.19855
Done.

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

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  3.912e-06  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:  1.203e+00  1.986e-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:  7.025e-01  2.393e-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.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/580846/likelihoodResults_348969601_349228801_4FGL_J0127.2+0324_daily_bin423.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) = 4924.3357167
delta logL = -0.000309251179715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4924.33540871
delta logL = -1.26292525238e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1929       1.0000          .0000       10.000    
     3 'Normalizat'    .70248       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2030       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=   4924.335     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      268 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10170E-03    63.903        .18142E-02** at limit **
   2  Index         2.1294        5.9629        .50000        .23164E-04
   3  Normalizat    .70251        .11777E-01    .31322E-03    .26083E-03
   4  Prefactor     1.2030        .98926E-02    .20481E-03   -.24956E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101702
  Index      = 2.12938
  Normalizat = 0.702506
  Prefactor  = 1.20301
 **********
 **   18 **HESSE 
 **********

 FCN=   4924.335     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      297 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10170E-03    278.28        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1294        8.0554        .50000       -.61153    
   3  Normalizat    .70251        .25129E-01    .12529E-04   -1.0379    
   4  Prefactor     1.2030        .21109E-01    .40963E-04   -.86239    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.86789e-08
Minuit parameter uncertainties:
  1  0.04373
  2  329.001
  3  0.0251293
  4  0.0211087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580846': 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) = 4924.33540825
delta logL = -8.05685886007e-07

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  1.017e-04  4.373e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.129e+00  3.290e+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:  1.203e+00  2.111e-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:  7.025e-01  2.513e-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/580846/cmap_HighResolution_348969601_349228801_4FGL_J0127.2+0324_daily_bin423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.36e-03', job_status='DONE', photon_flux_upper_limit='4.50e-08', time_completed='2021-08-14 01:17:21.105541', job_id='580846', GAL2='1.20', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1628929041.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='-8.06e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='423' AND source_name='4FGL J0127.2+0324' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:17:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 580846: <4FGL_J0127.2+0324_daily_bin423> in cluster <slac> Done

Job <4FGL_J0127.2+0324_daily_bin423> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Aug 14 01:01:00 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 01:04:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 01:04:45 2021
Terminated at Sat Aug 14 01:17:21 2021
Results reported at Sat Aug 14 01:17:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0127.2+0324_daily_bin423 21.8237 3.413 348969601 349228801 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 :                                   530.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             233.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            981 sec.

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

