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


Performing analysis on: 4FGL_J0014.3-0500_daily_bin1652
RA = 3.5864, Dec = -5.012
tmin = 667526401, tmax = 667785601
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='726896', job_status='RUN', time_executed='2022-03-01 00:12:21.528179', time_epoch_executed='1646122341.53' WHERE source_name='4FGL J0014.3-0500' and cadence='daily' and bin_id='1652'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/726896

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/726896/ft1_4FGL_J0014.3-0500_daily_bin1652.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/726896/ft2_4FGL_J0014.3-0500_daily_bin1652.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/726896/ft1_4FGL_J0014.3-0500_daily_bin1652.fits outfile=/scratch/kocevski/726896/ft1_filteredMKT_4FGL_J0014.3-0500_daily_bin1652.fits ra=3.5864 dec=-5.012 rad=12.0 tmin=667526401.0 tmax=667785601.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.52
user 4.28
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/726896/ft2_4FGL_J0014.3-0500_daily_bin1652.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/726896/ft2_4FGL_J0014.3-0500_daily_bin1652.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/726896/ft1_filteredMKT_4FGL_J0014.3-0500_daily_bin1652.fits evtable="EVENTS" outfile="/scratch/kocevski/726896/ft1_filtered_4FGL_J0014.3-0500_daily_bin1652.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.51
user 0.35
sys 0.15
Number of photons that survived the gtmktime cut: 407

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/726896/ft1_filtered_4FGL_J0014.3-0500_daily_bin1652.fits" evtable="EVENTS" scfile=/scratch/kocevski/726896/ft2_4FGL_J0014.3-0500_daily_bin1652.fits sctable="SC_DATA" outfile=/scratch/kocevski/726896/ltcube_667526401_667785601_4FGL_J0014.3-0500_daily_bin1652.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/726896/ft2_4FGL_J0014.3-0500_daily_bin1652.fits
.....................!
real 14.31
user 13.93
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/726896/ft1_filtered_4FGL_J0014.3-0500_daily_bin1652.fits evtable="EVENTS" scfile=/scratch/kocevski/726896/ft2_4FGL_J0014.3-0500_daily_bin1652.fits sctable="SC_DATA" expcube=/scratch/kocevski/726896/ltcube_667526401_667785601_4FGL_J0014.3-0500_daily_bin1652.fits outfile=/scratch/kocevski/726896/expmap_667526401_667785601_4FGL_J0014.3-0500_daily_bin1652.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/726896/ltcube_667526401_667785601_4FGL_J0014.3-0500_daily_bin1652.fits
.....................!
real 191.14
user 186.53
sys 4.26

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

Setting source of interest to:
4FGL J0014.3-0500 @ 3.5864 -5.012

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/726896/ft1_filtered_4FGL_J0014.3-0500_daily_bin1652.fits scfile=/scratch/kocevski/726896/ft2_4FGL_J0014.3-0500_daily_bin1652.fits outfile=/scratch/kocevski/726896/cmap_667526401_667785601_4FGL_J0014.3-0500_daily_bin1652.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=3.5864 yref=-5.012 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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/726896/ft1_filtered_4FGL_J0014.3-0500_daily_bin1652.fits scfile=/scratch/kocevski/726896/ft2_4FGL_J0014.3-0500_daily_bin1652.fits outfile=/scratch/kocevski/726896/cmap_HighResolution_667526401_667785601_4FGL_J0014.3-0500_daily_bin1652.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=3.5864 yref=-5.012 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/726896/ft1_filtered_4FGL_J0014.3-0500_daily_bin1652.fits evtable="EVENTS" scfile=/scratch/kocevski/726896/ft2_4FGL_J0014.3-0500_daily_bin1652.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/726896/Model_4FGL_J0014.3-0500_daily_bin1652.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/726896/ft1_filtered_4FGL_J0014.3-0500_daily_bin1652.fits.....................!
real 50.62
user 48.63
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/726896/ft1_filtered_4FGL_J0014.3-0500_daily_bin1652.fits', '/scratch/kocevski/726896/ft2_4FGL_J0014.3-0500_daily_bin1652.fits', expMap='/scratch/kocevski/726896/expmap_667526401_667785601_4FGL_J0014.3-0500_daily_bin1652.fits', expCube='/scratch/kocevski/726896/ltcube_667526401_667785601_4FGL_J0014.3-0500_daily_bin1652.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/726896/Model_4FGL_J0014.3-0500_daily_bin1652.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0014.3-0500'

4FGL J0014.3-0500
   Spectrum: PowerLaw
