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


Performing analysis on: 4FGL_J0127.2+0324_daily_bin1650
RA = 21.8237, Dec = 3.413
tmin = 667008001, tmax = 667267201
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='308875', job_status='RUN', time_executed='2022-02-23 00:10:55.027486', time_epoch_executed='1645603855.03' WHERE source_name='4FGL J0127.2+0324' and cadence='daily' and bin_id='1650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/308875

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/308875/ft1_4FGL_J0127.2+0324_daily_bin1650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/308875/ft2_4FGL_J0127.2+0324_daily_bin1650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/308875/ft1_4FGL_J0127.2+0324_daily_bin1650.fits outfile=/scratch/kocevski/308875/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin1650.fits ra=21.8237 dec=3.413 rad=12.0 tmin=667008001.0 tmax=667267201.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.05
user 2.82
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/308875/ft1_filtered_4FGL_J0127.2+0324_daily_bin1650.fits" evtable="EVENTS" scfile=/scratch/kocevski/308875/ft2_4FGL_J0127.2+0324_daily_bin1650.fits sctable="SC_DATA" outfile=/scratch/kocevski/308875/ltcube_667008001_667267201_4FGL_J0127.2+0324_daily_bin1650.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/308875/ft2_4FGL_J0127.2+0324_daily_bin1650.fits
.....................!
real 15.63
user 15.15
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/308875/ft1_filtered_4FGL_J0127.2+0324_daily_bin1650.fits evtable="EVENTS" scfile=/scratch/kocevski/308875/ft2_4FGL_J0127.2+0324_daily_bin1650.fits sctable="SC_DATA" expcube=/scratch/kocevski/308875/ltcube_667008001_667267201_4FGL_J0127.2+0324_daily_bin1650.fits outfile=/scratch/kocevski/308875/expmap_667008001_667267201_4FGL_J0127.2+0324_daily_bin1650.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/308875/ltcube_667008001_667267201_4FGL_J0127.2+0324_daily_bin1650.fits
.....................!
real 190.74
user 185.67
sys 4.66

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/308875/ft1_filtered_4FGL_J0127.2+0324_daily_bin1650.fits scfile=/scratch/kocevski/308875/ft2_4FGL_J0127.2+0324_daily_bin1650.fits outfile=/scratch/kocevski/308875/cmap_667008001_667267201_4FGL_J0127.2+0324_daily_bin1650.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/308875/ft1_filtered_4FGL_J0127.2+0324_daily_bin1650.fits scfile=/scratch/kocevski/308875/ft2_4FGL_J0127.2+0324_daily_bin1650.fits outfile=/scratch/kocevski/308875/cmap_HighResolution_667008001_667267201_4FGL_J0127.2+0324_daily_bin1650.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1057       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3603       1.0000         .10000E-03   10000.    
     3 'norm      '    28.805       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    25.670       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.684       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .80099       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7157       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13848E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6998       1.0000         .10000E-03   10000.    
    14 'norm      '    5.5659       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.3665       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0591       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .95607       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=   8317.329     FROM MIGRAD    STATUS=CONVERGED    334 CALLS     1355 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1058        2.9975       -.10084E-06   -.14353E-03
   2  Prefactor     3.4054        87.784        .10189E-03    .37142E-06
   3  norm          28.784        17.539        .86933E-05   -.12608E-05
   4  Prefactor     .10000E-03    15.168        .33543E-06** at limit **
   5  Prefactor     .10000E-03    24.008       -.10416E-04** at limit **
   6  norm          25.674        3.1060        .14587E-06    .18368E-02
   7  Prefactor     .10000E-03    24.594        .90638E-05** at limit **
   8  Prefactor     13.679        12.130        .17223E-05   -.32351E-04
   9  Prefactor     .79712        3.8145       -.23312E-05    .29377E-03
  10  Prefactor     .10000E-03    2.3470       -.46416E-07** at limit **
  11  Prefactor     6.6940        95.223       -.58711E-04    .10744E-04
  12  Prefactor     .10000E-03    103.73        .30288E-05** at limit **
  13  Prefactor     2.6998        3.5594       -.97973E-06   -.58641E-03
  14  norm          5.5679        6.9914        .44298E-06   -.75072E-05
  15  Prefactor     7.3660        3.8197        .28231E-06    .12531E-03
  16  Normalizat    1.0590        .17397        .12794E-05    .77004E-04
  17  Prefactor     .95601        .13602       -.22044E-05    .30691E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.10582
  Prefactor  = 3.40535
  norm       = 28.7839
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.6744
  Prefactor  = 0.0001
  Prefactor  = 13.6787
  Prefactor  = 0.797117
  Prefactor  = 0.0001
  Prefactor  = 6.69398
  Prefactor  = 0.0001
  Prefactor  = 2.69978
  norm       = 5.56795
  Prefactor  = 7.366
  Normalizat = 1.05902
  Prefactor  = 0.956008
 **********
 **   18 **HESSE 
 **********

 FCN=   8317.329     FROM HESSE     STATUS=OK           227 CALLS     1582 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1058        2.9966        .10677E-03   -1.5214    
   2  Prefactor     3.4054        86.883        .22076E-03   -1.5339    
   3  norm          28.784        17.543        .74648E-04   -1.4634    
   4  Prefactor     .10000E-03    15.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          25.674        3.0988        .51638E-04   -1.4694    
   7  Prefactor     .10000E-03    24.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.679        12.133        .10828E-03   -1.4968    
   9  Prefactor     .79712        18.256        .32552E-02   -1.5529    
  10  Prefactor     .10000E-03    2.3492        .13645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.6940        95.577        .15484E-03   -1.5190    
  12  Prefactor     .10000E-03    104.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.6998        3.5523        .19064E-03   -1.5379    
  14  norm          5.5679        6.9897        .17029E-03   -1.5236    
  15  Prefactor     7.3660        3.8211        .12505E-03   -1.5165    
  16  Normalizat    1.0590        .20178        .28916E-03   -.91079    
  17  Prefactor     .95601        .15797        .24184E-03   -.94211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25501e-09
