/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 113 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 = 7481
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0127.2+0324_daily_bin454
RA = 21.8237, Dec = 3.413
tmin = 357004801, tmax = 357264001
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='580884', job_status='RUN', time_executed='2021-08-14 01:07:51.007325', time_epoch_executed='1628928471.01' WHERE source_name='4FGL J0127.2+0324' and cadence='daily' and bin_id='454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580884

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580884/ft1_4FGL_J0127.2+0324_daily_bin454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580884/ft2_4FGL_J0127.2+0324_daily_bin454.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580884/ft1_4FGL_J0127.2+0324_daily_bin454.fits outfile=/scratch/kocevski/580884/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin454.fits ra=21.8237 dec=3.413 rad=12.0 tmin=357004801.0 tmax=357264001.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 6.10
user 3.72
sys 2.35

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580884/ft1_filtered_4FGL_J0127.2+0324_daily_bin454.fits" evtable="EVENTS" scfile=/scratch/kocevski/580884/ft2_4FGL_J0127.2+0324_daily_bin454.fits sctable="SC_DATA" outfile=/scratch/kocevski/580884/ltcube_357004801_357264001_4FGL_J0127.2+0324_daily_bin454.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/580884/ft2_4FGL_J0127.2+0324_daily_bin454.fits
.....................!
real 14.73
user 11.91
sys 2.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580884/ft1_filtered_4FGL_J0127.2+0324_daily_bin454.fits evtable="EVENTS" scfile=/scratch/kocevski/580884/ft2_4FGL_J0127.2+0324_daily_bin454.fits sctable="SC_DATA" expcube=/scratch/kocevski/580884/ltcube_357004801_357264001_4FGL_J0127.2+0324_daily_bin454.fits outfile=/scratch/kocevski/580884/expmap_357004801_357264001_4FGL_J0127.2+0324_daily_bin454.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/580884/ltcube_357004801_357264001_4FGL_J0127.2+0324_daily_bin454.fits
.....................!
real 194.93
user 186.01
sys 8.58

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/580884/ft1_filtered_4FGL_J0127.2+0324_daily_bin454.fits scfile=/scratch/kocevski/580884/ft2_4FGL_J0127.2+0324_daily_bin454.fits outfile=/scratch/kocevski/580884/cmap_357004801_357264001_4FGL_J0127.2+0324_daily_bin454.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 2.65
user 0.37
sys 2.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580884/ft1_filtered_4FGL_J0127.2+0324_daily_bin454.fits scfile=/scratch/kocevski/580884/ft2_4FGL_J0127.2+0324_daily_bin454.fits outfile=/scratch/kocevski/580884/cmap_HighResolution_357004801_357264001_4FGL_J0127.2+0324_daily_bin454.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 2.65
user 0.39
sys 2.24

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1906       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    31.164       1.0000         .10000E-03   10000.    
     4 'Prefactor '    39.384       1.0000         .10000E-03   10000.    
     5 'Prefactor '    134.61       1.0000         .10000E-03   10000.    
     6 'norm      '    2.0076       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.262       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6664       1.0000         .10000E-03   10000.    
    11 'Prefactor '    103.99       1.0000         .10000E-03   10000.    
    12 'Prefactor '    89.349       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8028       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1348       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .84941       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=   4810.463     FROM MIGRAD    STATUS=CONVERGED    310 CALLS     1592 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1898        1.9246       -.22934E-06   -.40894E-03
   2  Prefactor     .10000E-03    10.104       -.26867E-07** at limit **
   3  norm          31.163        19.106       -.67165E-06    .39198E-05
   4  Prefactor     39.383        45.729       -.23887E-05    .86125E-06
   5  Prefactor     134.62        95.269        .71276E-05    .75840E-05
   6  norm          2.0079        1.7110       -.29165E-06   -.31697E-03
   7  Prefactor     .10000E-03    20.599        .34186E-07** at limit **
   8  Prefactor     17.262        11.718       -.18574E-06    .62590E-05
   9  Prefactor     .10000E-03    4.5654        .26932E-07** at limit **
  10  Prefactor     1.6624        18.304       -.36997E-05   -.26613E-03
  11  Prefactor     103.97        71.355       -.18744E-04   -.92614E-06
  12  Prefactor     89.360        106.47        .11550E-04    .61504E-05
  13  Prefactor     .10000E-03    2.5846       -.42127E-08** at limit **
  14  norm          .10000E-03    7.1045       -.17197E-08** at limit **
  15  Prefactor     3.8028        4.3333       -.14301E-06    .32496E-04
  16  Normalizat    1.1347        .20794        .89006E-06    .16962E-04
  17  Prefactor     .84958        .16377        .36124E-06    .48915E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.18978
  Prefactor  = 0.0001
  norm       = 31.1634
  Prefactor  = 39.3827
  Prefactor  = 134.618
  norm       = 2.00788
  Prefactor  = 0.0001
  Prefactor  = 17.2615
  Prefactor  = 0.0001
  Prefactor  = 1.66235
  Prefactor  = 103.97
  Prefactor  = 89.3599
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.80279
  Normalizat = 1.13465
  Prefactor  = 0.849579
 **********
 **   18 **HESSE 
 **********

 FCN=   4810.463     FROM HESSE     STATUS=OK           223 CALLS     1815 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1898        1.8801        .11844E-03   -1.5490    
   2  Prefactor     .10000E-03    10.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          31.163        19.109        .71774E-04   -1.4591    
   4  Prefactor     39.383        45.731        .63869E-04   -1.4452    
   5  Prefactor     134.62        95.278        .34711E-04   -1.3382    
   6  norm          2.0079        1.6967        .76335E-04   -1.5425    
   7  Prefactor     .10000E-03    20.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.262        11.719        .96399E-04   -1.4877    
   9  Prefactor     .10000E-03    4.5999        .14466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6624        18.836        .32667E-03   -1.5450    
  11  Prefactor     103.97        71.079        .19716E-03   -1.3665    
  12  Prefactor     89.360        106.59        .42508E-04   -1.3815    
  13  Prefactor     .10000E-03    2.6212        .10887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    7.1097        .18056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8028        4.3325        .14997E-03   -1.5318    
  16  Normalizat    1.1347        .24380        .25289E-03   -.88647    
  17  Prefactor     .84958        .19169        .23100E-03   -.97926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2665e-10
