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


Performing analysis on: 4FGL_J0127.2+0324_daily_bin146
RA = 21.8237, Dec = 3.413
tmin = 277171201, tmax = 277430401
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='580467', job_status='RUN', time_executed='2021-08-14 01:04:18.441314', time_epoch_executed='1628928258.44' WHERE source_name='4FGL J0127.2+0324' and cadence='daily' and bin_id='146'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580467

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580467/ft1_4FGL_J0127.2+0324_daily_bin146.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580467/ft2_4FGL_J0127.2+0324_daily_bin146.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580467/ft1_4FGL_J0127.2+0324_daily_bin146.fits outfile=/scratch/kocevski/580467/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin146.fits ra=21.8237 dec=3.413 rad=12.0 tmin=277171201.0 tmax=277430401.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 3.42
user 2.77
sys 0.63

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/580467/ft2_4FGL_J0127.2+0324_daily_bin146.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/580467/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin146.fits evtable="EVENTS" outfile="/scratch/kocevski/580467/ft1_filtered_4FGL_J0127.2+0324_daily_bin146.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.89
user 0.28
sys 0.58

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580467/ft1_filtered_4FGL_J0127.2+0324_daily_bin146.fits" evtable="EVENTS" scfile=/scratch/kocevski/580467/ft2_4FGL_J0127.2+0324_daily_bin146.fits sctable="SC_DATA" outfile=/scratch/kocevski/580467/ltcube_277171201_277430401_4FGL_J0127.2+0324_daily_bin146.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/580467/ft2_4FGL_J0127.2+0324_daily_bin146.fits
.....................!
real 10.72
user 9.88
sys 0.78

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580467/ft1_filtered_4FGL_J0127.2+0324_daily_bin146.fits evtable="EVENTS" scfile=/scratch/kocevski/580467/ft2_4FGL_J0127.2+0324_daily_bin146.fits sctable="SC_DATA" expcube=/scratch/kocevski/580467/ltcube_277171201_277430401_4FGL_J0127.2+0324_daily_bin146.fits outfile=/scratch/kocevski/580467/expmap_277171201_277430401_4FGL_J0127.2+0324_daily_bin146.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/580467/ltcube_277171201_277430401_4FGL_J0127.2+0324_daily_bin146.fits
.....................!
real 154.81
user 150.30
sys 4.15

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/580467/ft1_filtered_4FGL_J0127.2+0324_daily_bin146.fits scfile=/scratch/kocevski/580467/ft2_4FGL_J0127.2+0324_daily_bin146.fits outfile=/scratch/kocevski/580467/cmap_277171201_277430401_4FGL_J0127.2+0324_daily_bin146.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=21.8237 yref=3.413 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.91
user 0.32
sys 0.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580467/ft1_filtered_4FGL_J0127.2+0324_daily_bin146.fits scfile=/scratch/kocevski/580467/ft2_4FGL_J0127.2+0324_daily_bin146.fits outfile=/scratch/kocevski/580467/cmap_HighResolution_277171201_277430401_4FGL_J0127.2+0324_daily_bin146.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=21.8237 yref=3.413 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.91
user 0.33
sys 0.57

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.559       1.0000         .10000E-03   10000.    
     3 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.141       1.0000         .10000E-03   10000.    
     5 'Prefactor '    112.62       1.0000         .10000E-03   10000.    
     6 'norm      '    2.8194       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.6676       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12350E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4579       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.589       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .38775E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.189       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0594       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98632       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=   6305.935     FROM MIGRAD    STATUS=CONVERGED    332 CALLS     1591 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2341       -.32307E-06** at limit **
   2  Prefactor     13.592        31.952        .20002E-04    .21049E-04
   3  norm          .10000E-03    5.3599       -.52037E-07** at limit **
   4  Prefactor     20.127        46.979       -.14995E-04   -.29518E-05
   5  Prefactor     112.71        88.099        .69396E-04    .46683E-05
   6  norm          2.8191        1.6049       -.27902E-05   -.63956E-03
   7  Prefactor     9.6051        37.886       -.60448E-04   -.50767E-04
   8  Prefactor     .10000E-03    3.3513       -.20769E-06** at limit **
   9  Prefactor     .10002E-03    9.4030        .24949E-05** at limit **
  10  Prefactor     3.4582        4.2931        .20418E-05    .29622E-04
  11  Prefactor     20.630        41.842        .33707E-04   -.22994E-05
  12  Prefactor     .10001E-03    211.68        .67671E-04** at limit **
  13  Prefactor     .10000E-03    7.4354        .12044E-05** at limit **
  14  norm          .10000E-03    5.9777       -.22927E-06** at limit **
  15  Prefactor     11.196        8.1635       -.48182E-05   -.63439E-04
  16  Normalizat    1.0593        .18163       -.39052E-05    .72065E-04
  17  Prefactor     .98624        .14446        .12718E-05   -.32934E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 13.5922
  norm       = 0.0001
  Prefactor  = 20.1274
  Prefactor  = 112.711
  norm       = 2.81905
  Prefactor  = 9.60514
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 3.45822
  Prefactor  = 20.6296
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.1955
  Normalizat = 1.05931
  Prefactor  = 0.986237
 **********
 **   18 **HESSE 
 **********

 FCN=   6305.935     FROM HESSE     STATUS=OK           225 CALLS     1816 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4127        .17104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.592        31.938        .10878E-03   -1.4970    
   3  norm          .10000E-03    5.3646        .17956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.127        47.019        .89247E-04   -1.4810    
   5  Prefactor     112.71        88.132        .18953E-03   -1.3581    
   6  norm          2.8191        1.5995        .67592E-04   -1.5372    
   7  Prefactor     9.6051        38.027        .12888E-03   -1.5088    
   8  Prefactor     .10000E-03    3.3536        .14197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    9.6610        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.4582        4.2890        .17856E-03   -1.5336    
  11  Prefactor     20.630        41.815        .88271E-04   -1.4799    
  12  Prefactor     .10001E-03    218.07        .39065E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.7845        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.9877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.196        8.1756        .11977E-03   -1.5039    
  16  Normalizat    1.0593        .21300        .26260E-03   -.91069    
  17  Prefactor     .98624        .16958        .22014E-03   -.93190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39752e-09