Minuit parameter uncertainties:
  1  2.99664
  2  34.457
  3  17.5459
  4  8.92847e-06
  5  5.81322e-06
  6  3.09878
  7  0.00012987
  8  12.1352
  9  7.63155
  10  1.55898e-06
  11  50.6857
  12  2.97994e-05
  13  3.55261
  14  6.99076
  15  3.82125
  16  0.201925
  17  0.158047
Done.

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

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  6.694e+00  5.069e+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.560e-01  1.580e-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.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/308875/likelihoodResults_667008001_667267201_4FGL_J0127.2+0324_daily_bin1650.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) = 8316.76774634
delta logL = 0.561414283424

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8316.72745622
delta logL = 0.601704407409

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8748       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9631       1.0000          .0000       10.000    
     3 'Normalizat'    1.0148       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97115       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=   8316.727     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      270 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8770        60.831        .14289E-03    .46147E-03
   2  Index         2.9633        2.0423        .58017E-02    .26670E-03
   3  Normalizat    1.0148        .20053        .29430E-03    .26987E-03
   4  Prefactor     .97118        .15864        .23996E-03    .28637E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.87703
  Index      = 2.9633
  Normalizat = 1.01477
  Prefactor  = 0.971178
 **********
 **   18 **HESSE 
 **********

 FCN=   8316.727     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8770        17.834        .57155E-05   -1.5147    
   2  Index         2.9633        .85567        .23207E-03   -.41954    
   3  Normalizat    1.0148        .19969        .11772E-04   -.92537    
   4  Prefactor     .97118        .15751        .47992E-04   -.93697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56675e-10
Minuit parameter uncertainties:
  1  17.8464
  2  0.860759
  3  0.199836
  4  0.157585
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/308875': 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) = 8316.72745599
delta logL = 0.601704637733

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  7.877e+00  1.785e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.963e+00  8.608e-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:  9.712e-01  1.576e-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.015e+00  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.26
Ra Dec: 21.824 3.413
Photon Index (Free Index): 2.96 +/- 0.86
Photon Flux (Free Index): 4.78e-08 +/- 5.01e-08
Energy Flux (Free Index): 9.73e-06 +/- 1.00e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/308875/cmap_HighResolution_667008001_667267201_4FGL_J0127.2+0324_daily_bin1650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.32e-03', comment='SUCCESS', energy_flux2='9.73e-06', dlogl='6.02e-01', photon_flux2='4.78e-08', job_status='DONE', time_completed='2022-02-23 00:21:35.821900', photon_index_error2='0.86', photon_index2='2.96', ts='0.02', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='7.11e-08', energy_flux_error2='1.00e-05', EG='1.06', time_epoch_completed='1645604495.82', return_code='0', job_id='308875', GAL2='0.97', EG2='1.01', return_code2='0', photon_flux_error2='5.01e-08', ts2='1.26', photon_index='1.97' WHERE bin_id='1650' AND source_name='4FGL J0127.2+0324' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 23 00:21:35 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 308841: <4FGL_J0127.2+0324_daily_bin1650> in cluster <slac> Done

Job <4FGL_J0127.2+0324_daily_bin1650> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Feb 23 00:05:41 2022
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb 23 00:07:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb 23 00:07:19 2022
Terminated at Wed Feb 23 00:20:58 2022
Results reported at Wed Feb 23 00:20:58 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0127.2+0324_daily_bin1650 21.8237 3.413 667008001 667267201 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 :                                   632.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            917 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 308875: <4FGL_J0127.2+0324_daily_bin1650> in cluster <slac> Done

Job <4FGL_J0127.2+0324_daily_bin1650> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Feb 23 00:05:44 2022
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb 23 00:07:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb 23 00:07:28 2022
Terminated at Wed Feb 23 00:21:36 2022
Results reported at Wed Feb 23 00:21:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0127.2+0324_daily_bin1650 21.8237 3.413 667008001 667267201 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 :                                   643.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            952 sec.

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

