/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 237 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 = 7670
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0127.2+0324_daily_bin101
RA = 21.8237, Dec = 3.413
tmin = 265507201, tmax = 265766401
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='580401', job_status='RUN', time_executed='2021-08-14 01:06:24.836328', time_epoch_executed='1628928384.84' WHERE source_name='4FGL J0127.2+0324' and cadence='daily' and bin_id='101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580401

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580401/ft1_4FGL_J0127.2+0324_daily_bin101.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580401/ft2_4FGL_J0127.2+0324_daily_bin101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580401/ft1_4FGL_J0127.2+0324_daily_bin101.fits outfile=/scratch/kocevski/580401/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin101.fits ra=21.8237 dec=3.413 rad=12.0 tmin=265507201.0 tmax=265766401.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.79
user 1.34
sys 5.37

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/580401/ft2_4FGL_J0127.2+0324_daily_bin101.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/580401/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin101.fits evtable="EVENTS" outfile="/scratch/kocevski/580401/ft1_filtered_4FGL_J0127.2+0324_daily_bin101.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 5.74
user 0.32
sys 5.35

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580401/ft1_filtered_4FGL_J0127.2+0324_daily_bin101.fits" evtable="EVENTS" scfile=/scratch/kocevski/580401/ft2_4FGL_J0127.2+0324_daily_bin101.fits sctable="SC_DATA" outfile=/scratch/kocevski/580401/ltcube_265507201_265766401_4FGL_J0127.2+0324_daily_bin101.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/580401/ft2_4FGL_J0127.2+0324_daily_bin101.fits
.....................!
real 19.29
user 12.99
sys 6.17

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580401/ft1_filtered_4FGL_J0127.2+0324_daily_bin101.fits evtable="EVENTS" scfile=/scratch/kocevski/580401/ft2_4FGL_J0127.2+0324_daily_bin101.fits sctable="SC_DATA" expcube=/scratch/kocevski/580401/ltcube_265507201_265766401_4FGL_J0127.2+0324_daily_bin101.fits outfile=/scratch/kocevski/580401/expmap_265507201_265766401_4FGL_J0127.2+0324_daily_bin101.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/580401/ltcube_265507201_265766401_4FGL_J0127.2+0324_daily_bin101.fits
.....................!
real 197.83
user 185.20
sys 11.77

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/580401/ft1_filtered_4FGL_J0127.2+0324_daily_bin101.fits scfile=/scratch/kocevski/580401/ft2_4FGL_J0127.2+0324_daily_bin101.fits outfile=/scratch/kocevski/580401/cmap_265507201_265766401_4FGL_J0127.2+0324_daily_bin101.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 5.69
user 0.36
sys 5.28

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580401/ft1_filtered_4FGL_J0127.2+0324_daily_bin101.fits scfile=/scratch/kocevski/580401/ft2_4FGL_J0127.2+0324_daily_bin101.fits outfile=/scratch/kocevski/580401/cmap_HighResolution_265507201_265766401_4FGL_J0127.2+0324_daily_bin101.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 5.68
user 0.37
sys 5.29

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .95229E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    12.884       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.834       1.0000         .10000E-03   10000.    
     6 'norm      '    7.3198       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.179       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8675       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1737       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.0428       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    17.780       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2572       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .86222       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1220       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=   6026.118     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     1830 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5594        .18655E-03** at limit **
   2  Prefactor     .10000E-03    43.349        .13089    ** at limit **
   3  norm          12.883        13.454        .11159E-03   -.24450E-05
   4  Prefactor     .10000E-03    20.557        .18142E-02** at limit **
   5  Prefactor     29.818        36.809        .36676E-03   -.31543E-04
   6  norm          7.3199        1.8932        .51367E-04   -.92955E-05
   7  Prefactor     .10000E-03    27.451        .18142E-02** at limit **
   8  Prefactor     25.178        12.729        .79832E-04   -.78894E-05
   9  Prefactor     2.8651        7.5570        .24005E-03    .45465E-05
  10  Prefactor     6.1726        12.973        .16157E-03   -.29553E-05
  11  Prefactor     9.0424        29.447        .13328E-03   -.17059E-06
  12  Prefactor     .10000E-03    26.171        .18142E-02** at limit **
  13  Prefactor     .10000E-03    1.4887        .92259E-03** at limit **
  14  norm          17.773        21.056        .94985E-04   -.29803E-04
  15  Prefactor     1.2570        3.3415        .22871E-03    .45831E-04
  16  Normalizat    .86228        .22202        .28697E-03    .26226E-04
  17  Prefactor     1.1220        .18222        .21315E-03   -.21334E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 12.883
  Prefactor  = 0.0001
  Prefactor  = 29.8176
  norm       = 7.31985
  Prefactor  = 0.0001
  Prefactor  = 25.1776
  Prefactor  = 2.86511
  Prefactor  = 6.17258
  Prefactor  = 9.04243
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.7729
  Prefactor  = 1.25698
  Normalizat = 0.862277
  Prefactor  = 1.12199
 **********
 **   18 **HESSE 
 **********

 FCN=   6026.118     FROM HESSE     STATUS=OK           215 CALLS     2045 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5594        .37311E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    43.517        .13058       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.883        13.455        .44638E-05   -1.4990    
   4  Prefactor     .10000E-03    20.558        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     29.818        36.808        .73352E-04   -1.4615    
   6  norm          7.3199        1.8931        .20547E-05   -1.5167    
   7  Prefactor     .10000E-03    27.453        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.178        12.729        .15966E-04   -1.4704    
   9  Prefactor     2.8651        7.5549        .96020E-05   -1.5369    
  10  Prefactor     6.1726        12.972        .64628E-05   -1.5211    
  11  Prefactor     9.0424        29.449        .53313E-05   -1.5106    
  12  Prefactor     .10000E-03    26.171        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.4888        .18452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          17.773        21.058        .37994E-05   -1.4865    
  15  Prefactor     1.2570        3.3414        .91482E-05   -1.5484    
  16  Normalizat    .86228        .22222        .11479E-04   -.97799    
  17  Prefactor     1.1220        .18240        .85261E-05   -.88767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40531e-11