Minuit parameter uncertainties:
  1  1.88021
  2  7.54054e-07
  3  19.1131
  4  45.772
  5  95.3868
  6  1.69674
  7  1.33075e-06
  8  11.7207
  9  4.88822e-06
  10  11.1957
  11  71.1378
  12  106.82
  13  5.91838e-07
  14  1.96756e-06
  15  4.33283
  16  0.244044
  17  0.191839
Done.

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

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  1.040e+02  7.114e+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:  8.496e-01  1.918e-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.135e+00  2.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.96
Ra Dec: 21.824 3.413
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 5.45e-08 +/- 3.73e-08
Energy Flux (Fixed Index): 4.09e-05 +/- 2.80e-05

TS (Fixed Index): 3.96
Ra Dec: 21.824 3.413
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/580884/likelihoodResults_357004801_357264001_4FGL_J0127.2+0324_daily_bin454.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) = 4810.13684203
delta logL = 0.32604188859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4810.13308742
delta logL = 0.329796496646

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.660       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4681       1.0000          .0000       10.000    
     3 'Normalizat'    1.0825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87501       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=   4810.133     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      298 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.664        95.548        .53767E-04    .70791E-04
   2  Index         2.4677        .85876        .35947E-02    .84887E-04
   3  Normalizat    1.0831        .25271        .25783E-03    .20283E-04
   4  Prefactor     .87470        .19654        .22799E-03    .92399E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.6644
  Index      = 2.46774
  Normalizat = 1.08306
  Prefactor  = 0.874701
 **********
 **   18 **HESSE 
 **********

 FCN=   4810.133     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.664        74.480        .10753E-04   -1.4214    
   2  Index         2.4677        .66944        .14379E-03   -.53107    
   3  Normalizat    1.0831        .24849        .10313E-04   -.90298    
   4  Prefactor     .87470        .19461        .91196E-05   -.97031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29913e-11
Minuit parameter uncertainties:
  1  74.6053
  2  0.672161
  3  0.248756
  4  0.194766
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580884': 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) = 4810.13308481
delta logL = 0.329799106744

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  5.566e+01  7.461e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.468e+00  6.722e-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:  8.747e-01  1.948e-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.083e+00  2.488e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.67
Ra Dec: 21.824 3.413
Photon Index (Free Index): 2.47 +/- 0.67
Photon Flux (Free Index): 9.41e-08 +/- 7.03e-08
Energy Flux (Free Index): 2.83e-05 +/- 1.89e-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/580884/cmap_HighResolution_357004801_357264001_4FGL_J0127.2+0324_daily_bin454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', photon_flux='5.45e-08', energy_flux2='2.83e-05', photon_flux_error='3.73e-08', dlogl='3.30e-01', energy_flux='4.09e-05', photon_flux2='9.41e-08', job_status='DONE', time_completed='2021-08-14 01:16:55.412290', photon_index_error2='0.67', photon_index2='2.47', ts='3.96', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='1.89e-05', EG='1.13', time_epoch_completed='1628929015.41', return_code='0', job_id='580884', GAL2='0.87', EG2='1.08', return_code2='0', energy_flux_error='2.80e-05', photon_flux_error2='7.03e-08', ts2='4.67', photon_index='1.97' WHERE bin_id='454' AND source_name='4FGL J0127.2+0324' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:16:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 580884: <4FGL_J0127.2+0324_daily_bin454> in cluster <slac> Done

Job <4FGL_J0127.2+0324_daily_bin454> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Aug 14 01:01:03 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 01:05:14 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:05:14 2021
Terminated at Sat Aug 14 01:16:56 2021
Results reported at Sat Aug 14 01:16:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0127.2+0324_daily_bin454 21.8237 3.413 357004801 357264001 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 :                                   576.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            953 sec.

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

