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


Performing analysis on: 4FGL_J0127.2+0324_daily_bin394
RA = 21.8237, Dec = 3.413
tmin = 341452801, tmax = 341712001
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='580809', job_status='RUN', time_executed='2021-08-14 01:05:09.830206', time_epoch_executed='1628928309.83' WHERE source_name='4FGL J0127.2+0324' and cadence='daily' and bin_id='394'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580809

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580809/ft1_4FGL_J0127.2+0324_daily_bin394.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580809/ft2_4FGL_J0127.2+0324_daily_bin394.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580809/ft1_4FGL_J0127.2+0324_daily_bin394.fits outfile=/scratch/kocevski/580809/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin394.fits ra=21.8237 dec=3.413 rad=12.0 tmin=341452801.0 tmax=341712001.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.16
user 3.15
sys 0.94

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580809/ft1_filtered_4FGL_J0127.2+0324_daily_bin394.fits" evtable="EVENTS" scfile=/scratch/kocevski/580809/ft2_4FGL_J0127.2+0324_daily_bin394.fits sctable="SC_DATA" outfile=/scratch/kocevski/580809/ltcube_341452801_341712001_4FGL_J0127.2+0324_daily_bin394.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/580809/ft2_4FGL_J0127.2+0324_daily_bin394.fits
.....................!
real 13.33
user 12.05
sys 1.21

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580809/ft1_filtered_4FGL_J0127.2+0324_daily_bin394.fits evtable="EVENTS" scfile=/scratch/kocevski/580809/ft2_4FGL_J0127.2+0324_daily_bin394.fits sctable="SC_DATA" expcube=/scratch/kocevski/580809/ltcube_341452801_341712001_4FGL_J0127.2+0324_daily_bin394.fits outfile=/scratch/kocevski/580809/expmap_341452801_341712001_4FGL_J0127.2+0324_daily_bin394.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/580809/ltcube_341452801_341712001_4FGL_J0127.2+0324_daily_bin394.fits
.....................!
real 194.56
user 188.46
sys 5.52

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/580809/ft1_filtered_4FGL_J0127.2+0324_daily_bin394.fits scfile=/scratch/kocevski/580809/ft2_4FGL_J0127.2+0324_daily_bin394.fits outfile=/scratch/kocevski/580809/cmap_341452801_341712001_4FGL_J0127.2+0324_daily_bin394.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.30
user 0.37
sys 0.90

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580809/ft1_filtered_4FGL_J0127.2+0324_daily_bin394.fits scfile=/scratch/kocevski/580809/ft2_4FGL_J0127.2+0324_daily_bin394.fits outfile=/scratch/kocevski/580809/cmap_HighResolution_341452801_341712001_4FGL_J0127.2+0324_daily_bin394.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.30
user 0.39
sys 0.90

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    57.296       1.0000         .10000E-03   10000.    
     6 'norm      '    .78615       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.422       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.580       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .41765E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.773       1.0000         .10000E-03   10000.    
    12 'Prefactor '    74.925       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.5689       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.1248       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .85301       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .92306       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=   6237.130     FROM MIGRAD    STATUS=CONVERGED    341 CALLS     1588 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1249       -.26284E-06** at limit **
   2  Prefactor     .10000E-03    7.7736       -.21984E-07** at limit **
   3  norm          .10000E-03    6.1782       -.52421E-07** at limit **
   4  Prefactor     .10000E-03    20.173       -.65143E-06** at limit **
   5  Prefactor     57.328        63.869        .24752E-04   -.18418E-03
   6  norm          .78340        1.2320       -.17534E-05   -.24817E-02
   7  Prefactor     30.286        35.467        .14890E-05    .92349E-05
   8  Prefactor     12.581        10.322       -.18475E-06    .12436E-04
   9  Prefactor     .10000E-03    3.0012       -.10416E-07** at limit **
  10  Prefactor     .10000E-03    2.1908        .16820E-07** at limit **
  11  Prefactor     36.770        34.985       -.34355E-05    .96801E-04
  12  Prefactor     74.912        95.516       -.14081E-04    .99917E-04
  13  Prefactor     .10000E-03    .88669       -.20695E-06** at limit **
  14  norm          7.5696        11.924       -.15610E-05    .46168E-04
  15  Prefactor     7.1254        6.6463       -.12116E-05    .68980E-04
  16  Normalizat    .85293        .16009        .12570E-06    .19845E-03
  17  Prefactor     .92306        .12939        .65890E-06    .13702E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.3279
  norm       = 0.783399
  Prefactor  = 30.286
  Prefactor  = 12.5814
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 36.7698
  Prefactor  = 74.912
  Prefactor  = 0.0001
  norm       = 7.56964
  Prefactor  = 7.12543
  Normalizat = 0.852925
  Prefactor  = 0.923059
 **********
 **   18 **HESSE 
 **********

 FCN=   6237.130     FROM HESSE     STATUS=OK           221 CALLS     1809 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2792        .16231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.7787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.1860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     57.328        64.184        .52998E-04   -1.4192    
   6  norm          .78340        1.2278        .10131E-03   -1.5531    
   7  Prefactor     30.286        34.179        .72642E-04   -1.4607    
   8  Prefactor     12.581        10.322        .11294E-03   -1.4998    
   9  Prefactor     .10000E-03    22.616        .25003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.1947        .11415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     36.770        34.943        .66090E-04   -1.4494    
  12  Prefactor     74.912        95.568        .46386E-04   -1.3975    
  13  Prefactor     .10000E-03    .88748        .72621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.5696        11.926        .14577E-03   -1.5158    
  15  Prefactor     7.1254        6.6544        .15028E-03   -1.5174    
  16  Normalizat    .85293        .18172        .25409E-03   -.98135    
  17  Prefactor     .92306        .14791        .20375E-03   -.95340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57994e-09
