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


Performing analysis on: 4FGL_J0127.2+0324_daily_bin1091
RA = 21.8237, Dec = 3.413
tmin = 522115201, tmax = 522374401
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='585867', job_status='RUN', time_executed='2021-08-14 01:20:47.854578', time_epoch_executed='1628929247.85' WHERE source_name='4FGL J0127.2+0324' and cadence='daily' and bin_id='1091'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/585867

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/585867/ft1_4FGL_J0127.2+0324_daily_bin1091.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/585867/ft2_4FGL_J0127.2+0324_daily_bin1091.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/585867/ft1_4FGL_J0127.2+0324_daily_bin1091.fits outfile=/scratch/kocevski/585867/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin1091.fits ra=21.8237 dec=3.413 rad=12.0 tmin=522115201.0 tmax=522374401.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 11.67
user 3.55
sys 6.53

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/585867/ft2_4FGL_J0127.2+0324_daily_bin1091.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/585867/ft1_filteredMKT_4FGL_J0127.2+0324_daily_bin1091.fits evtable="EVENTS" outfile="/scratch/kocevski/585867/ft1_filtered_4FGL_J0127.2+0324_daily_bin1091.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 7.94
user 0.35
sys 6.57

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/585867/ft1_filtered_4FGL_J0127.2+0324_daily_bin1091.fits" evtable="EVENTS" scfile=/scratch/kocevski/585867/ft2_4FGL_J0127.2+0324_daily_bin1091.fits sctable="SC_DATA" outfile=/scratch/kocevski/585867/ltcube_522115201_522374401_4FGL_J0127.2+0324_daily_bin1091.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/585867/ft2_4FGL_J0127.2+0324_daily_bin1091.fits
.....................!
real 20.20
user 12.31
sys 7.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/585867/ft1_filtered_4FGL_J0127.2+0324_daily_bin1091.fits evtable="EVENTS" scfile=/scratch/kocevski/585867/ft2_4FGL_J0127.2+0324_daily_bin1091.fits sctable="SC_DATA" expcube=/scratch/kocevski/585867/ltcube_522115201_522374401_4FGL_J0127.2+0324_daily_bin1091.fits outfile=/scratch/kocevski/585867/expmap_522115201_522374401_4FGL_J0127.2+0324_daily_bin1091.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/585867/ltcube_522115201_522374401_4FGL_J0127.2+0324_daily_bin1091.fits
.....................!
real 200.45
user 186.47
sys 12.37

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/585867/ft1_filtered_4FGL_J0127.2+0324_daily_bin1091.fits scfile=/scratch/kocevski/585867/ft2_4FGL_J0127.2+0324_daily_bin1091.fits outfile=/scratch/kocevski/585867/cmap_522115201_522374401_4FGL_J0127.2+0324_daily_bin1091.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 6.89
user 0.39
sys 6.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/585867/ft1_filtered_4FGL_J0127.2+0324_daily_bin1091.fits scfile=/scratch/kocevski/585867/ft2_4FGL_J0127.2+0324_daily_bin1091.fits outfile=/scratch/kocevski/585867/cmap_HighResolution_522115201_522374401_4FGL_J0127.2+0324_daily_bin1091.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 6.90
user 0.38
sys 6.45

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3890       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.098       1.0000         .10000E-03   10000.    
     3 'norm      '    33.233       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.5517       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.777       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1381       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.316       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.6772       1.0000         .10000E-03   10000.    
    14 'norm      '    21.650       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .78730       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0709       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=   5261.947     FROM MIGRAD    STATUS=CONVERGED    316 CALLS     1343 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3891        1.9814       -.72806E-07   -.40213E-03
   2  Prefactor     19.092        23.910       -.54123E-05   -.40793E-05
   3  norm          33.232        22.645       -.86833E-06    .84106E-06
   4  Prefactor     .10000E-03    48.835       -.11613E-04** at limit **
   5  Prefactor     .10000E-03    22.738       -.29940E-06** at limit **
   6  norm          1.5517        1.1950       -.50903E-07   -.26399E-03
   7  Prefactor     .10000E-03    20.212        .52746E-07** at limit **
   8  Prefactor     19.777        15.140       -.57161E-07    .15494E-04
   9  Prefactor     .10000E-03    2.4750       -.24254E-07** at limit **
  10  Prefactor     6.1377        6.9649        .16775E-05   -.90672E-04
  11  Prefactor     19.314        26.607       -.17478E-05   -.43121E-06
  12  Prefactor     .10000E-03    46.464        .11702E-04** at limit **
  13  Prefactor     6.6769        5.6773       -.44606E-06   -.22079E-03
  14  norm          21.649        15.249       -.10348E-06    .25055E-05
  15  Prefactor     .10000E-03    1.8220       -.41304E-08** at limit **
  16  Normalizat    .78725        .18605        .68594E-07    .16386E-05
  17  Prefactor     1.0709        .15544        .29583E-06    .32658E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.38907
  Prefactor  = 19.0916
  norm       = 33.2319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.55166
  Prefactor  = 0.0001
  Prefactor  = 19.7772
  Prefactor  = 0.0001
  Prefactor  = 6.13767
  Prefactor  = 19.3142
  Prefactor  = 0.0001
  Prefactor  = 6.67686
  norm       = 21.6491
  Prefactor  = 0.0001
  Normalizat = 0.787253
  Prefactor  = 1.07092
 **********
 **   18 **HESSE 
 **********

 FCN=   5261.947     FROM HESSE     STATUS=OK           227 CALLS     1570 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3891        1.9570        .11769E-03   -1.5472    
   2  Prefactor     19.092        23.934        .91649E-04   -1.4834    
   3  norm          33.232        22.684        .69510E-04   -1.4554    
   4  Prefactor     .10000E-03    48.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.5517        1.1882        .66852E-04   -1.5459    
   7  Prefactor     .10000E-03    20.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.777        15.150        .90065E-04   -1.4818    
   9  Prefactor     .10000E-03    2.5263        .11143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.1377        6.9236        .16204E-03   -1.5212    
  11  Prefactor     19.314        26.610        .91132E-04   -1.4829    
  12  Prefactor     .10000E-03    46.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.6769        5.6992        .15349E-03   -1.5191    
  14  norm          21.649        15.253        .86084E-04   -1.4777    
  15  Prefactor     .10000E-03    1.8248        .95621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .78725        .21492        .27725E-03   -1.0054    
  17  Prefactor     1.0709        .18033        .20287E-03   -.90401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.40871e-11
