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


Performing analysis on: 4FGL_J0127.2+0324_daily_bin226
RA = 21.8237, Dec = 3.413
tmin = 297907201, tmax = 298166401
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='580591', job_status='RUN', time_executed='2021-08-14 01:03:26.089577', time_epoch_executed='1628928206.09' WHERE source_name='4FGL J0127.2+0324' and cadence='daily' and bin_id='226'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580591

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580591/ft1_4FGL_J0127.2+0324_daily_bin226.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580591/ft2_4FGL_J0127.2+0324_daily_bin226.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580591/ft1_4FGL_J0127.2+0324_daily_bin226.fits outfile=/scratch/kocevski/580591/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin226.fits ra=21.8237 dec=3.413 rad=12.0 tmin=297907201.0 tmax=298166401.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.49
user 3.33
sys 1.14

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/580591/ft2_4FGL_J0127.2+0324_daily_bin226.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/580591/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin226.fits evtable="EVENTS" outfile="/scratch/kocevski/580591/ft1_filtered_4FGL_J0127.2+0324_daily_bin226.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.61
user 0.36
sys 1.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580591/ft1_filtered_4FGL_J0127.2+0324_daily_bin226.fits" evtable="EVENTS" scfile=/scratch/kocevski/580591/ft2_4FGL_J0127.2+0324_daily_bin226.fits sctable="SC_DATA" outfile=/scratch/kocevski/580591/ltcube_297907201_298166401_4FGL_J0127.2+0324_daily_bin226.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/580591/ft2_4FGL_J0127.2+0324_daily_bin226.fits
.....................!
real 14.04
user 12.60
sys 1.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580591/ft1_filtered_4FGL_J0127.2+0324_daily_bin226.fits evtable="EVENTS" scfile=/scratch/kocevski/580591/ft2_4FGL_J0127.2+0324_daily_bin226.fits sctable="SC_DATA" expcube=/scratch/kocevski/580591/ltcube_297907201_298166401_4FGL_J0127.2+0324_daily_bin226.fits outfile=/scratch/kocevski/580591/expmap_297907201_298166401_4FGL_J0127.2+0324_daily_bin226.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/580591/ltcube_297907201_298166401_4FGL_J0127.2+0324_daily_bin226.fits
.....................!
real 191.55
user 185.48
sys 5.73

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/580591/ft1_filtered_4FGL_J0127.2+0324_daily_bin226.fits scfile=/scratch/kocevski/580591/ft2_4FGL_J0127.2+0324_daily_bin226.fits outfile=/scratch/kocevski/580591/cmap_297907201_298166401_4FGL_J0127.2+0324_daily_bin226.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.57
user 0.39
sys 1.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580591/ft1_filtered_4FGL_J0127.2+0324_daily_bin226.fits scfile=/scratch/kocevski/580591/ft2_4FGL_J0127.2+0324_daily_bin226.fits outfile=/scratch/kocevski/580591/cmap_HighResolution_297907201_298166401_4FGL_J0127.2+0324_daily_bin226.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.61
user 0.39
sys 1.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.762       1.0000         .10000E-03   10000.    
     3 'norm      '    10.143       1.0000         .10000E-03   10000.    
     4 'Prefactor '    57.500       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .91139E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    4.4138       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10934E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5937       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0843       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .54138       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10441E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .30347E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7657       1.0000         .10000E-03   10000.    
    14 'norm      '    37.156       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2499       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .78966       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=   5150.947     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     1845 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6576        .17716E-03** at limit **
   2  Prefactor     39.771        36.452        .63566E-04    .19673E-05
   3  norm          10.141        10.907        .12581E-03   -.18072E-05
   4  Prefactor     57.519        63.867        .52905E-04   -.11733E-04
   5  Prefactor     .10001E-03    548.54        .18246E-02** at limit **
   6  norm          4.4138        1.7302        .56582E-04    .15451E-03
   7  Prefactor     .10000E-03    21.857        .18142E-02** at limit **
   8  Prefactor     7.5894        7.2918        .14553E-03   -.11718E-04
   9  Prefactor     5.0836        4.7088        .14496E-03   -.37097E-04
  10  Prefactor     .54348        40.507        .41369E-02    .89910E-04
  11  Prefactor     .10000E-03    28.822        .18142E-02** at limit **
  12  Prefactor     .10000E-03    79.790        .20075    ** at limit **
  13  Prefactor     2.7660        2.7162        .11380E-03   -.31570E-04
  14  norm          37.163        22.406        .32875E-03    .52391E-04
  15  Prefactor     .10000E-03    2.5631        .11207E-02** at limit **
  16  Normalizat    1.2498        .23435        .24361E-03   -.41674E-04
  17  Prefactor     .78967        .18683        .23903E-03   -.32278E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 39.7705
  norm       = 10.1413
  Prefactor  = 57.5195
  Prefactor  = 0.000100012
  norm       = 4.41376
  Prefactor  = 0.0001
  Prefactor  = 7.58937
  Prefactor  = 5.08357
  Prefactor  = 0.543475
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.76596
  norm       = 37.1626
  Prefactor  = 0.0001
  Normalizat = 1.24978
  Prefactor  = 0.789666
 **********
 **   18 **HESSE 
 **********

 FCN=   5150.947     FROM HESSE     STATUS=OK           217 CALLS     2062 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6577        .35432E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     39.771        36.452        .25426E-05   -1.4446    
   3  norm          10.141        10.906        .50325E-05   -1.5071    
   4  Prefactor     57.519        63.860        .10581E-04   -1.4190    
   5  Prefactor     .10001E-03    548.90        .36491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.4138        1.7300        .22633E-05   -1.5288    
   7  Prefactor     .10000E-03    21.858        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.5894        7.2916        .58211E-05   -1.5157    
   9  Prefactor     5.0836        4.7086        .57983E-05   -1.5257    
  10  Prefactor     .54348        40.825        .16548E-03   -1.5561    
  11  Prefactor     .10000E-03    28.823        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    82.152        .19626       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7660        2.7162        .45518E-05   -1.5375    
  14  norm          37.163        22.404        .13150E-04   -1.4488    
  15  Prefactor     .10000E-03    2.5632        .22415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2498        .23443        .97444E-05   -.85078    
  17  Prefactor     .78967        .18698        .47807E-04   -1.0011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70852e-10
