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


Performing analysis on: 4FGL_J0127.2+0324_daily_bin404
RA = 21.8237, Dec = 3.413
tmin = 344044801, tmax = 344304001
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='580827', job_status='RUN', time_executed='2021-08-14 01:07:02.889595', time_epoch_executed='1628928422.89' WHERE source_name='4FGL J0127.2+0324' and cadence='daily' and bin_id='404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580827

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580827/ft1_4FGL_J0127.2+0324_daily_bin404.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580827/ft2_4FGL_J0127.2+0324_daily_bin404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580827/ft1_4FGL_J0127.2+0324_daily_bin404.fits outfile=/scratch/kocevski/580827/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin404.fits ra=21.8237 dec=3.413 rad=12.0 tmin=344044801.0 tmax=344304001.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.75
user 3.19
sys 1.49

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/580827/ft2_4FGL_J0127.2+0324_daily_bin404.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/580827/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin404.fits evtable="EVENTS" outfile="/scratch/kocevski/580827/ft1_filtered_4FGL_J0127.2+0324_daily_bin404.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.79
user 0.35
sys 1.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580827/ft1_filtered_4FGL_J0127.2+0324_daily_bin404.fits" evtable="EVENTS" scfile=/scratch/kocevski/580827/ft2_4FGL_J0127.2+0324_daily_bin404.fits sctable="SC_DATA" outfile=/scratch/kocevski/580827/ltcube_344044801_344304001_4FGL_J0127.2+0324_daily_bin404.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/580827/ft2_4FGL_J0127.2+0324_daily_bin404.fits
.....................!
real 14.87
user 13.03
sys 1.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580827/ft1_filtered_4FGL_J0127.2+0324_daily_bin404.fits evtable="EVENTS" scfile=/scratch/kocevski/580827/ft2_4FGL_J0127.2+0324_daily_bin404.fits sctable="SC_DATA" expcube=/scratch/kocevski/580827/ltcube_344044801_344304001_4FGL_J0127.2+0324_daily_bin404.fits outfile=/scratch/kocevski/580827/expmap_344044801_344304001_4FGL_J0127.2+0324_daily_bin404.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/580827/ltcube_344044801_344304001_4FGL_J0127.2+0324_daily_bin404.fits
.....................!
real 193.08
user 185.92
sys 6.71

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/580827/ft1_filtered_4FGL_J0127.2+0324_daily_bin404.fits scfile=/scratch/kocevski/580827/ft2_4FGL_J0127.2+0324_daily_bin404.fits outfile=/scratch/kocevski/580827/cmap_344044801_344304001_4FGL_J0127.2+0324_daily_bin404.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.82
user 0.37
sys 1.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580827/ft1_filtered_4FGL_J0127.2+0324_daily_bin404.fits scfile=/scratch/kocevski/580827/ft2_4FGL_J0127.2+0324_daily_bin404.fits outfile=/scratch/kocevski/580827/cmap_HighResolution_344044801_344304001_4FGL_J0127.2+0324_daily_bin404.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.80
user 0.40
sys 1.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.560       1.0000         .10000E-03   10000.    
     3 'norm      '    2.6651       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .50422E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5525       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.1632       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .51912       1.0000         .10000E-03   10000.    
    14 'norm      '    19.759       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .69449       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1683       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4645.012     FROM MIGRAD    STATUS=CONVERGED    334 CALLS     1580 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1554         .0000    ** at limit **
   2  Prefactor     51.559        47.420         .0000        .10673E-02
   3  norm          2.6642        16.417         .0000        .16077E-03
   4  Prefactor     .10000E-03    32.672         .0000    ** at limit **
   5  Prefactor     .10001E-03    26.002         .0000    ** at limit **
   6  norm          .10000E-03    .71114         .0000    ** at limit **
   7  Prefactor     .10000E-03    54.337         .0000    ** at limit **
   8  Prefactor     1.5431        18.428         .0000        .70028E-02
   9  Prefactor     9.1623        8.4066         .0000       -.19356E-02
  10  Prefactor     .10000E-03    8.0129         .0000    ** at limit **
  11  Prefactor     .10002E-03    33.101         .0000    ** at limit **
  12  Prefactor     .10008E-03    27.392         .0000    ** at limit **
  13  Prefactor     .51980        7.6826         .0000        .11996E-02
  14  norm          19.759        15.258         .0000        .75522E-04
  15  Prefactor     .10000E-03    2.1887         .0000    ** at limit **
  16  Normalizat    .69435        .19943         .0000        .65854E-04
  17  Prefactor     1.1683        .16571         .0000        .13436E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 51.5589
  norm       = 2.66421
  Prefactor  = 0.000100004
  Prefactor  = 0.000100011
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 1.54307
  Prefactor  = 9.16229
  Prefactor  = 0.000100001
  Prefactor  = 0.000100016
  Prefactor  = 0.000100078
  Prefactor  = 0.519802
  norm       = 19.7586
  Prefactor  = 0.0001
  Normalizat = 0.694347
  Prefactor  = 1.16834
 **********
 **   18 **HESSE 
 **********

 FCN=   4645.012     FROM HESSE     STATUS=OK           219 CALLS     1799 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1727        .71498E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     51.559        47.417        .55853E-04   -1.4271    
   3  norm          2.6642        16.419        .24966E-03   -1.5382    
   4  Prefactor     .10000E-03    32.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    26.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.0843        .10908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    54.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.5431        18.614        .17089E-02   -1.5460    
   9  Prefactor     9.1623        8.3391        .13240E-03   -1.5102    
  10  Prefactor     .10000E-03    8.1128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    33.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10008E-03    27.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .51980        7.9675        .36156E-02   -1.5564    
  14  norm          19.759        15.264        .90104E-04   -1.4819    
  15  Prefactor     .10000E-03    2.1956        .98465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .69435        .22894        .28698E-03   -1.0412    
  17  Prefactor     1.1683        .19217        .19047E-03   -.87311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.42177e-08
