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


Performing analysis on: 4FGL_J0127.2+0324_daily_bin1575
RA = 21.8237, Dec = 3.413
tmin = 647568001, tmax = 647827201
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='587617', job_status='RUN', time_executed='2021-08-14 01:25:49.974782', time_epoch_executed='1628929549.97' WHERE source_name='4FGL J0127.2+0324' and cadence='daily' and bin_id='1575'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/587617

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/587617/ft1_4FGL_J0127.2+0324_daily_bin1575.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/587617/ft2_4FGL_J0127.2+0324_daily_bin1575.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/587617/ft1_4FGL_J0127.2+0324_daily_bin1575.fits outfile=/scratch/kocevski/587617/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin1575.fits ra=21.8237 dec=3.413 rad=12.0 tmin=647568001.0 tmax=647827201.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.14
user 3.22
sys 0.85

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/587617/ft1_filtered_4FGL_J0127.2+0324_daily_bin1575.fits" evtable="EVENTS" scfile=/scratch/kocevski/587617/ft2_4FGL_J0127.2+0324_daily_bin1575.fits sctable="SC_DATA" outfile=/scratch/kocevski/587617/ltcube_647568001_647827201_4FGL_J0127.2+0324_daily_bin1575.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/587617/ft2_4FGL_J0127.2+0324_daily_bin1575.fits
.....................!
real 13.58
user 12.45
sys 1.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/587617/ft1_filtered_4FGL_J0127.2+0324_daily_bin1575.fits evtable="EVENTS" scfile=/scratch/kocevski/587617/ft2_4FGL_J0127.2+0324_daily_bin1575.fits sctable="SC_DATA" expcube=/scratch/kocevski/587617/ltcube_647568001_647827201_4FGL_J0127.2+0324_daily_bin1575.fits outfile=/scratch/kocevski/587617/expmap_647568001_647827201_4FGL_J0127.2+0324_daily_bin1575.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/587617/ltcube_647568001_647827201_4FGL_J0127.2+0324_daily_bin1575.fits
.....................!
real 192.03
user 186.13
sys 5.56

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/587617/ft1_filtered_4FGL_J0127.2+0324_daily_bin1575.fits scfile=/scratch/kocevski/587617/ft2_4FGL_J0127.2+0324_daily_bin1575.fits outfile=/scratch/kocevski/587617/cmap_647568001_647827201_4FGL_J0127.2+0324_daily_bin1575.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.17
user 0.38
sys 0.77

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/587617/ft1_filtered_4FGL_J0127.2+0324_daily_bin1575.fits scfile=/scratch/kocevski/587617/ft2_4FGL_J0127.2+0324_daily_bin1575.fits outfile=/scratch/kocevski/587617/cmap_HighResolution_647568001_647827201_4FGL_J0127.2+0324_daily_bin1575.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.18
user 0.39
sys 0.77

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.8659       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 '    29.259       1.0000         .10000E-03   10000.    
     6 'norm      '    15.083       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3774       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.883       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5212       1.0000         .10000E-03   10000.    
    11 'Prefactor '    53.134       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9098       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .76083       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1691       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=   8071.512     FROM MIGRAD    STATUS=CONVERGED    320 CALLS     1548 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .53651        .11519E-08** at limit **
   2  Prefactor     5.8631        37.546       -.34928E-05   -.44995E-04
   3  norm          .10000E-03    7.7768        .49516E-07** at limit **
   4  Prefactor     .10000E-03    12.745        .17299E-07** at limit **
   5  Prefactor     29.245        48.455       -.10780E-04   -.23406E-03
   6  norm          15.084        2.3674        .18076E-06   -.34865E-04
   7  Prefactor     .10000E-03    23.797       -.42317E-07** at limit **
   8  Prefactor     3.3776        9.2600        .47281E-07   -.62785E-04
   9  Prefactor     19.880        8.0417        .35655E-07    .58163E-04
  10  Prefactor     4.5200        5.9214        .19309E-05   -.14017E-02
  11  Prefactor     53.128        47.252       -.34680E-05   -.15230E-03
  12  Prefactor     .10000E-03    44.409        .16583E-06** at limit **
  13  Prefactor     .10000E-03    1.1546        .50204E-07** at limit **
  14  norm          .10000E-03    3.9301        .37570E-07** at limit **
  15  Prefactor     4.9105        6.2617       -.40136E-07   -.97565E-04
  16  Normalizat    .76095        .17210        .43397E-06   -.97826E-05
  17  Prefactor     1.1690        .14117       -.35895E-07    .25898E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.86314
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.2453
  norm       = 15.0836
  Prefactor  = 0.0001
  Prefactor  = 3.37756
  Prefactor  = 19.8801
  Prefactor  = 4.51998
  Prefactor  = 53.1283
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.91051
  Normalizat = 0.760947
  Prefactor  = 1.16898
 **********
 **   18 **HESSE 
 **********

 FCN=   8071.512     FROM HESSE     STATUS=OK           219 CALLS     1767 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .54027        .64252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.8631        37.744        .16581E-03   -1.5224    
   3  norm          .10000E-03    7.8270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     29.245        49.926        .74068E-04   -1.4626    
   6  norm          15.084        2.3709        .50116E-04   -1.4931    
   7  Prefactor     .10000E-03    23.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3776        9.2767        .22018E-03   -1.5340    
   9  Prefactor     19.880        8.0506        .89825E-04   -1.4816    
  10  Prefactor     4.5200        8.7138        .94670E-03   -1.5283    
  11  Prefactor     53.128        47.672        .55024E-04   -1.4249    
  12  Prefactor     .10000E-03    44.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1584        .94266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.9325        .17394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.9105        6.2757        .18152E-03   -1.5265    
  16  Normalizat    .76095        .19704        .31395E-03   -1.0153    
  17  Prefactor     1.1690        .16219        .21520E-03   -.87291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99835e-09