Minuit parameter uncertainties:
  1  0.000140397
  2  31.9777
  3  1.27363e-05
  4  47.1054
  5  88.2346
  6  1.59951
  7  38.123
  8  8.22303e-06
  9  0.000836541
  10  4.28941
  11  41.8739
  12  0.00271729
  13  2.11225e-05
  14  1.85565e-05
  15  8.17638
  16  0.213172
  17  0.169673
Done.

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

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  2.063e+01  4.187e+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:  9.862e-01  1.697e-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.059e+00  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/580467/likelihoodResults_277171201_277430401_4FGL_J0127.2+0324_daily_bin146.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) = 6305.83712757
delta logL = 0.0980224757823

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6305.83536155
delta logL = 0.0997884999551

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.324       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4947       1.0000          .0000       10.000    
     3 'Normalizat'    1.0466       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99115       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=   6305.835     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      327 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.256        58.404        .11411E-03    .11059E-04
   2  Index         2.5002        1.9894        .94821E-02    .25117E-04
   3  Normalizat    1.0464        .21111        .26400E-03    .50384E-05
   4  Prefactor     .99157        .16920        .21959E-03   -.51048E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2563
  Index      = 2.50023
  Normalizat = 1.04641
  Prefactor  = 0.991569
 **********
 **   18 **HESSE 
 **********

 FCN=   6305.835     FROM HESSE     STATUS=OK            25 CALLS      352 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.256        34.449        .45642E-05   -1.5008    
   2  Index         2.5002        1.3081        .37929E-03   -.52355    
   3  Normalizat    1.0464        .20814        .10560E-04   -.91491    
   4  Prefactor     .99157        .16763        .87836E-05   -.93011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03002e-11
Minuit parameter uncertainties:
  1  34.5054
  2  1.32882
  3  0.2083
  4  0.167717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580467': 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) = 6305.83534025
delta logL = 0.0998097967304

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  1.226e+01  3.451e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.500e+00  1.329e+00  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  2.374e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  9.916e-01  1.677e-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.046e+00  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
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/580467/cmap_HighResolution_277171201_277430401_4FGL_J0127.2+0324_daily_bin146.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.48e-03', job_status='DONE', photon_flux_upper_limit='7.33e-08', time_completed='2021-08-14 01:12:09.524658', job_id='580467', GAL2='0.99', fit_tolerance='1e-08', EG2='1.05', EG='1.06', time_epoch_completed='1628928729.52', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='9.98e-02', ts2='0.53', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='146' AND source_name='4FGL J0127.2+0324' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:12:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 580467: <4FGL_J0127.2+0324_daily_bin146> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0127.2+0324_daily_bin146 21.8237 3.413 277171201 277430401 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 :                                   476.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   658 sec.
    Turnaround time :                            696 sec.

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

