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


Performing analysis on: 4FGL_J0127.2+0324_daily_bin168
RA = 21.8237, Dec = 3.413
tmin = 282873601, tmax = 283132801
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='580498', job_status='RUN', time_executed='2021-08-14 01:03:51.939532', time_epoch_executed='1628928231.94' WHERE source_name='4FGL J0127.2+0324' and cadence='daily' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580498

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580498/ft1_4FGL_J0127.2+0324_daily_bin168.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580498/ft2_4FGL_J0127.2+0324_daily_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580498/ft1_4FGL_J0127.2+0324_daily_bin168.fits outfile=/scratch/kocevski/580498/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin168.fits ra=21.8237 dec=3.413 rad=12.0 tmin=282873601.0 tmax=283132801.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.46
user 3.10
sys 1.33

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/580498/ft2_4FGL_J0127.2+0324_daily_bin168.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/580498/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/580498/ft1_filtered_4FGL_J0127.2+0324_daily_bin168.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.64
user 0.34
sys 1.29

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580498/ft1_filtered_4FGL_J0127.2+0324_daily_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/580498/ft2_4FGL_J0127.2+0324_daily_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/580498/ltcube_282873601_283132801_4FGL_J0127.2+0324_daily_bin168.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/580498/ft2_4FGL_J0127.2+0324_daily_bin168.fits
.....................!
real 15.07
user 13.42
sys 1.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580498/ft1_filtered_4FGL_J0127.2+0324_daily_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/580498/ft2_4FGL_J0127.2+0324_daily_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/580498/ltcube_282873601_283132801_4FGL_J0127.2+0324_daily_bin168.fits outfile=/scratch/kocevski/580498/expmap_282873601_283132801_4FGL_J0127.2+0324_daily_bin168.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/580498/ltcube_282873601_283132801_4FGL_J0127.2+0324_daily_bin168.fits
.....................!
real 192.20
user 185.34
sys 6.38

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/580498/ft1_filtered_4FGL_J0127.2+0324_daily_bin168.fits scfile=/scratch/kocevski/580498/ft2_4FGL_J0127.2+0324_daily_bin168.fits outfile=/scratch/kocevski/580498/cmap_282873601_283132801_4FGL_J0127.2+0324_daily_bin168.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.67
user 0.39
sys 1.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580498/ft1_filtered_4FGL_J0127.2+0324_daily_bin168.fits scfile=/scratch/kocevski/580498/ft2_4FGL_J0127.2+0324_daily_bin168.fits outfile=/scratch/kocevski/580498/cmap_HighResolution_282873601_283132801_4FGL_J0127.2+0324_daily_bin168.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.70
user 0.39
sys 1.26

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/580498/ft1_filtered_4FGL_J0127.2+0324_daily_bin168.fits', '/scratch/kocevski/580498/ft2_4FGL_J0127.2+0324_daily_bin168.fits', expMap='/scratch/kocevski/580498/expmap_282873601_283132801_4FGL_J0127.2+0324_daily_bin168.fits', expCube='/scratch/kocevski/580498/ltcube_282873601_283132801_4FGL_J0127.2+0324_daily_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/580498/Model_4FGL_J0127.2+0324_daily_bin168.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/580498/ft1_filtered_4FGL_J0127.2+0324_daily_bin168.fits
Spacecraft file(s): /scratch/kocevski/580498/ft2_4FGL_J0127.2+0324_daily_bin168.fits
Exposure map: /scratch/kocevski/580498/expmap_282873601_283132801_4FGL_J0127.2+0324_daily_bin168.fits
Exposure cube: /scratch/kocevski/580498/ltcube_282873601_283132801_4FGL_J0127.2+0324_daily_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/580498/Model_4FGL_J0127.2+0324_daily_bin168.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6415.71635715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57003       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    13.442       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.598       1.0000         .10000E-03   10000.    
     6 'norm      '    13.253       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0736       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0667       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3479       1.0000         .10000E-03   10000.    
    11 'Prefactor '    48.226       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6340       1.0000         .10000E-03   10000.    
    14 'norm      '    26.966       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .96219       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1610       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=   6415.612     FROM MIGRAD    STATUS=CONVERGED    343 CALLS     1454 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .56973        2.5471       -.38410E-06   -.31190E-03
   2  Prefactor     .10000E-03    16.081        .41649E-05** at limit **
   3  norm          13.440        16.240       -.49099E-06   -.80976E-05
   4  Prefactor     .10000E-03    57.692        .26915E-06** at limit **
   5  Prefactor     21.642        108.36        .68171E-04    .22232E-04
   6  norm          13.253        2.7827       -.86098E-06    .28670E-03
   7  Prefactor     .10000E-03    16.230       -.39727E-05** at limit **
   8  Prefactor     2.0727        7.4822       -.32612E-05   -.64853E-04
   9  Prefactor     3.0666        7.8678       -.20073E-05   -.45464E-04
  10  Prefactor     1.3464        2.1711        .86726E-06   -.20214E-02
  11  Prefactor     48.226        33.550       -.22522E-06   -.36740E-05
  12  Prefactor     .10000E-03    299.42        .40315E-06** at limit **
  13  Prefactor     4.6341        5.3734        .21156E-05    .66480E-05
  14  norm          26.965        15.708        .28537E-06   -.97426E-06
  15  Prefactor     .10000E-03    3.8254        .16092E-07** at limit **
  16  Normalizat    .96215        .19581       -.17031E-05    .24544E-04
  17  Prefactor     1.1610        .15689       -.18711E-06   -.41112E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.569727
  Prefactor  = 0.0001
  norm       = 13.4402
  Prefactor  = 0.0001
  Prefactor  = 21.6421
  norm       = 13.2533
  Prefactor  = 0.0001
  Prefactor  = 2.07272
  Prefactor  = 3.06656
  Prefactor  = 1.34637
  Prefactor  = 48.2264
  Prefactor  = 0.0001
  Prefactor  = 4.63409
  norm       = 26.9655
  Prefactor  = 0.0001
  Normalizat = 0.962151
  Prefactor  = 1.161
 **********
 **   18 **HESSE 
 **********

 FCN=   6415.612     FROM HESSE     STATUS=OK           227 CALLS     1681 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .56973        2.6218        .24330E-03   -1.5557    
   2  Prefactor     .10000E-03    16.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          13.440        16.260        .10925E-03   -1.4975    
   4  Prefactor     .10000E-03    58.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.642        108.31        .86187E-04   -1.4777    
   6  norm          13.253        2.7811        .52948E-04   -1.4980    
   7  Prefactor     .10000E-03    16.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.0727        7.4721        .28684E-03   -1.5420    
   9  Prefactor     3.0666        7.8411        .23164E-03   -1.5358    
  10  Prefactor     1.3464        8.5702        .18851E-02   -1.5476    
  11  Prefactor     48.226        33.555        .57742E-04   -1.4318    
  12  Prefactor     .10000E-03    301.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.6341        5.3671        .18697E-03   -1.5277    
  14  norm          26.965        15.712        .77147E-04   -1.4669    
  15  Prefactor     .10000E-03    3.8662        .15297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .96215        .22882        .29966E-03   -.94309    
  17  Prefactor     1.1610        .18449        .22599E-03   -.87540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38047e-08