Minuit parameter uncertainties:
  1  2.46495e-05
  2  47.4517
  3  13.2328
  4  0.0007346
  5  0.00109359
  6  0.000126427
  7  0.000453567
  8  10.7225
  9  8.34011
  10  0.000207101
  11  0.00145726
  12  0.00291879
  13  4.07041
  14  15.2673
  15  1.88076e-05
  16  0.229257
  17  0.192286
Done.

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

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.457e-03  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.168e+00  1.923e-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:  6.943e-01  2.293e-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: 6.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/580827/likelihoodResults_344044801_344304001_4FGL_J0127.2+0324_daily_bin404.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) = 4645.01212803
delta logL = -0.000143721133099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4645.01198437
delta logL = -5.97256075707e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2102       1.0000          .0000       10.000    
     3 'Normalizat'    .69435       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1683       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=   4645.012     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      239 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.965        .90712E-02** at limit **
   2  Index         2.2033        5.2113        .50000        .18140E-05
   3  Normalizat    .69435        .32192E-02    .64863E-01    .30234E-04
   4  Prefactor     1.1683        .27196E-02    .35426E-01    .31258E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.20325
  Normalizat = 0.694348
  Prefactor  = 1.16834
 **********
 **   18 **HESSE 
 **********

 FCN=   4645.012     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      270 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    128.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2033        5.6231        .50000       -.59360    
   3  Normalizat    .69435        .97765E-02    .28698E-03   -1.0412    
   4  Prefactor     1.1683        .82733E-02    .19047E-03   -.87311    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.33729e-09
Minuit parameter uncertainties:
  1  2.09918e-05
  2  181.138
  3  0.00977656
  4  0.00827335
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580827': 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) = 4645.01198436
delta logL = -5.51117409486e-08

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.099e-05  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.203e+00  1.811e+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.168e+00  8.273e-03  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:  6.943e-01  9.777e-03  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/580827/cmap_HighResolution_344044801_344304001_4FGL_J0127.2+0324_daily_bin404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-03', job_status='DONE', photon_flux_upper_limit='6.26e-08', time_completed='2021-08-14 01:15:40.501178', job_id='580827', GAL2='1.17', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1628928940.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='-5.51e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='404' AND source_name='4FGL J0127.2+0324' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:15:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 580827: <4FGL_J0127.2+0324_daily_bin404> in cluster <slac> Done

Job <4FGL_J0127.2+0324_daily_bin404> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Aug 14 01:00:58 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 01:04:09 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:09 2021
Terminated at Sat Aug 14 01:15:41 2021
Results reported at Sat Aug 14 01:15:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0127.2+0324_daily_bin404 21.8237 3.413 344044801 344304001 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 :                                   534.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             265.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            883 sec.

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

