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


Performing analysis on: 4FGL_J0127.2+0324_daily_bin1162
RA = 21.8237, Dec = 3.413
tmin = 540518401, tmax = 540777601
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='585975', job_status='RUN', time_executed='2021-08-14 01:20:11.371604', time_epoch_executed='1628929211.37' WHERE source_name='4FGL J0127.2+0324' and cadence='daily' and bin_id='1162'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/585975

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/585975/ft1_4FGL_J0127.2+0324_daily_bin1162.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/585975/ft2_4FGL_J0127.2+0324_daily_bin1162.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/585975/ft1_4FGL_J0127.2+0324_daily_bin1162.fits outfile=/scratch/kocevski/585975/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin1162.fits ra=21.8237 dec=3.413 rad=12.0 tmin=540518401.0 tmax=540777601.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 8.43
user 3.43
sys 4.90

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/585975/ft1_filtered_4FGL_J0127.2+0324_daily_bin1162.fits" evtable="EVENTS" scfile=/scratch/kocevski/585975/ft2_4FGL_J0127.2+0324_daily_bin1162.fits sctable="SC_DATA" outfile=/scratch/kocevski/585975/ltcube_540518401_540777601_4FGL_J0127.2+0324_daily_bin1162.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/585975/ft2_4FGL_J0127.2+0324_daily_bin1162.fits
.....................!
real 18.03
user 12.27
sys 5.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/585975/ft1_filtered_4FGL_J0127.2+0324_daily_bin1162.fits evtable="EVENTS" scfile=/scratch/kocevski/585975/ft2_4FGL_J0127.2+0324_daily_bin1162.fits sctable="SC_DATA" expcube=/scratch/kocevski/585975/ltcube_540518401_540777601_4FGL_J0127.2+0324_daily_bin1162.fits outfile=/scratch/kocevski/585975/expmap_540518401_540777601_4FGL_J0127.2+0324_daily_bin1162.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/585975/ltcube_540518401_540777601_4FGL_J0127.2+0324_daily_bin1162.fits
.....................!
real 197.89
user 186.77
sys 10.63

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/585975/ft1_filtered_4FGL_J0127.2+0324_daily_bin1162.fits scfile=/scratch/kocevski/585975/ft2_4FGL_J0127.2+0324_daily_bin1162.fits outfile=/scratch/kocevski/585975/cmap_540518401_540777601_4FGL_J0127.2+0324_daily_bin1162.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.17
user 0.38
sys 4.74

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/585975/ft1_filtered_4FGL_J0127.2+0324_daily_bin1162.fits scfile=/scratch/kocevski/585975/ft2_4FGL_J0127.2+0324_daily_bin1162.fits outfile=/scratch/kocevski/585975/cmap_HighResolution_540518401_540777601_4FGL_J0127.2+0324_daily_bin1162.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.25
user 0.39
sys 4.78

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13539E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.894       1.0000         .10000E-03   10000.    
     5 'Prefactor '    45.688       1.0000         .10000E-03   10000.    
     6 'norm      '    .46148E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    78.186       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1837       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .26292E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7762       1.0000         .10000E-03   10000.    
    14 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.8021       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0654       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .93674       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=   4789.472     FROM MIGRAD    STATUS=CONVERGED    340 CALLS     1585 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1684        .56909E-06** at limit **
   2  Prefactor     .10000E-03    57.203        .31593E-05** at limit **
   3  norm          .10000E-03    11.234        .56849E-06** at limit **
   4  Prefactor     27.876        54.444       -.15362E-05   -.68295E-04
   5  Prefactor     45.919        80.653        .57828E-05    .95108E-04
   6  norm          .10000E-03    6.8550        .73898E-05** at limit **
   7  Prefactor     78.184        54.310       -.12178E-06   -.67893E-04
   8  Prefactor     .10001E-03    23.526        .38505E-05** at limit **
   9  Prefactor     8.1905        8.5188       -.75550E-06   -.49480E-03
  10  Prefactor     .10000E-03    11.668        .20599E-05** at limit **
  11  Prefactor     .10000E-03    12.384        .19914E-06** at limit **
  12  Prefactor     .10016E-03    739.03        .43452E-05** at limit **
  13  Prefactor     2.7755        3.9463       -.65505E-06   -.83589E-03
  14  norm          .10000E-03    3.6421        .10241E-06** at limit **
  15  Prefactor     7.8033        5.8312        .14240E-06   -.55398E-04
  16  Normalizat    1.0654        .23332        .27279E-05   -.57050E-03
  17  Prefactor     .93695        .18778       -.33988E-05   -.20014E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 27.8765
  Prefactor  = 45.9189
  norm       = 0.000100002
  Prefactor  = 78.1837
  Prefactor  = 0.000100011
  Prefactor  = 8.19048
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100155
  Prefactor  = 2.77554
  norm       = 0.0001
  Prefactor  = 7.80328
  Normalizat = 1.06537
  Prefactor  = 0.936946
 **********
 **   18 **HESSE 
 **********

 FCN=   4789.472     FROM HESSE     STATUS=OK           215 CALLS     1800 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1879        .73300E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    57.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    11.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.876        54.514        .75855E-04   -1.4652    
   5  Prefactor     45.919        80.765        .29659E-03   -1.4352    
   6  norm          .10000E-03    6.9001        .11888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     78.184        54.266        .45416E-04   -1.3937    
   8  Prefactor     .10001E-03    24.745        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.1905        8.4974        .70073E-03   -1.5136    
  10  Prefactor     .10000E-03    12.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10016E-03    741.05        .19967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7755        3.9667        .80181E-03   -1.5375    
  14  norm          .10000E-03    3.6431        .12900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.8033        5.8325        .14002E-03   -1.5149    
  16  Normalizat    1.0654        .23996        .25181E-03   -.90871    
  17  Prefactor     .93695        .19233        .21860E-03   -.94862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22098e-09
