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


Performing analysis on: 4FGL_J0011.4+0057_daily_bin1631
RA = 2.8551, Dec = 0.9646
tmin = 662083201, tmax = 662342401
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='551614', job_status='RUN', time_executed='2021-12-28 00:05:47.410199', time_epoch_executed='1640678747.41' WHERE source_name='4FGL J0011.4+0057' and cadence='daily' and bin_id='1631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551614

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551614/ft1_4FGL_J0011.4+0057_daily_bin1631.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551614/ft2_4FGL_J0011.4+0057_daily_bin1631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551614/ft1_4FGL_J0011.4+0057_daily_bin1631.fits outfile=/scratch/kocevski/551614/ft1_filteredMKT_4FGL_J0011.4+0057_daily_bin1631.fits ra=2.8551 dec=0.9646 rad=12.0 tmin=662083201.0 tmax=662342401.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.09
user 3.66
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/551614/ft2_4FGL_J0011.4+0057_daily_bin1631.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/551614/ft2_4FGL_J0011.4+0057_daily_bin1631.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/551614/ft1_filteredMKT_4FGL_J0011.4+0057_daily_bin1631.fits evtable="EVENTS" outfile="/scratch/kocevski/551614/ft1_filtered_4FGL_J0011.4+0057_daily_bin1631.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 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551614/ft1_filtered_4FGL_J0011.4+0057_daily_bin1631.fits" evtable="EVENTS" scfile=/scratch/kocevski/551614/ft2_4FGL_J0011.4+0057_daily_bin1631.fits sctable="SC_DATA" outfile=/scratch/kocevski/551614/ltcube_662083201_662342401_4FGL_J0011.4+0057_daily_bin1631.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/551614/ft2_4FGL_J0011.4+0057_daily_bin1631.fits
.....................!
real 12.88
user 12.32
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551614/ft1_filtered_4FGL_J0011.4+0057_daily_bin1631.fits evtable="EVENTS" scfile=/scratch/kocevski/551614/ft2_4FGL_J0011.4+0057_daily_bin1631.fits sctable="SC_DATA" expcube=/scratch/kocevski/551614/ltcube_662083201_662342401_4FGL_J0011.4+0057_daily_bin1631.fits outfile=/scratch/kocevski/551614/expmap_662083201_662342401_4FGL_J0011.4+0057_daily_bin1631.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/551614/ltcube_662083201_662342401_4FGL_J0011.4+0057_daily_bin1631.fits
.....................!
real 192.67
user 186.77
sys 4.78

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 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0011.4+0057 @ 2.8551 0.9646

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/551614/ft1_filtered_4FGL_J0011.4+0057_daily_bin1631.fits scfile=/scratch/kocevski/551614/ft2_4FGL_J0011.4+0057_daily_bin1631.fits outfile=/scratch/kocevski/551614/cmap_662083201_662342401_4FGL_J0011.4+0057_daily_bin1631.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=2.8551 yref=0.9646 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 0.99
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551614/ft1_filtered_4FGL_J0011.4+0057_daily_bin1631.fits scfile=/scratch/kocevski/551614/ft2_4FGL_J0011.4+0057_daily_bin1631.fits outfile=/scratch/kocevski/551614/cmap_HighResolution_662083201_662342401_4FGL_J0011.4+0057_daily_bin1631.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=2.8551 yref=0.9646 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.42
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/551614/ft1_filtered_4FGL_J0011.4+0057_daily_bin1631.fits evtable="EVENTS" scfile=/scratch/kocevski/551614/ft2_4FGL_J0011.4+0057_daily_bin1631.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/551614/Model_4FGL_J0011.4+0057_daily_bin1631.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/551614/ft1_filtered_4FGL_J0011.4+0057_daily_bin1631.fits.....................!
real 86.09
user 82.12
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/551614/ft1_filtered_4FGL_J0011.4+0057_daily_bin1631.fits', '/scratch/kocevski/551614/ft2_4FGL_J0011.4+0057_daily_bin1631.fits', expMap='/scratch/kocevski/551614/expmap_662083201_662342401_4FGL_J0011.4+0057_daily_bin1631.fits', expCube='/scratch/kocevski/551614/ltcube_662083201_662342401_4FGL_J0011.4+0057_daily_bin1631.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/551614/Model_4FGL_J0011.4+0057_daily_bin1631.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0011.4+0057'

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  3.882e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
52         Index:  2.334e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/551614/ft1_filtered_4FGL_J0011.4+0057_daily_bin1631.fits
Spacecraft file(s): /scratch/kocevski/551614/ft2_4FGL_J0011.4+0057_daily_bin1631.fits
Exposure map: /scratch/kocevski/551614/expmap_662083201_662342401_4FGL_J0011.4+0057_daily_bin1631.fits
Exposure cube: /scratch/kocevski/551614/ltcube_662083201_662342401_4FGL_J0011.4+0057_daily_bin1631.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/551614/Model_4FGL_J0011.4+0057_daily_bin1631.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) = 9305.0803059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.433       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.6307       1.0000         .10000E-03   10000.    
     5 'norm      '    2.6745       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.3046       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10217E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2540       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2374       1.0000         .10000E-03   10000.    
    13 'Prefactor '    45.277       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.1289       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2706       1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.505       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6418       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.7186       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .29061       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.4593       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9305.072     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2708 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0750       -.57322E-05** at limit **
   2  Prefactor     .10000E-03    51.452       -.43071E-05** at limit **
   3  Prefactor     33.440        15.402        .32485E-07   -.39538E-04
   4  Prefactor     8.6308        5.1393       -.22491E-06   -.20896E-03
   5  norm          2.6748        2.0618        .49522E-07   -.33709E-03
   6  Prefactor     .10000E-03    5.9645        .11316E-05** at limit **
   7  norm          .10000E-03    1.4058       -.54999E-07** at limit **
   8  norm          8.3059        4.0942       -.72457E-06   -.67780E-03
   9  Prefactor     .10000E-03    3.6612       -.56549E-07** at limit **
  10  norm          .10000E-03    7.4860        .50554E-05** at limit **
  11  Prefactor     5.2550        2.4570        .40311E-07   -.12437E-03
  12  Prefactor     1.2384        2.0238        .98488E-08   -.44181E-03
  13  Prefactor     45.279        35.394        .11413E-05    .68338E-04
  14  Prefactor     .10000E-03    34.349        .39778E-05** at limit **
  15  Prefactor     .10000E-03    5.0647       -.26499E-06** at limit **
  16  Prefactor     .10000E-03    16.366       -.11433E-05** at limit **
  17  norm          9.1295        11.302        .57832E-07    .12328E-04
  18  Prefactor     2.2714        2.7044       -.33989E-07   -.21207E-03
  19  Prefactor     29.505        32.807        .37657E-06    .23507E-04
  20  Prefactor     2.6351        26.561        .15421E-06   -.29427E-04
  21  Prefactor     .10000E-03    3.0903       -.69913E-07** at limit **
  22  Prefactor     3.7198        3.6826        .15202E-05   -.28836E-02
  23  Normalizat    .29020        .19796       -.92845E-06   -.37970E-04
  24  Prefactor     1.4596        .15203        .25469E-06    .21157E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 33.4399
  Prefactor  = 8.63079
  norm       = 2.67481
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.30592
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 5.25497
  Prefactor  = 1.23839
  Prefactor  = 45.2793
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.12953
  Prefactor  = 2.27141
  Prefactor  = 29.5048
  Prefactor  = 2.63506
  Prefactor  = 0.0001
  Prefactor  = 3.71979
  Normalizat = 0.290196
  Prefactor  = 1.45956
 **********
 **   18 **HESSE 
 **********

 FCN=   9305.072     FROM HESSE     STATUS=OK           399 CALLS     3107 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3448        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    51.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.440        15.292        .69302E-04   -1.4551    
   4  Prefactor     8.6308        5.0537        .13645E-03   -1.5120    
   5  norm          2.6748        2.0380        .11008E-03   -1.5381    
   6  Prefactor     .10000E-03    6.0183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4186        .22152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.3059        4.1084        .13184E-03   -1.5131    
   9  Prefactor     .10000E-03    3.6733        .18016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    7.7682        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.2550        2.4400        .97887E-04   -1.5249    
  12  Prefactor     1.2384        1.9936        .16948E-03   -1.5485    
  13  Prefactor     45.279        35.405        .59584E-04   -1.4361    
  14  Prefactor     .10000E-03    34.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.1014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.1295        11.273        .13265E-03   -1.5104    
  18  Prefactor     2.2714        2.6739        .16159E-03   -1.5407    
  19  Prefactor     29.505        32.633        .73760E-04   -1.4621    
  20  Prefactor     2.6351        26.451        .25085E-03   -1.5383    
  21  Prefactor     .10000E-03    3.0950        .16559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.7198        5.7482        .10470E-02   -1.5322    
  23  Normalizat    .29020        .17536        .47981E-03   -1.2343    
  24  Prefactor     1.4596        .13996        .18880E-03   -.78679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.96519e-09