Minuit parameter uncertainties:
  1  1.95708
  2  23.9457
  3  22.69
  4  3.05752e-05
  5  3.45776e-06
  6  1.18821
  7  2.87242e-06
  8  15.1525
  9  9.47097e-08
  10  6.92449
  11  26.6259
  12  1.52489e-05
  13  5.69967
  14  15.256
  15  2.89431e-07
  16  0.215154
  17  0.180431
Done.

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

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  1.931e+01  2.663e+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.071e+00  1.804e-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.873e-01  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.09
Ra Dec: 21.824 3.413
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 1.01e-08 +/- 1.39e-08
Energy Flux (Fixed Index): 7.61e-06 +/- 1.05e-05

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

Saving results to:
/scratch/kocevski/585867/likelihoodResults_522115201_522374401_4FGL_J0127.2+0324_daily_bin1091.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) = 5261.74133477
delta logL = 0.205662266047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5261.74123349
delta logL = 0.205763543923

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.545       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3784       1.0000          .0000       10.000    
     3 'Normalizat'    .78840       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0699       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=   5261.741     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      296 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.547        49.023        .63740E-04   -.25238E-03
   2  Index         1.3783        .70092        .11788E-01   -.11584E-03
   3  Normalizat    .78839        .21047        .27704E-03    .65249E-04
   4  Prefactor     1.0699        .17825        .20292E-03    .73752E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.5468
  Index      = 1.37835
  Normalizat = 0.788389
  Prefactor  = 1.06987
 **********
 **   18 **HESSE 
 **********

 FCN=   5261.741     FROM HESSE     STATUS=OK            23 CALLS      319 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.547        48.442        .12748E-04   -1.4449    
   2  Index         1.3783        .69303        .47150E-03   -.81006    
   3  Normalizat    .78839        .21064        .11081E-04   -1.0050    
   4  Prefactor     1.0699        .17839        .40584E-04   -.90435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.42316e-10
Minuit parameter uncertainties:
  1  48.49
  2  0.697783
  3  0.210858
  4  0.178487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/585867': 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) = 5261.74123349
delta logL = 0.205763549157

Extracting fit parameters...

4FGL J0127.2+0324
   Spectrum: PowerLaw
285    Prefactor:  3.955e+01  4.849e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.378e+00  6.978e-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.070e+00  1.785e-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.884e-01  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.51
Ra Dec: 21.824 3.413
Photon Index (Free Index): 1.38 +/- 0.70
Photon Flux (Free Index): 7.62e-09 +/- 9.79e-09
Energy Flux (Free Index): 3.62e-05 +/- 7.90e-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/585867/cmap_HighResolution_522115201_522374401_4FGL_J0127.2+0324_daily_bin1091.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.38e-03', comment='SUCCESS', photon_flux='1.01e-08', energy_flux2='3.62e-05', photon_flux_error='1.39e-08', dlogl='2.06e-01', energy_flux='7.61e-06', photon_flux2='7.62e-09', job_status='DONE', time_completed='2021-08-14 01:31:04.784532', photon_index_error2='0.70', photon_index2='1.38', ts='1.09', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='5.85e-08', energy_flux_error2='7.90e-05', EG='0.79', time_epoch_completed='1628929864.78', return_code='0', job_id='585867', GAL2='1.07', EG2='0.79', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='9.79e-09', ts2='1.51', photon_index='1.97' WHERE bin_id='1091' AND source_name='4FGL J0127.2+0324' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:31:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 585867: <4FGL_J0127.2+0324_daily_bin1091> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0127.2+0324_daily_bin1091 21.8237 3.413 522115201 522374401 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 :                                   701.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            946 sec.

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