Minuit parameter uncertainties:
  1  2.11121e-05
  2  0.00105035
  3  0.000120487
  4  54.612
  5  80.9585
  6  0.000247738
  7  54.3
  8  0.00102535
  9  8.49864
  10  0.000339931
  11  2.72859e-05
  12  0.0217102
  13  3.96711
  14  1.10748e-05
  15  5.83296
  16  0.240203
  17  0.192465
Done.

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

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.729e-05  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.369e-01  1.925e-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.065e+00  2.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/585975/likelihoodResults_540518401_540777601_4FGL_J0127.2+0324_daily_bin1162.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) = 4789.47277544
delta logL = -0.000312829923132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4789.472466
delta logL = -3.39508278557e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11437E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3079       1.0000          .0000       10.000    
     3 'Normalizat'    1.0653       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93697       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=   4789.472     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      278 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10600E-03    1.8890        .18142E-01** at limit **
   2  Index         2.1890        8.5135        .50000        .34524E-04
   3  Normalizat    1.0654        .23152E-02    .25182E-03    .31626E-03
   4  Prefactor     .93694        .19079E-02    .21859E-03   -.77909E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106002
  Index      = 2.18904
  Normalizat = 1.06539
  Prefactor  = 0.936936
 **********
 **   18 **HESSE 
 **********

 FCN=   4789.472     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10600E-03    61.647        .20496E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1890        5.3373        .50000       -.59703    
   3  Normalizat    1.0654        .13320E-01    .50364E-04   -.90871    
   4  Prefactor     .93694        .10977E-01    .87437E-05   -.94862    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.43839e-08
Minuit parameter uncertainties:
  1  0.0385094
  2  259.169
  3  0.0133201
  4  0.0109768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/585975': 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) = 4789.47246433
delta logL = -1.72225736605e-06

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  1.060e-04  3.851e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.189e+00  2.592e+02  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.369e-01  1.098e-02  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.065e+00  1.332e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/585975/cmap_HighResolution_540518401_540777601_4FGL_J0127.2+0324_daily_bin1162.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.77e-03', job_status='DONE', photon_flux_upper_limit='3.70e-08', time_completed='2021-08-14 01:29:56.508711', job_id='585975', GAL2='0.94', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1628929796.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='-1.72e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1162' AND source_name='4FGL J0127.2+0324' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:29:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 585975: <4FGL_J0127.2+0324_daily_bin1162> in cluster <slac> Done

Job <4FGL_J0127.2+0324_daily_bin1162> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 14 01:15:27 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 01:18:28 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:18:28 2021
Terminated at Sat Aug 14 01:29:58 2021
Results reported at Sat Aug 14 01:29:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0127.2+0324_daily_bin1162 21.8237 3.413 540518401 540777601 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 :                                   653.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            871 sec.

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