Minuit parameter uncertainties:
  1  1.13447e-07
  2  29.7793
  3  2.53239e-06
  4  3.72892e-08
  5  49.9979
  6  2.37091
  7  1.02132e-05
  8  9.28065
  9  8.051
  10  8.71627
  11  47.7066
  12  4.61877e-06
  13  4.35518e-07
  14  7.21949e-07
  15  6.2765
  16  0.197225
  17  0.162262
Done.

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

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  5.313e+01  4.771e+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.169e+00  1.623e-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:  7.609e-01  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.05
Ra Dec: 21.824 3.413
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 2.78e-08 +/- 2.50e-08
Energy Flux (Fixed Index): 2.09e-05 +/- 1.88e-05

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

Saving results to:
/scratch/kocevski/587617/likelihoodResults_647568001_647827201_4FGL_J0127.2+0324_daily_bin1575.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): 102
logL (Free Index) = 8069.25371464
delta logL = 2.25856284034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8069.24839621
delta logL = 2.26388127546

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3529       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3697       1.0000          .0000       10.000    
     3 'Normalizat'    .64786       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2277       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=   8069.248     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      270 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3547        69.329        .10232E-03    .71869E-03
   2  Index         3.3698        2.4314        .28961E-02    .40097E-03
   3  Normalizat    .64796        .20580        .33708E-03   -.13703E-03
   4  Prefactor     1.2276        .16627        .21042E-03    .71523E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.35469
  Index      = 3.36983
  Normalizat = 0.647963
  Prefactor  = 1.22761
 **********
 **   18 **HESSE 
 **********

 FCN=   8069.248     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3547        13.114        .40926E-05   -1.5204    
   2  Index         3.3698        .79321        .11584E-03   -.33210    
   3  Normalizat    .64796        .20120        .13483E-04   -1.0598    
   4  Prefactor     1.2276        .16464        .42084E-04   -.85486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02073e-09
Minuit parameter uncertainties:
  1  13.1195
  2  0.796977
  3  0.201432
  4  0.164713
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/587617': 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) = 8069.24839451
delta logL = 2.26388296999

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  6.355e+00  1.312e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  3.370e+00  7.970e-01  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  2.374e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.228e+00  1.647e-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:  6.480e-01  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.95
Ra Dec: 21.824 3.413
Photon Index (Free Index): 3.37 +/- 0.80
Photon Flux (Free Index): 1.16e-07 +/- 6.00e-08
Energy Flux (Free Index): 2.00e-05 +/- 9.82e-06

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/587617/cmap_HighResolution_647568001_647827201_4FGL_J0127.2+0324_daily_bin1575.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.41e-03', comment='SUCCESS', photon_flux='2.78e-08', energy_flux2='2.00e-05', photon_flux_error='2.50e-08', dlogl='2.26e+00', energy_flux='2.09e-05', photon_flux2='1.16e-07', job_status='DONE', time_completed='2021-08-14 01:36:41.649955', photon_index_error2='0.80', photon_index2='3.37', ts='2.05', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='8.57e-08', energy_flux_error2='9.82e-06', EG='0.76', time_epoch_completed='1628930201.65', return_code='0', job_id='587617', GAL2='1.23', EG2='0.65', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='6.00e-08', ts2='6.95', photon_index='1.97' WHERE bin_id='1575' AND source_name='4FGL J0127.2+0324' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:36:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 587617: <4FGL_J0127.2+0324_daily_bin1575> in cluster <slac> Done

Job <4FGL_J0127.2+0324_daily_bin1575> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Aug 14 01:20:33 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 01:23:05 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:23:05 2021
Terminated at Sat Aug 14 01:36:42 2021
Results reported at Sat Aug 14 01:36:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0127.2+0324_daily_bin1575 21.8237 3.413 647568001 647827201 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 :                                   658.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            969 sec.

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

