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


Performing analysis on: 4FGL_J0127.2+0324_daily_bin315
RA = 21.8237, Dec = 3.413
tmin = 320976001, tmax = 321235201
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='580720', job_status='RUN', time_executed='2021-08-14 01:07:28.712530', time_epoch_executed='1628928448.71' WHERE source_name='4FGL J0127.2+0324' and cadence='daily' and bin_id='315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580720

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580720/ft1_4FGL_J0127.2+0324_daily_bin315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580720/ft2_4FGL_J0127.2+0324_daily_bin315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580720/ft1_4FGL_J0127.2+0324_daily_bin315.fits outfile=/scratch/kocevski/580720/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin315.fits ra=21.8237 dec=3.413 rad=12.0 tmin=320976001.0 tmax=321235201.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 8.72
user 3.29
sys 5.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580720/ft1_filtered_4FGL_J0127.2+0324_daily_bin315.fits" evtable="EVENTS" scfile=/scratch/kocevski/580720/ft2_4FGL_J0127.2+0324_daily_bin315.fits sctable="SC_DATA" outfile=/scratch/kocevski/580720/ltcube_320976001_321235201_4FGL_J0127.2+0324_daily_bin315.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/580720/ft2_4FGL_J0127.2+0324_daily_bin315.fits
.....................!
real 18.33
user 12.13
sys 6.02

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580720/ft1_filtered_4FGL_J0127.2+0324_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/580720/ft2_4FGL_J0127.2+0324_daily_bin315.fits sctable="SC_DATA" expcube=/scratch/kocevski/580720/ltcube_320976001_321235201_4FGL_J0127.2+0324_daily_bin315.fits outfile=/scratch/kocevski/580720/expmap_320976001_321235201_4FGL_J0127.2+0324_daily_bin315.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/580720/ltcube_320976001_321235201_4FGL_J0127.2+0324_daily_bin315.fits
.....................!
real 204.14
user 191.75
sys 11.40

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/580720/ft1_filtered_4FGL_J0127.2+0324_daily_bin315.fits scfile=/scratch/kocevski/580720/ft2_4FGL_J0127.2+0324_daily_bin315.fits outfile=/scratch/kocevski/580720/cmap_320976001_321235201_4FGL_J0127.2+0324_daily_bin315.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 5.61
user 0.39
sys 5.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580720/ft1_filtered_4FGL_J0127.2+0324_daily_bin315.fits scfile=/scratch/kocevski/580720/ft2_4FGL_J0127.2+0324_daily_bin315.fits outfile=/scratch/kocevski/580720/cmap_HighResolution_320976001_321235201_4FGL_J0127.2+0324_daily_bin315.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 5.59
user 0.38
sys 5.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4467       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    16.518       1.0000         .10000E-03   10000.    
     4 'Prefactor '    97.410       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.1903       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11169E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.668       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.8567       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.387       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    20.965       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5044       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.4748       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .43886       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=   4614.783     FROM MIGRAD    STATUS=CONVERGED    321 CALLS     1577 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4466        2.8722        .54463E-02    .20694E-03
   2  Prefactor     .10001E-03    26.512        .90712E-02** at limit **
   3  norm          16.519        21.865        .24637E-02   -.11435E-03
   4  Prefactor     97.410        68.620        .10182E-02    .30740E-03
   5  Prefactor     .10000E-03    21.376        .90712E-02** at limit **
   6  norm          3.1903        1.5223        .56715E-02    .57341E-04
   7  Prefactor     .10000E-03    68.558        .90712E-02** at limit **
   8  Prefactor     20.668        17.222        .22026E-02    .33921E-03
   9  Prefactor     9.8550        7.0974        .31909E-02   -.24030E-03
  10  Prefactor     .10000E-03    2.8137        .90712E-02** at limit **
  11  Prefactor     18.387        21.830        .23351E-02   -.20940E-04
  12  Prefactor     .10001E-03    26.109        .90712E-02** at limit **
  13  Prefactor     .10000E-03    1.8175        .90712E-02** at limit **
  14  norm          20.966        21.530        .21869E-02   -.58889E-04
  15  Prefactor     4.5048        7.1857        .47425E-02   -.45187E-03
  16  Normalizat    1.4750        .20452        .48645E-01    .39820E-05
  17  Prefactor     .43876        .15971        .64585E-01    .33825E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.44661
  Prefactor  = 0.000100014
  norm       = 16.5194
  Prefactor  = 97.4095
  Prefactor  = 0.0001
  norm       = 3.19031
  Prefactor  = 0.0001
  Prefactor  = 20.6677
  Prefactor  = 9.85503
  Prefactor  = 0.0001
  Prefactor  = 18.3868
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 20.966
  Prefactor  = 4.50479
  Normalizat = 1.47498
  Prefactor  = 0.438755
 **********
 **   18 **HESSE 
 **********

 FCN=   4614.783     FROM HESSE     STATUS=OK           225 CALLS     1802 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4466        2.8693        .10119E-03   -1.5337    
   2  Prefactor     .10001E-03    26.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          16.519        21.915        .98546E-04   -1.4895    
   4  Prefactor     97.410        68.611        .40728E-04   -1.3731    
   5  Prefactor     .10000E-03    21.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.1903        1.5213        .55696E-04   -1.5351    
   7  Prefactor     .10000E-03    69.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.668        17.226        .44051E-03   -1.4798    
   9  Prefactor     9.8550        7.1064        .12764E-03   -1.5080    
  10  Prefactor     .10000E-03    2.8176        .11129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.387        21.831        .93405E-04   -1.4850    
  12  Prefactor     .10001E-03    26.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.8276        .89431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          20.966        21.534        .87476E-04   -1.4792    
  15  Prefactor     4.5048        7.1743        .18970E-03   -1.5283    
  16  Normalizat    1.4750        .23512        .21504E-03   -.78484    
  17  Prefactor     .43876        .18182        .28586E-03   -1.1487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.102e-09