Minuit parameter uncertainties:
  1  9.54752e-08
  2  0.000927021
  3  13.4577
  4  1.69059e-05
  5  36.8363
  6  1.89309
  7  1.68835e-05
  8  12.7299
  9  7.55744
  10  12.9781
  11  29.4966
  12  1.88118e-05
  13  6.70065e-07
  14  21.0671
  15  3.34192
  16  0.222452
  17  0.182505
Done.

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

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  9.042e+00  2.950e+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.122e+00  1.825e-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:  8.623e-01  2.225e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/580401/likelihoodResults_265507201_265766401_4FGL_J0127.2+0324_daily_bin101.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) = 6026.10657746
delta logL = 0.0112508450347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6026.10517386
delta logL = 0.0126544532313

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6296       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1968       1.0000          .0000       10.000    
     3 'Normalizat'    .86023       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1222       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=   6026.105     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      253 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6250        29.243        .14518E-03    .17541E-04
   2  Index         2.2015        1.5750        .11230E-01    .14782E-03
   3  Normalizat    .86043        .21273        .28724E-03   -.42329E-03
   4  Prefactor     1.1225        .17864        .21310E-03   -.48844E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.62497
  Index      = 2.20147
  Normalizat = 0.860435
  Prefactor  = 1.12252
 **********
 **   18 **HESSE 
 **********

 FCN=   6026.105     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6250        27.199        .58073E-05   -1.5156    
   2  Index         2.2015        1.4709        .22461E-02   -.59403    
   3  Normalizat    .86043        .21282        .57449E-04   -.97865    
   4  Prefactor     1.1225        .17873        .42621E-04   -.88750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75823e-10
Minuit parameter uncertainties:
  1  27.2432
  2  1.50364
  3  0.213027
  4  0.178826
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580401': 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) = 6026.10515071
delta logL = 0.012677599444

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  7.625e+00  2.724e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.201e+00  1.504e+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:  1.123e+00  1.788e-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:  8.604e-01  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
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/580401/cmap_HighResolution_265507201_265766401_4FGL_J0127.2+0324_daily_bin101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.28e-03', job_status='DONE', photon_flux_upper_limit='5.72e-08', time_completed='2021-08-14 01:16:58.454894', job_id='580401', GAL2='1.12', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1628929018.45', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.27e-02', ts2='0.14', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='101' AND source_name='4FGL J0127.2+0324' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:16:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 580401: <4FGL_J0127.2+0324_daily_bin101> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0127.2+0324_daily_bin101 21.8237 3.413 265507201 265766401 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 :                                   714.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             243.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            990 sec.

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

