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


Performing analysis on: 4FGL_J0011.4+0057_daily_bin1658
RA = 2.8551, Dec = 0.9646
tmin = 669081601, tmax = 669340801
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='694670', job_status='RUN', time_executed='2022-03-19 00:09:10.975277', time_epoch_executed='1647673750.98' WHERE source_name='4FGL J0011.4+0057' and cadence='daily' and bin_id='1658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/694670

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/694670/ft1_4FGL_J0011.4+0057_daily_bin1658.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/694670/ft2_4FGL_J0011.4+0057_daily_bin1658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/694670/ft1_4FGL_J0011.4+0057_daily_bin1658.fits outfile=/scratch/kocevski/694670/ft1_filteredMKT_4FGL_J0011.4+0057_daily_bin1658.fits ra=2.8551 dec=0.9646 rad=12.0 tmin=669081601.0 tmax=669340801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.41
user 5.17
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/694670/ft2_4FGL_J0011.4+0057_daily_bin1658.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/694670/ft1_filteredMKT_4FGL_J0011.4+0057_daily_bin1658.fits evtable="EVENTS" outfile="/scratch/kocevski/694670/ft1_filtered_4FGL_J0011.4+0057_daily_bin1658.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.49
user 0.34
sys 0.14
Number of photons that survived the gtmktime cut: 489

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/694670/ft1_filtered_4FGL_J0011.4+0057_daily_bin1658.fits" evtable="EVENTS" scfile=/scratch/kocevski/694670/ft2_4FGL_J0011.4+0057_daily_bin1658.fits sctable="SC_DATA" outfile=/scratch/kocevski/694670/ltcube_669081601_669340801_4FGL_J0011.4+0057_daily_bin1658.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/694670/ft2_4FGL_J0011.4+0057_daily_bin1658.fits
.....................!
real 12.59
user 12.23
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/694670/ft1_filtered_4FGL_J0011.4+0057_daily_bin1658.fits evtable="EVENTS" scfile=/scratch/kocevski/694670/ft2_4FGL_J0011.4+0057_daily_bin1658.fits sctable="SC_DATA" expcube=/scratch/kocevski/694670/ltcube_669081601_669340801_4FGL_J0011.4+0057_daily_bin1658.fits outfile=/scratch/kocevski/694670/expmap_669081601_669340801_4FGL_J0011.4+0057_daily_bin1658.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/694670/ltcube_669081601_669340801_4FGL_J0011.4+0057_daily_bin1658.fits
.....................!
real 191.09
user 185.62
sys 4.93

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/694670/ft1_filtered_4FGL_J0011.4+0057_daily_bin1658.fits scfile=/scratch/kocevski/694670/ft2_4FGL_J0011.4+0057_daily_bin1658.fits outfile=/scratch/kocevski/694670/cmap_669081601_669340801_4FGL_J0011.4+0057_daily_bin1658.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/694670/ft1_filtered_4FGL_J0011.4+0057_daily_bin1658.fits scfile=/scratch/kocevski/694670/ft2_4FGL_J0011.4+0057_daily_bin1658.fits outfile=/scratch/kocevski/694670/cmap_HighResolution_669081601_669340801_4FGL_J0011.4+0057_daily_bin1658.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 0.54
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/694670/ft1_filtered_4FGL_J0011.4+0057_daily_bin1658.fits', '/scratch/kocevski/694670/ft2_4FGL_J0011.4+0057_daily_bin1658.fits', expMap='/scratch/kocevski/694670/expmap_669081601_669340801_4FGL_J0011.4+0057_daily_bin1658.fits', expCube='/scratch/kocevski/694670/ltcube_669081601_669340801_4FGL_J0011.4+0057_daily_bin1658.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/694670/Model_4FGL_J0011.4+0057_daily_bin1658.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/694670/ft1_filtered_4FGL_J0011.4+0057_daily_bin1658.fits
Spacecraft file(s): /scratch/kocevski/694670/ft2_4FGL_J0011.4+0057_daily_bin1658.fits
Exposure map: /scratch/kocevski/694670/expmap_669081601_669340801_4FGL_J0011.4+0057_daily_bin1658.fits
Exposure cube: /scratch/kocevski/694670/ltcube_669081601_669340801_4FGL_J0011.4+0057_daily_bin1658.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/694670/Model_4FGL_J0011.4+0057_daily_bin1658.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) = 5389.74367554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    54.288       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.8088       1.0000         .10000E-03   10000.    
     8 'norm      '    1.5061       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2481       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7446       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16809E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18319E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.272       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.8849       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    90.155       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .51884       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.5402       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=   5389.731     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2713 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5863        .13914E-05** at limit **
   2  Prefactor     .10000E-03    34.111       -.21673E-05** at limit **
   3  Prefactor     54.291        24.450       -.12987E-05    .14312E-03
   4  Prefactor     .10000E-03    5.9187       -.28677E-06** at limit **
   5  norm          .10000E-03    1.1584        .26992E-07** at limit **
   6  Prefactor     .10000E-03    14.225       -.10372E-04** at limit **
   7  norm          5.8088        4.2544       -.41392E-06    .34618E-03
   8  norm          1.5063        4.6060       -.55249E-05   -.45716E-03
   9  Prefactor     .10000E-03    5.0525        .26425E-07** at limit **
  10  norm          .10000E-03    7.7133       -.28146E-05** at limit **
  11  Prefactor     4.2486        3.3994       -.85644E-07   -.13606E-03
  12  Prefactor     4.7449        4.0518        .80755E-07   -.11220E-03
  13  Prefactor     .10001E-03    36.830        .17186E-04** at limit **
  14  Prefactor     .10007E-03    268.02       -.52668E-04** at limit **
  15  Prefactor     .10000E-03    27.768       -.21714E-04** at limit **
  16  Prefactor     .10000E-03    23.197        .32487E-05** at limit **
  17  norm          11.243        25.618        .11004E-04    .38827E-03
  18  Prefactor     6.8585        7.0207       -.10335E-05    .31562E-03
  19  Prefactor     .10000E-03    16.722        .11988E-04** at limit **
  20  Prefactor     .10000E-03    9.5391        .35012E-05** at limit **
  21  Prefactor     90.171        37.145        .34194E-05   -.15440E-03
  22  Prefactor     .10000E-03    3.9680        .12574E-07** at limit **
  23  Normalizat    .51877        .26388        .77512E-06    .12753E-03
  24  Prefactor     1.5401        .19631        .28410E-07    .30321E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.2906
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 5.80884
  norm       = 1.50627
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.24859
  Prefactor  = 4.74488
  Prefactor  = 0.000100008
  Prefactor  = 0.000100067
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.2426
  Prefactor  = 6.85849
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 90.1714
  Prefactor  = 0.0001
  Normalizat = 0.518773
  Prefactor  = 1.54012
 **********
 **   18 **HESSE 
 **********

 FCN=   5389.731     FROM HESSE     STATUS=OK           385 CALLS     3098 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     54.291        24.400        .54439E-04   -1.4233    
   4  Prefactor     .10000E-03    5.9534        .17392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.1654        .77068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.8088        4.2367        .12360E-03   -1.5226    
   8  norm          1.5063        4.6922        .26777E-03   -1.5463    
   9  Prefactor     .10000E-03    5.0665        .16113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    7.8126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2486        3.3905        .11471E-03   -1.5296    
  12  Prefactor     4.7449        4.0472        .13275E-03   -1.5272    
  13  Prefactor     .10001E-03    36.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10007E-03    265.38        .20379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    28.985        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.243        25.900        .11933E-03   -1.5037    
  18  Prefactor     6.8585        7.0000        .15290E-03   -1.5184    
  19  Prefactor     .10000E-03    16.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.5355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     90.171        36.942        .42319E-04   -1.3806    
  22  Prefactor     .10000E-03    3.9704        .14283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .51877        .28206        .43263E-03   -1.1155    
  24  Prefactor     1.5401        .21393        .20915E-03   -.76422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37661e-09
