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


Performing analysis on: 4FGL_J0127.2+0324_daily_bin1108
RA = 21.8237, Dec = 3.413
tmin = 526521601, tmax = 526780801
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='585895', job_status='RUN', time_executed='2021-08-14 01:21:06.836831', time_epoch_executed='1628929266.84' WHERE source_name='4FGL J0127.2+0324' and cadence='daily' and bin_id='1108'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/585895

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/585895/ft1_4FGL_J0127.2+0324_daily_bin1108.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/585895/ft2_4FGL_J0127.2+0324_daily_bin1108.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/585895/ft1_4FGL_J0127.2+0324_daily_bin1108.fits outfile=/scratch/kocevski/585895/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin1108.fits ra=21.8237 dec=3.413 rad=12.0 tmin=526521601.0 tmax=526780801.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 5.17
user 4.13
sys 0.95

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/585895/ft2_4FGL_J0127.2+0324_daily_bin1108.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/585895/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin1108.fits evtable="EVENTS" outfile="/scratch/kocevski/585895/ft1_filtered_4FGL_J0127.2+0324_daily_bin1108.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.35
user 0.31
sys 0.87

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/585895/ft1_filtered_4FGL_J0127.2+0324_daily_bin1108.fits" evtable="EVENTS" scfile=/scratch/kocevski/585895/ft2_4FGL_J0127.2+0324_daily_bin1108.fits sctable="SC_DATA" outfile=/scratch/kocevski/585895/ltcube_526521601_526780801_4FGL_J0127.2+0324_daily_bin1108.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/585895/ft2_4FGL_J0127.2+0324_daily_bin1108.fits
.....................!
real 13.15
user 11.85
sys 1.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/585895/ft1_filtered_4FGL_J0127.2+0324_daily_bin1108.fits evtable="EVENTS" scfile=/scratch/kocevski/585895/ft2_4FGL_J0127.2+0324_daily_bin1108.fits sctable="SC_DATA" expcube=/scratch/kocevski/585895/ltcube_526521601_526780801_4FGL_J0127.2+0324_daily_bin1108.fits outfile=/scratch/kocevski/585895/expmap_526521601_526780801_4FGL_J0127.2+0324_daily_bin1108.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/585895/ltcube_526521601_526780801_4FGL_J0127.2+0324_daily_bin1108.fits
.....................!
real 192.98
user 186.04
sys 5.74

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/585895/ft1_filtered_4FGL_J0127.2+0324_daily_bin1108.fits scfile=/scratch/kocevski/585895/ft2_4FGL_J0127.2+0324_daily_bin1108.fits outfile=/scratch/kocevski/585895/cmap_526521601_526780801_4FGL_J0127.2+0324_daily_bin1108.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.24
user 0.38
sys 0.85

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/585895/ft1_filtered_4FGL_J0127.2+0324_daily_bin1108.fits scfile=/scratch/kocevski/585895/ft2_4FGL_J0127.2+0324_daily_bin1108.fits outfile=/scratch/kocevski/585895/cmap_HighResolution_526521601_526780801_4FGL_J0127.2+0324_daily_bin1108.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.24
user 0.37
sys 0.86

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4566       1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.570       1.0000         .10000E-03   10000.    
     3 'norm      '    4.4105       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    158.29       1.0000         .10000E-03   10000.    
     6 'norm      '    1.6435       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.3586       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    52.549       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.180       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .39259E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .62177E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2342       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .90733       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=   5619.504     FROM MIGRAD    STATUS=CONVERGED    347 CALLS     1846 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4566        3.2007        .39293E-06   -.17397E-03
   2  Prefactor     29.627        43.854        .27353E-04   -.19622E-04
   3  norm          4.4117        8.7236       -.10936E-04   -.10760E-03
   4  Prefactor     .10000E-03    47.206        .43632E-06** at limit **
   5  Prefactor     158.28        97.176       -.83767E-05   -.39810E-04
   6  norm          1.6434        1.6999        .48869E-06   -.37656E-03
   7  Prefactor     .10000E-03    26.699       -.88744E-06** at limit **
   8  Prefactor     .10000E-03    4.2294        .30781E-06** at limit **
   9  Prefactor     6.3577        8.5427        .33104E-05   -.24319E-03
  10  Prefactor     .10000E-03    3.8089       -.27721E-06** at limit **
  11  Prefactor     52.544        60.144       -.22889E-05   -.28615E-04
  12  Prefactor     23.284        127.20        .18517E-03   -.75587E-06
  13  Prefactor     .10000E-03    4.2966        .15922E-06** at limit **
  14  norm          .10018E-03    15.897        .29790E-05** at limit **
  15  Prefactor     .10000E-03    5.0956        .82578E-06** at limit **
  16  Normalizat    1.2346        .20425       -.73516E-05   -.11076E-04
  17  Prefactor     .90696        .15802       -.21209E-06   -.57073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.45665
  Prefactor  = 29.6274
  norm       = 4.41172
  Prefactor  = 0.0001
  Prefactor  = 158.276
  norm       = 1.64343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.35773
  Prefactor  = 0.0001
  Prefactor  = 52.5444
  Prefactor  = 23.2845
  Prefactor  = 0.0001
  norm       = 0.00010018
  Prefactor  = 0.000100001
  Normalizat = 1.23456
  Prefactor  = 0.90696
 **********
 **   18 **HESSE 
 **********

 FCN=   5619.504     FROM HESSE     STATUS=OK           233 CALLS     2079 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4566        3.2008        .90887E-04   -1.5200    
   2  Prefactor     29.627        43.846        .73679E-04   -1.4619    
   3  norm          4.4117        8.7223        .19176E-03   -1.5288    
   4  Prefactor     .10000E-03    47.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     158.28        96.754        .16024E-03   -1.3185    
   6  norm          1.6434        1.6683        .89029E-04   -1.5452    
   7  Prefactor     .10000E-03    26.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.2453        .15056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.3577        8.5190        .15918E-03   -1.5204    
  10  Prefactor     .10000E-03    3.8191        .14288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     52.544        60.244        .55328E-04   -1.4257    
  12  Prefactor     23.284        126.98        .83197E-04   -1.4743    
  13  Prefactor     .10000E-03    4.4033        .30337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10018E-03    19.962        .91762E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.376        .32553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2346        .23820        .25842E-03   -.85542    
  17  Prefactor     .90696        .18312        .23644E-03   -.95898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55064e-09