Minuit parameter uncertainties:
  1  9.62675e-06
  2  36.472
  3  10.9084
  4  63.9366
  5  0.00508792
  6  1.72997
  7  2.31361e-05
  8  7.29246
  9  4.70899
  10  9.42648
  11  5.00087e-05
  12  0.000571443
  13  2.7163
  14  22.4093
  15  2.41457e-06
  16  0.234624
  17  0.187131
Done.

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

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  5.001e-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:  7.897e-01  1.871e-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.250e+00  2.346e-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.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/580591/likelihoodResults_297907201_298166401_4FGL_J0127.2+0324_daily_bin226.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) = 5150.94679427
delta logL = -0.000165136909345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5150.94662918
delta logL = -4.40295480075e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8931       1.0000          .0000       10.000    
     3 'Normalizat'    1.2498       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78968       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=   5150.947     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      233 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1250.8        .90712E-02** at limit **
   2  Index         1.8881        5.6737        .50000        .12649E-05
   3  Normalizat    1.2498        .36094E-01    .55093E-01    .53780E-05
   4  Prefactor     .78967        .28999E-01    .43583E-01    .13203E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.88813
  Normalizat = 1.24978
  Prefactor  = 0.78967
 **********
 **   18 **HESSE 
 **********

 FCN=   5150.947     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6536.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8881        8.6447        .50000       -.67177    
   3  Normalizat    1.2498        .66242E-01    .24361E-03   -.85078    
   4  Prefactor     .78967        .53225E-01    .23903E-03   -1.0011    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.93199e-10
Minuit parameter uncertainties:
  1  6.22281e-06
  2  42.6799
  3  0.0662469
  4  0.0532283
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580591': 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) = 5150.9466291
delta logL = 3.03771230392e-08

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  6.223e-06  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.888e+00  4.268e+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:  7.897e-01  5.323e-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.250e+00  6.625e-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/580591/cmap_HighResolution_297907201_298166401_4FGL_J0127.2+0324_daily_bin226.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.41e-03', job_status='DONE', photon_flux_upper_limit='5.89e-08', time_completed='2021-08-14 01:12:37.159067', job_id='580591', GAL2='0.79', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1628928757.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='3.04e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='226' AND source_name='4FGL J0127.2+0324' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:12:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0028>
Subject: Job 580591: <4FGL_J0127.2+0324_daily_bin226> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0127.2+0324_daily_bin226 21.8237 3.413 297907201 298166401 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 :                                   564.21 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             341.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   644 sec.
    Turnaround time :                            716 sec.

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