62     Prefactor:  1.466e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
63         Index:  2.370e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
64         Scale:  1.747e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/726896/ft1_filtered_4FGL_J0014.3-0500_daily_bin1652.fits
Spacecraft file(s): /scratch/kocevski/726896/ft2_4FGL_J0014.3-0500_daily_bin1652.fits
Exposure map: /scratch/kocevski/726896/expmap_667526401_667785601_4FGL_J0014.3-0500_daily_bin1652.fits
Exposure cube: /scratch/kocevski/726896/ltcube_667526401_667785601_4FGL_J0014.3-0500_daily_bin1652.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/726896/Model_4FGL_J0014.3-0500_daily_bin1652.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) = 4721.79165588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.091       1.0000         .10000E-03   10000.    
     2 'Prefactor '    37.532       1.0000         .10000E-03   10000.    
     3 'Prefactor '    45.705       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.7197       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7046       1.0000         .10000E-03   10000.    
     7 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.5077       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    18.758       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5604       1.0000         .10000E-03   10000.    
    13 'norm      '    .10842E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.1971       1.0000         .10000E-03   10000.    
    15 'Prefactor '    89.840       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.262       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.422       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .98605       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81916       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4721.790     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     3023 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.091        15.261       -.57161E-06   -.20036E-03
   2  Prefactor     37.531        49.934       -.38825E-05   -.84153E-04
   3  Prefactor     45.703        24.030        .23242E-06   -.75341E-04
   4  Prefactor     .10000E-03    2.4037       -.62508E-06** at limit **
   5  norm          1.7192        2.9452        .31982E-06   -.89126E-04
   6  Prefactor     1.7018        25.392        .47979E-04    .17636E-04
   7  norm          .10000E-03    1.4550       -.88259E-06** at limit **
   8  norm          5.5074        5.0278        .22259E-05    .14259E-04
   9  Prefactor     .10000E-03    4.9161        .62944E-07** at limit **
  10  norm          18.758        10.836       -.11387E-06   -.12354E-03
  11  Prefactor     .10000E-03    1.2478        .25835E-06** at limit **
  12  Prefactor     2.5606        3.5239        .25486E-06   -.94544E-04
  13  norm          .10000E-03    4.0189        .94099E-06** at limit **
  14  norm          5.1969        7.4774        .91645E-07   -.63819E-04
  15  Prefactor     89.848        63.323        .57281E-06    .30599E-05
  16  Prefactor     18.260        43.531        .41374E-06   -.18416E-04
  17  Prefactor     11.688        530.38       -.96290E-04   -.10055E-03
  18  Prefactor     .10000E-03    6.9080       -.33048E-05** at limit **
  19  norm          .10000E-03    8.2930       -.14949E-05** at limit **
  20  Prefactor     .10000E-03    19.418       -.24775E-06** at limit **
  21  Prefactor     .10000E-03    3.3684       -.44037E-05** at limit **
  22  Prefactor     .10000E-03    33.507        .17315E-06** at limit **
  23  Prefactor     .10000E-03    23.105        .10597E-05** at limit **
  24  Prefactor     .10000E-03    3.2376        .18336E-06** at limit **
  25  Normalizat    .98613        .22019       -.89951E-05   -.17161E-04
  26  Prefactor     .81912        .18360        .38448E-05   -.37327E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.0914
  Prefactor  = 37.5306
  Prefactor  = 45.7026
  Prefactor  = 0.0001
  norm       = 1.71924
  Prefactor  = 1.70181
  norm       = 0.000100001
  norm       = 5.50737
  Prefactor  = 0.0001
  norm       = 18.7578
  Prefactor  = 0.0001
  Prefactor  = 2.56059
  norm       = 0.0001
  norm       = 5.19692
  Prefactor  = 89.8481
  Prefactor  = 18.2603
  Prefactor  = 11.6884
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.986129
  Prefactor  = 0.81912
 **********
 **   18 **HESSE 
 **********

 FCN=   4721.790     FROM HESSE     STATUS=OK           452 CALLS     3475 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.091        15.265        .78427E-04   -1.4686    
   2  Prefactor     37.531        49.934        .65420E-04   -1.4482    
   3  Prefactor     45.703        23.877        .59306E-04   -1.4355    
   4  Prefactor     .10000E-03    2.4124        .10408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.7192        2.8900        .13715E-03   -1.5446    
   6  Prefactor     1.7018        26.069        .16105E-02   -1.5447    
   7  norm          .10000E-03    1.4691        .81060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.5074        5.0265        .71141E-03   -1.5239    
   9  Prefactor     .10000E-03    4.9258        .14876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          18.758        10.830        .92476E-04   -1.4841    
  11  Prefactor     .10000E-03    1.2600        .74953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5606        3.4920        .13861E-03   -1.5388    
  13  norm          .10000E-03    4.0681        .13418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.1969        7.4352        .17633E-03   -1.5252    
  15  Prefactor     89.848        63.181        .21196E-03   -1.3809    
  16  Prefactor     18.260        43.264        .93723E-04   -1.4853    
  17  Prefactor     11.688        577.69        .56829E-02   -1.5024    
  18  Prefactor     .10000E-03    6.9199        .17617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.2971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.3842        .12253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    33.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    23.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.2433        .12072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .98613        .25107        .26907E-03   -.93497    
  26  Prefactor     .81912        .21046        .24526E-03   -.99027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50685e-09