Minuit parameter uncertainties:
  1  3.2009
  2  43.8933
  3  8.72484
  4  0.000156679
  5  96.851
  6  1.66836
  7  0.000177129
  8  1.66401e-05
  9  8.52061
  10  3.54495e-05
  11  60.3138
  12  109.109
  13  3.2996e-05
  14  0.00379527
  15  0.000242166
  16  0.238406
  17  0.183239
Done.

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

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  5.254e+01  6.031e+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.070e-01  1.832e-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.235e+00  2.384e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.18
Ra Dec: 21.824 3.413
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 2.75e-08 +/- 3.16e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 2.37e-05

TS (Fixed Index): 1.18
Ra Dec: 21.824 3.413
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/585895/likelihoodResults_526521601_526780801_4FGL_J0127.2+0324_daily_bin1108.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) = 5617.37650877
delta logL = 2.12749315115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5617.30720851
delta logL = 2.19679341365

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3076       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4856       1.0000          .0000       10.000    
     3 'Normalizat'    1.0764       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98120       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.

 FCN=   5617.307     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      245 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3076        51.104        .39956E-02    .12312E-02
   2  Index         3.4858        1.9121        .62959E-01    .21740E-03
   3  Normalizat    1.0765        .88373E-01    .61823E-01    .10338E-04
   4  Prefactor     .98102        .64289E-01    .46032E-01    .60385E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.30758
  Index      = 3.48578
  Normalizat = 1.07652
  Prefactor  = 0.981022
 **********
 **   18 **HESSE 
 **********

 FCN=   5617.307     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      278 TOTAL
                     EDM=   .95E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3076        72.109        .88486E-04   -1.5206    
   2  Index         3.4858        2.4827        .25408E-02   -.30768    
   3  Normalizat    1.0765        .25611        .27344E-03   -.90509    
   4  Prefactor     .98102        .19407        .22811E-03   -.93365    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.48781e-08
Minuit parameter uncertainties:
  1  42.7182
  2  2.61143
  3  0.256405
  4  0.194204
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/585895': 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): 102
logL (Free Index) = 5617.30720751
delta logL = 2.19679441093

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  6.308e+00  4.272e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  3.486e+00  2.611e+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:  9.810e-01  1.942e-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.077e+00  2.564e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.00
Ra Dec: 21.824 3.413
Photon Index (Free Index): 3.49 +/- 2.61
Photon Flux (Free Index): 1.58e-07 +/- 1.10e-07
Energy Flux (Free Index): 2.65e-05 +/- 1.50e-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/585895/cmap_HighResolution_526521601_526780801_4FGL_J0127.2+0324_daily_bin1108.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.89e-03', comment='SUCCESS', photon_flux='2.75e-08', energy_flux2='2.65e-05', photon_flux_error='3.16e-08', dlogl='2.20e+00', energy_flux='2.07e-05', photon_flux2='1.58e-07', job_status='DONE', time_completed='2021-08-14 01:30:44.086421', photon_index_error2='2.61', photon_index2='3.49', ts='1.18', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.50e-05', EG='1.23', time_epoch_completed='1628929844.09', return_code='0', job_id='585895', GAL2='0.98', EG2='1.08', return_code2='102', energy_flux_error='2.37e-05', photon_flux_error2='1.10e-07', ts2='6.00', photon_index='1.97' WHERE bin_id='1108' AND source_name='4FGL J0127.2+0324' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:30:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 585895: <4FGL_J0127.2+0324_daily_bin1108> in cluster <slac> Done

Job <4FGL_J0127.2+0324_daily_bin1108> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 14 01:15:22 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 01:17:59 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:17:59 2021
Terminated at Sat Aug 14 01:30:44 2021
Results reported at Sat Aug 14 01:30:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0127.2+0324_daily_bin1108 21.8237 3.413 526521601 526780801 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 :                                   582.21 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             295.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            922 sec.

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