Minuit parameter uncertainties:
  1  3.76493e-05
  2  2.76198e-06
  3  8.78792e-06
  4  1.79039e-05
  5  64.2613
  6  1.22788
  7  34.2014
  8  10.3238
  9  0.000581077
  10  2.91314e-06
  11  34.9624
  12  95.7647
  13  1.65446e-06
  14  11.9302
  15  6.65514
  16  0.181845
  17  0.147974
Done.

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

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  3.677e+01  3.496e+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.231e-01  1.480e-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.529e-01  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.28
Ra Dec: 21.824 3.413
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 1.93e-08 +/- 1.83e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.38e-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) = 6237.05625823
delta logL = 0.0735599012996

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6237.05168027
delta logL = 0.0781378598449

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.976       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6529       1.0000          .0000       10.000    
     3 'Normalizat'    .86069       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92044       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=   6237.052     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      297 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.986        41.253        .61873E-04    .33808E-05
   2  Index         1.6527        .74575        .12173E-01    .17587E-04
   3  Normalizat    .86061        .17545        .25306E-03    .78170E-05
   4  Prefactor     .92051        .14622        .20400E-03   -.83034E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.9863
  Index      = 1.6527
  Normalizat = 0.860613
  Prefactor  = 0.920507
 **********
 **   18 **HESSE 
 **********

 FCN=   6237.052     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .86E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.986        41.093        .12375E-04   -1.4411    
   2  Index         1.6527        .74270        .24345E-02   -.73348    
   3  Normalizat    .86061        .17554        .10122E-04   -.97858    
   4  Prefactor     .92051        .14634        .81602E-05   -.95428    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.60969e-13
Minuit parameter uncertainties:
  1  41.1203
  2  0.747745
  3  0.175654
  4  0.1464
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580809': 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) = 6237.0516801
delta logL = 0.0781380228937

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  4.199e+01  4.112e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.653e+00  7.477e-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.205e-01  1.464e-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.606e-01  1.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.43
Ra Dec: 21.824 3.413
Photon Index (Free Index): 1.65 +/- 0.75
Photon Flux (Free Index): 1.19e-08 +/- 1.81e-08
Energy Flux (Free Index): 2.27e-05 +/- 3.64e-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/580809/cmap_HighResolution_341452801_341712001_4FGL_J0127.2+0324_daily_bin394.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.93e-08', energy_flux2='2.27e-05', photon_flux_error='1.83e-08', dlogl='7.81e-02', energy_flux='1.45e-05', photon_flux2='1.19e-08', job_status='DONE', time_completed='2021-08-14 01:14:10.035030', photon_index_error2='0.75', photon_index2='1.65', ts='6.28', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='3.64e-05', EG='0.85', time_epoch_completed='1628928850.04', return_code='0', job_id='580809', GAL2='0.92', EG2='0.86', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='1.81e-08', ts2='6.43', photon_index='1.97' WHERE bin_id='394' AND source_name='4FGL J0127.2+0324' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:14:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 580809: <4FGL_J0127.2+0324_daily_bin394> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0127.2+0324_daily_bin394 21.8237 3.413 341452801 341712001 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 :                                   548.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   606 sec.
    Turnaround time :                            793 sec.

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