Minuit parameter uncertainties:
  1  15.2672
  2  49.9896
  3  23.8816
  4  5.08155e-05
  5  2.89024
  6  13.3278
  7  5.52768e-05
  8  5.02692
  9  8.44402e-06
  10  10.831
  11  6.27988e-06
  12  3.49231
  13  1.7375e-05
  14  7.43654
  15  63.2286
  16  43.3379
  17  166.07
  18  6.31136e-05
  19  3.98913e-05
  20  5.40163e-05
  21  6.2155e-05
  22  0.000101954
  23  0.00022751
  24  1.21023e-05
  25  0.251371
  26  0.210666
Done.

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

Extracting fit parameters...

4FGL J0014.3-0500
   Spectrum: PowerLaw
62     Prefactor:  1.000e-04  5.082e-05  1.000e-04  1.000e+04 ( 1.000e-13)
63         Index:  2.370e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
64         Scale:  1.747e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  8.191e-01  2.107e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  9.861e-01  2.514e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 3.586 -5.012
Photon Flux Upper Limit: 7.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/726896/likelihoodResults_667526401_667785601_4FGL_J0014.3-0500_daily_bin1652.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) = 4721.79188926
delta logL = -0.00195934958901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4721.78992958
delta logL = 3.34005562763e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3490       1.0000          .0000       10.000    
     3 'Normalizat'    .98613       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81914       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+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=   4721.790     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      234 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10680E-03    1.4922        .10589E-01** at limit **
   2  Index         2.1122        8.6301        .50000        .47690E-04
   3  Normalizat    .98612        .37960E-02    .26907E-03   -.44702E-04
   4  Prefactor     .81913        .31987E-02    .24524E-03    .22403E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106803
  Index      = 2.11216
  Normalizat = 0.986119
  Prefactor  = 0.81913
 **********
 **   18 **HESSE 
 **********

 FCN=   4721.790     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10680E-03    93.533        .11475E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1122        8.6468        .50000       -.61575    
   3  Normalizat    .98612        .31146E-01    .10763E-04   -.93497    
   4  Prefactor     .81913        .26232E-01    .49049E-04   -.99027    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.17968e-07
Minuit parameter uncertainties:
  1  0.0505298
  2  758.45
  3  0.0311468
  4  0.0262327
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/726896': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4721.78992742
delta logL = 2.48823471338e-06

Extracting fit parameters...

4FGL J0014.3-0500
   Spectrum: PowerLaw
62     Prefactor:  1.068e-04  5.053e-02  1.000e-04  1.000e+04 ( 1.000e-13)
63         Index:  2.112e+00  7.585e+02  0.000e+00  1.000e+01 (-1.000e+00)
64         Scale:  1.747e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  8.191e-01  2.623e-02  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  9.861e-01  3.115e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 3.586 -5.012

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/726896/cmap_HighResolution_667526401_667785601_4FGL_J0014.3-0500_daily_bin1652.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.80e-03', job_status='DONE', photon_flux_upper_limit='7.52e-08', time_completed='2022-03-01 00:22:28.716975', job_id='726896', GAL2='0.82', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1646122948.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.49e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1652' AND source_name='4FGL J0014.3-0500' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar  1 00:22:28 PST 2022

SUCCESS', return_code='0', GAL='0.82', dlogl='2.49e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1652' AND source_name='4FGL J0014.3-0500' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar  1 00:20:48 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 726581: <4FGL_J0014.3-0500_daily_bin1652> in cluster <slac> Done

Job <4FGL_J0014.3-0500_daily_bin1652> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Mar  1 00:05:59 2022
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar  1 00:06:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar  1 00:06:32 2022
Terminated at Tue Mar  1 00:20:49 2022
Results reported at Tue Mar  1 00:20:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0014.3-0500_daily_bin1652 3.5864 -5.012 667526401 667785601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0014.3-0500 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   607.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            890 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 726896: <4FGL_J0014.3-0500_daily_bin1652> in cluster <slac> Done

Job <4FGL_J0014.3-0500_daily_bin1652> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Mar  1 00:06:29 2022
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar  1 00:08:53 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar  1 00:08:53 2022
Terminated at Tue Mar  1 00:22:29 2022
Results reported at Tue Mar  1 00:22:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0014.3-0500_daily_bin1652 3.5864 -5.012 667526401 667785601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0014.3-0500 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   604.42 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             267.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            960 sec.

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