Minuit parameter uncertainties:
  1  4.22398e-05
  2  0.000118651
  3  24.404
  4  2.35781e-05
  5  2.47243e-06
  6  0.00042782
  7  4.23693
  8  4.69335
  9  3.29996e-05
  10  9.34066e-05
  11  3.39067
  12  4.04742
  13  0.00107952
  14  0.00845703
  15  6.27853e-05
  16  0.000179259
  17  25.9259
  18  7.00084
  19  0.000511706
  20  0.000116144
  21  36.951
  22  1.63999e-06
  23  0.282846
  24  0.214056
Done.

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

Extracting fit parameters...

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  5.429e+01  2.440e+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.540e+00  2.141e-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:  5.188e-01  2.828e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.60
Ra Dec: 2.855 0.965
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 1.30e-07 +/- 5.83e-08
Energy Flux (Fixed Index): 4.66e-05 +/- 2.10e-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) = 5389.70884981
delta logL = 0.0221998381612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5389.70497937
delta logL = 0.026070285634

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.925       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2392       1.0000          .0000       10.000    
     3 'Normalizat'    .52999       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5338       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=   5389.705     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      302 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.932        37.026        .51829E-04    .12942E-04
   2  Index         2.2391        .42322        .45402E-02    .37927E-03
   3  Normalizat    .53002        .27197        .42828E-03   -.13883E-04
   4  Prefactor     1.5338        .21327        .20949E-03   -.29305E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.9324
  Index      = 2.23909
  Normalizat = 0.530017
  Prefactor  = 1.53379
 **********
 **   18 **HESSE 
 **********

 FCN=   5389.705     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.932        35.981        .20732E-05   -1.4158    
   2  Index         2.2391        .41104        .90804E-03   -.58498    
   3  Normalizat    .53002        .27185        .17131E-04   -1.1104    
   4  Prefactor     1.5338        .21323        .83796E-05   -.76598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11346e-12