Minuit parameter uncertainties:
  1  0.000193258
  2  0.000394536
  3  15.2933
  4  5.05392
  5  2.0381
  6  4.88477e-05
  7  3.85438e-06
  8  4.10854
  9  7.14777e-06
  10  0.000169737
  11  2.44001
  12  1.99368
  13  35.421
  14  0.000369852
  15  1.1027e-05
  16  7.53055e-05
  17  11.2751
  18  2.67407
  19  32.6531
  20  16.7064
  21  1.7204e-06
  22  5.74906
  23  0.175687
  24  0.139998
Done.

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

Extracting fit parameters...

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  3.344e+01  1.529e+01  1.000e-04  1.000e+04 ( 1.000e-13)
52         Index:  2.334e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.460e+00  1.400e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  2.902e-01  1.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.07
Ra Dec: 2.855 0.965
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 7.99e-08 +/- 3.65e-08
Energy Flux (Fixed Index): 2.87e-05 +/- 1.31e-05

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) = 9305.05696178
delta logL = 0.0153064526075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9305.04508481
delta logL = 0.0271834233663

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.110       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2393       1.0000          .0000       10.000    
     3 'Normalizat'    .29901       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4552       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+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=   9305.045     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      260 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.111        19.938        .66692E-04   -.57958E-05
   2  Index         2.2392        .41803        .61257E-02    .62336E-03
   3  Normalizat    .29900        .17048        .47288E-03   -.41832E-05
   4  Prefactor     1.4552        .14009        .18904E-03   -.68439E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.1114
  Index      = 2.23925
  Normalizat = 0.298999
  Prefactor  = 1.45518
 **********
 **   18 **HESSE 
 **********

 FCN=   9305.045     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.111        19.387        .26677E-05   -1.4505    
   2  Index         2.2392        .40577        .12251E-02   -.58494    
   3  Normalizat    .29900        .17017        .18915E-04   -1.2290    
   4  Prefactor     1.4552        .13995        .75615E-05   -.78803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.21271e-12