Minuit parameter uncertainties:
  1  2.44431
  2  3.37691e-05
  3  16.2656
  4  7.29069e-05
  5  97.1113
  6  2.78114
  7  1.46164e-05
  8  7.47548
  9  7.84374
  10  6.79487
  11  33.5681
  12  0.000523222
  13  5.36765
  14  15.7145
  15  4.82146e-06
  16  0.229052
  17  0.184593
Done.

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

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  4.823e+01  3.357e+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:  1.161e+00  1.846e-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:  9.622e-01  2.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.92
Ra Dec: 21.824 3.413
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 2.53e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 1.90e-05 +/- 1.32e-05

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) = 6414.71503223
delta logL = 0.897414047168

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6414.61394043
delta logL = 0.998505843906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    67.623       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3110       1.0000          .0000       10.000    
     3 'Normalizat'    .97327       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1572       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=   6414.614     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      250 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     67.648        47.913        .24404E-03   -.40342E-04
   2  Index         1.3111        .42992        .89021E-02   -.30430E-04
   3  Normalizat    .97336        .22118        .29813E-03   -.72183E-03
   4  Prefactor     1.1571        .18238        .22633E-03   -.74028E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 67.6478
  Index      = 1.3111
  Normalizat = 0.973357
  Prefactor  = 1.15714
 **********
 **   18 **HESSE 
 **********

 FCN=   6414.614     FROM HESSE     STATUS=OK            23 CALLS      273 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     67.648        48.075        .97618E-05   -1.4061    
   2  Index         1.3111        .43142        .35609E-03   -.82978    
   3  Normalizat    .97336        .22134        .59626E-04   -.93928    
   4  Prefactor     1.1571        .18251        .45265E-04   -.87661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.90694e-10
Minuit parameter uncertainties:
  1  48.103
  2  0.432604
  3  0.22155
  4  0.182611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580498': 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) = 6414.61394018
delta logL = 0.998506092871

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  6.765e+01  4.810e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.311e+00  4.326e-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:  1.157e+00  1.826e-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:  9.734e-01  2.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.91
Ra Dec: 21.824 3.413
Photon Index (Free Index): 1.31 +/- 0.43
Photon Flux (Free Index): 1.22e-08 +/- 1.04e-08
Energy Flux (Free Index): 7.22e-05 +/- 8.28e-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/580498/cmap_HighResolution_282873601_283132801_4FGL_J0127.2+0324_daily_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.53e-08', energy_flux2='7.22e-05', photon_flux_error='1.76e-08', dlogl='9.99e-01', energy_flux='1.90e-05', photon_flux2='1.22e-08', job_status='DONE', time_completed='2021-08-14 01:12:56.191786', photon_index_error2='0.43', photon_index2='1.31', ts='13.92', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='8.28e-05', EG='0.96', time_epoch_completed='1628928776.19', return_code='0', job_id='580498', GAL2='1.16', EG2='0.97', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='1.04e-08', ts2='15.91', photon_index='1.97' WHERE bin_id='168' AND source_name='4FGL J0127.2+0324' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:12:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 580498: <4FGL_J0127.2+0324_daily_bin168> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0127.2+0324_daily_bin168 21.8237 3.413 282873601 283132801 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 :                                   560.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            740 sec.

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