Minuit parameter uncertainties:
  1  35.9943
  2  0.411704
  3  0.272531
  4  0.213358
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/694670': 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) = 5389.70497933
delta logL = 0.0260703211816

Extracting fit parameters...

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  5.993e+01  3.599e+01  1.000e-04  1.000e+04 ( 1.000e-13)
52         Index:  2.239e+00  4.117e-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.534e+00  2.134e-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:  5.300e-01  2.725e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.64
Ra Dec: 2.855 0.965
Photon Index (Free Index): 2.24 +/- 0.41
Photon Flux (Free Index): 1.22e-07 +/- 6.53e-08
Energy Flux (Free Index): 5.11e-05 +/- 3.17e-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/694670/cmap_HighResolution_669081601_669340801_4FGL_J0011.4+0057_daily_bin1658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.30e-07', energy_flux2='5.11e-05', photon_flux_error='5.83e-08', dlogl='2.61e-02', energy_flux='4.66e-05', photon_flux2='1.22e-07', job_status='DONE', time_completed='2022-03-19 00:18:56.372059', photon_index_error2='0.41', photon_index2='2.24', ts='10.60', fit_tolerance='1e-08', GAL='1.54', photon_index_error='0.00', energy_flux_error2='3.17e-05', EG='0.52', time_epoch_completed='1647674336.37', return_code='0', job_id='694670', GAL2='1.53', EG2='0.53', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='6.53e-08', ts2='10.64', photon_index='2.33' WHERE bin_id='1658' AND source_name='4FGL J0011.4+0057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 19 00:18:56 PDT 2022

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 694684: <4FGL_J0011.4+0057_daily_bin1658> in cluster <slac> Done

Job <4FGL_J0011.4+0057_daily_bin1658> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Mar 19 00:05:26 2022
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 19 00:05:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 19 00:05:40 2022
Terminated at Sat Mar 19 00:16:14 2022
Results reported at Sat Mar 19 00:16:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0011.4+0057_daily_bin1658 2.8551 0.9646 669081601 669340801 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 :                                   587.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             325.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            648 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 694670: <4FGL_J0011.4+0057_daily_bin1658> in cluster <slac> Done

Job <4FGL_J0011.4+0057_daily_bin1658> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Mar 19 00:05:25 2022
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 19 00:05:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 19 00:05:27 2022
Terminated at Sat Mar 19 00:18:57 2022
Results reported at Sat Mar 19 00:18:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0011.4+0057_daily_bin1658 2.8551 0.9646 669081601 669340801 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 :                                   587.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            812 sec.

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