Minuit parameter uncertainties:
  1  19.39
  2  0.406412
  3  0.170467
  4  0.139986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551614': 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) = 9305.04508481
delta logL = 0.0271834270534

Extracting fit parameters...

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  3.611e+01  1.939e+01  1.000e-04  1.000e+04 ( 1.000e-13)
52         Index:  2.239e+00  4.064e-01  0.000e+00  1.000e+01 (-1.000e+00)
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.455e+00  1.400e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  2.990e-01  1.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.12
Ra Dec: 2.855 0.965
Photon Index (Free Index): 2.24 +/- 0.41
Photon Flux (Free Index): 7.35e-08 +/- 4.32e-08
Energy Flux (Free Index): 3.08e-05 +/- 1.70e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/551614/cmap_HighResolution_662083201_662342401_4FGL_J0011.4+0057_daily_bin1631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.99e-08', energy_flux2='3.08e-05', photon_flux_error='3.65e-08', dlogl='2.72e-02', energy_flux='2.87e-05', photon_flux2='7.35e-08', job_status='DONE', time_completed='2021-12-28 00:18:13.560523', photon_index_error2='0.41', photon_index2='2.24', ts='13.07', fit_tolerance='1e-08', GAL='1.46', photon_index_error='0.00', energy_flux_error2='1.70e-05', EG='0.29', time_epoch_completed='1640679493.56', return_code='0', job_id='551614', GAL2='1.46', EG2='0.30', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='4.32e-08', ts2='13.12', photon_index='2.33' WHERE bin_id='1631' AND source_name='4FGL J0011.4+0057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 28 00:18:13 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 551614: <4FGL_J0011.4+0057_daily_bin1631> in cluster <slac> Done

Job <4FGL_J0011.4+0057_daily_bin1631> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Dec 28 00:04:53 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 28 00:04:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 28 00:04:55 2021
Terminated at Tue Dec 28 00:18:14 2021
Results reported at Tue Dec 28 00:18:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0011.4+0057_daily_bin1631 2.8551 0.9646 662083201 662342401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0011.4+0057 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   742.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             323.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            801 sec.

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

