/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 65 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 = 7382
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0127.2+0324_daily_bin1113
RA = 21.8237, Dec = 3.413
tmin = 527817601, tmax = 528076801
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='585903', job_status='RUN', time_executed='2021-08-14 01:19:37.671278', time_epoch_executed='1628929177.67' WHERE source_name='4FGL J0127.2+0324' and cadence='daily' and bin_id='1113'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/585903

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/585903/ft1_4FGL_J0127.2+0324_daily_bin1113.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/585903/ft2_4FGL_J0127.2+0324_daily_bin1113.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/585903/ft1_4FGL_J0127.2+0324_daily_bin1113.fits outfile=/scratch/kocevski/585903/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin1113.fits ra=21.8237 dec=3.413 rad=12.0 tmin=527817601.0 tmax=528076801.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.41
user 3.28
sys 1.09

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/585903/ft2_4FGL_J0127.2+0324_daily_bin1113.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/585903/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin1113.fits evtable="EVENTS" outfile="/scratch/kocevski/585903/ft1_filtered_4FGL_J0127.2+0324_daily_bin1113.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.42
user 0.33
sys 1.07

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/585903/ft1_filtered_4FGL_J0127.2+0324_daily_bin1113.fits evtable="EVENTS" scfile=/scratch/kocevski/585903/ft2_4FGL_J0127.2+0324_daily_bin1113.fits sctable="SC_DATA" expcube=/scratch/kocevski/585903/ltcube_527817601_528076801_4FGL_J0127.2+0324_daily_bin1113.fits outfile=/scratch/kocevski/585903/expmap_527817601_528076801_4FGL_J0127.2+0324_daily_bin1113.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/585903/ltcube_527817601_528076801_4FGL_J0127.2+0324_daily_bin1113.fits
.....................!
real 194.35
user 187.46
sys 6.43

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/585903/ft1_filtered_4FGL_J0127.2+0324_daily_bin1113.fits scfile=/scratch/kocevski/585903/ft2_4FGL_J0127.2+0324_daily_bin1113.fits outfile=/scratch/kocevski/585903/cmap_527817601_528076801_4FGL_J0127.2+0324_daily_bin1113.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.51
user 0.38
sys 1.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/585903/ft1_filtered_4FGL_J0127.2+0324_daily_bin1113.fits scfile=/scratch/kocevski/585903/ft2_4FGL_J0127.2+0324_daily_bin1113.fits outfile=/scratch/kocevski/585903/cmap_HighResolution_527817601_528076801_4FGL_J0127.2+0324_daily_bin1113.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.45
user 0.39
sys 1.04

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1249       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.9885       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.9450       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.6534       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6114       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11724E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2191       1.0000         .10000E-03   10000.    
    14 'norm      '    6.8232       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.867       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .87826       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .91738       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=   4966.284     FROM MIGRAD    STATUS=CONVERGED    330 CALLS     1368 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1250        2.5270       -.81534E-08   -.12343E-03
   2  Prefactor     .10000E-03    15.440       -.55941E-05** at limit **
   3  norm          7.9879        12.663       -.43264E-06   -.35234E-04
   4  Prefactor     .10000E-03    17.614        .11505E-04** at limit **
   5  Prefactor     .10000E-03    148.72        .95323E-05** at limit **
   6  norm          3.9453        1.9468       -.85590E-06   -.18690E-03
   7  Prefactor     .10000E-03    22.245       -.95657E-05** at limit **
   8  Prefactor     9.6718        14.147       -.25804E-05   -.57539E-04
   9  Prefactor     5.6101        7.6121        .96950E-05   -.24136E-04
  10  Prefactor     .10000E-03    4.6844        .52908E-07** at limit **
  11  Prefactor     .10009E-03    278.80       -.11692E-03** at limit **
  12  Prefactor     .10000E-03    36.896        .45941E-05** at limit **
  13  Prefactor     2.2200        4.9118       -.32724E-06   -.48602E-03
  14  norm          6.8215        20.668        .22860E-06   -.19866E-04
  15  Prefactor     13.869        8.2384       -.14315E-05   -.11036E-04
  16  Normalizat    .87821        .19451       -.13108E-05    .29610E-03
  17  Prefactor     .91740        .15591        .33834E-06    .26273E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.125
  Prefactor  = 0.0001
  norm       = 7.98792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.94527
  Prefactor  = 0.0001
  Prefactor  = 9.6718
  Prefactor  = 5.61006
  Prefactor  = 0.0001
  Prefactor  = 0.000100086
  Prefactor  = 0.0001
  Prefactor  = 2.21999
  norm       = 6.82151
  Prefactor  = 13.8686
  Normalizat = 0.878211
  Prefactor  = 0.917401
 **********
 **   18 **HESSE 
 **********

 FCN=   4966.284     FROM HESSE     STATUS=OK           223 CALLS     1591 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1250        2.5260        .97065E-04   -1.5354    
   2  Prefactor     .10000E-03    15.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.9879        12.677        .14186E-03   -1.5143    
   4  Prefactor     .10000E-03    17.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    150.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.9453        1.9451        .64289E-04   -1.5311    
   7  Prefactor     .10000E-03    22.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.6718        14.168        .12898E-03   -1.5086    
   9  Prefactor     5.6101        7.5858        .16959E-03   -1.5234    
  10  Prefactor     .10000E-03    4.7015        .14895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10009E-03    280.15        .41309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    36.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.2200        4.8916        .22194E-03   -1.5410    
  14  norm          6.8215        20.679        .15360E-03   -1.5186    
  15  Prefactor     13.869        8.2391        .10756E-03   -1.4963    
  16  Normalizat    .87821        .22523        .26435E-03   -.97230    
  17  Prefactor     .91740        .18153        .20960E-03   -.95536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.99674e-10