Minuit parameter uncertainties:
  1  2.86937
  2  0.00119847
  3  21.9253
  4  68.6669
  5  3.14105e-05
  6  1.52132
  7  2.69943e-06
  8  17.2305
  9  7.10699
  10  8.55691e-07
  11  21.8401
  12  0.00118587
  13  1.03085e-06
  14  21.5415
  15  7.1757
  16  0.235292
  17  0.182062
Done.

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

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  1.839e+01  2.184e+01  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:  4.388e-01  1.821e-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.475e+00  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.97
Ra Dec: 21.824 3.413
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 9.64e-09 +/- 1.14e-08
Energy Flux (Fixed Index): 7.24e-06 +/- 8.60e-06

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

Saving results to:
/scratch/kocevski/580720/likelihoodResults_320976001_321235201_4FGL_J0127.2+0324_daily_bin315.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) = 4614.61106722
delta logL = 0.172421436286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4614.6110404
delta logL = 0.172448256202

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.726       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5172       1.0000          .0000       10.000    
     3 'Normalizat'    1.4782       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .43713       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=   4614.611     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      271 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.679        1883.2        .18688E-02    .12167E-05
   2  Index         1.5158        6.7287        .21056        .27675E-04
   3  Normalizat    1.4782        .14235        .48598E-01    .46167E-05
   4  Prefactor     .43714        .97190E-01    .64685E-01    .31995E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.6785
  Index      = 1.51577
  Normalizat = 1.47818
  Prefactor  = 0.437141
 **********
 **   18 **HESSE 
 **********

 FCN=   4614.611     FROM HESSE     STATUS=OK            33 CALLS      304 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.679        34.645        .74750E-04   -1.4636    
   2  Index         1.5158        .71068        .10737E-01   -.77099    
   3  Normalizat    1.4782        .22899        .21483E-03   -.78393    
   4  Prefactor     .43714        .17594        .28631E-03   -1.1495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8166e-12
Minuit parameter uncertainties:
  1  34.6693
  2  0.715421
  3  0.229146
  4  0.176162
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580720': 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) = 4614.61103645
delta logL = 0.172452205646

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  2.868e+01  3.467e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.516e+00  7.154e-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:  4.371e-01  1.762e-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.478e+00  2.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.31
Ra Dec: 21.824 3.413
Photon Index (Free Index): 1.52 +/- 0.72
Photon Flux (Free Index): 6.57e-09 +/- 8.69e-09
Energy Flux (Free Index): 1.97e-05 +/- 4.13e-05

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/580720/cmap_HighResolution_320976001_321235201_4FGL_J0127.2+0324_daily_bin315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.84e-03', comment='SUCCESS', photon_flux='9.64e-09', energy_flux2='1.97e-05', photon_flux_error='1.14e-08', dlogl='1.72e-01', energy_flux='7.24e-06', photon_flux2='6.57e-09', job_status='DONE', time_completed='2021-08-14 01:17:11.008128', photon_index_error2='0.72', photon_index2='1.52', ts='1.97', fit_tolerance='1e-08', GAL='0.44', photon_index_error='0.00', photon_flux_upper_limit='5.14e-08', energy_flux_error2='4.13e-05', EG='1.47', time_epoch_completed='1628929031.01', return_code='0', job_id='580720', GAL2='0.44', EG2='1.48', return_code2='0', energy_flux_error='8.60e-06', photon_flux_error2='8.69e-09', ts2='2.31', photon_index='1.97' WHERE bin_id='315' AND source_name='4FGL J0127.2+0324' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:17:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 580720: <4FGL_J0127.2+0324_daily_bin315> in cluster <slac> Done

Job <4FGL_J0127.2+0324_daily_bin315> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Aug 14 01:00:50 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 01:02:52 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:02:52 2021
Terminated at Sat Aug 14 01:17:12 2021
Results reported at Sat Aug 14 01:17:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0127.2+0324_daily_bin315 21.8237 3.413 320976001 321235201 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 :                                   659.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             237.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            982 sec.

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