Minuit parameter uncertainties:
  1  2.52613
  2  1.79102e-05
  3  12.6812
  4  1.07699e-05
  5  0.000488577
  6  1.94509
  7  0.00018242
  8  14.1733
  9  7.58706
  10  1.00856e-05
  11  0.00988508
  12  3.57772e-06
  13  4.89247
  14  20.7011
  15  8.23976
  16  0.225468
  17  0.181646
Done.

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

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  1.001e-04  9.885e-03  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.174e-01  1.816e-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.782e-01  2.255e-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: 6.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/585903/likelihoodResults_527817601_528076801_4FGL_J0127.2+0324_daily_bin1113.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) = 4966.28449874
delta logL = -1.67561720446e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4966.28449873
delta logL = -1.67551115737e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96360E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9668       1.0000          .0000       10.000    
     3 'Normalizat'    .87821       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91740       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4966.284     FROM MIGRAD    STATUS=FAILED       112 CALLS      258 TOTAL
                     EDM=   .81E-03    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41597E-03    9774.3        .83256E-02** at limit **
   2  Index         2.3435        1.9967        .20000       -.48305E-04
   3  Normalizat    .87821        .20279        .26435E-03    .35652E-04
   4  Prefactor     .91740        .15975        .20960E-03   -.62106E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4966.278     FROM SIMPLEX   STATUS=PROGRESS     142 CALLS      400 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8462        9774.3        .97229E-03    36.095    
   2  Index         2.3259        1.9967        .10114E-04   -.56429    
   3  Normalizat    .87628        .20279        .19715E-05   -.97299    
   4  Prefactor     .91439        .15975        .14495E-05   -.95640    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4966.256     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      504 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7740        20.149        .66605E-03   -.86840E-04
   2  Index         2.9535        2.4595        .17363E-02    .88721E-05
   3  Normalizat    .86742        .22494        .21148E-05    .59134E-04
   4  Prefactor     .92092        .17933        .16768E-05    .12747E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.77396
  Index      = 2.95352
  Normalizat = 0.867421
  Prefactor  = 0.920924
 **********
 **   18 **HESSE 
 **********

 FCN=   4966.256     FROM HESSE     STATUS=OK            25 CALLS      529 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7740        21.392        .13321E-03    36.102    
   2  Index         2.9535        2.5227        .69452E-04   -.42168    
   3  Normalizat    .86742        .22664        .42296E-06   -.97615    
   4  Prefactor     .92092        .18067        .33535E-06   -.95414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96324e-11
Minuit parameter uncertainties:
  1  12.3256
  2  2.673
  3  0.226888
  4  0.180792
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/585903': 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) = 4966.25571136
delta logL = 0.0287706150921

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  1.774e+00  1.233e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.954e+00  2.673e+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.209e-01  1.808e-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.674e-01  2.269e-01  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/585903/cmap_HighResolution_527817601_528076801_4FGL_J0127.2+0324_daily_bin1113.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.83e-03', job_status='DONE', photon_flux_upper_limit='6.45e-08', time_completed='2021-08-14 01:28:22.108751', job_id='585903', GAL2='0.92', fit_tolerance='1e-08', EG2='0.87', EG='0.88', time_epoch_completed='1628929702.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.88e-02', ts2='0.06', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1113' AND source_name='4FGL J0127.2+0324' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:28:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 585903: <4FGL_J0127.2+0324_daily_bin1113> in cluster <slac> Done

Job <4FGL_J0127.2+0324_daily_bin1113> 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) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 01:18:03 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:03 2021
Terminated at Sat Aug 14 01:28:23 2021
Results reported at Sat Aug 14 01:28:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0127.2+0324_daily_bin1113 21.8237 3.413 527817601 528076801 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 :                                   534.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   619 sec.
    Turnaround time :                            781 sec.

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

