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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1121
RA = 337.426, Dec = -8.5447
tmin = 529891201, tmax = 530150401
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='313083', job_status='RUN', time_executed='2021-09-28 12:03:11.872521', time_epoch_executed='1632855791.87' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/313083

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/313083/ft1_4FGL_J2229.7-0832_daily_bin1121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/313083/ft2_4FGL_J2229.7-0832_daily_bin1121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/313083/ft1_4FGL_J2229.7-0832_daily_bin1121.fits outfile=/scratch/kocevski/313083/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1121.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=529891201.0 tmax=530150401.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 3.52
user 3.31
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/313083/ft2_4FGL_J2229.7-0832_daily_bin1121.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/313083/ft2_4FGL_J2229.7-0832_daily_bin1121.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/313083/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1121.fits evtable="EVENTS" outfile="/scratch/kocevski/313083/ft1_filtered_4FGL_J2229.7-0832_daily_bin1121.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/313083/ft1_filtered_4FGL_J2229.7-0832_daily_bin1121.fits" evtable="EVENTS" scfile=/scratch/kocevski/313083/ft2_4FGL_J2229.7-0832_daily_bin1121.fits sctable="SC_DATA" outfile=/scratch/kocevski/313083/ltcube_529891201_530150401_4FGL_J2229.7-0832_daily_bin1121.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/313083/ft2_4FGL_J2229.7-0832_daily_bin1121.fits
.....................!
real 11.91
user 11.58
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/313083/ft1_filtered_4FGL_J2229.7-0832_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/313083/ft2_4FGL_J2229.7-0832_daily_bin1121.fits sctable="SC_DATA" expcube=/scratch/kocevski/313083/ltcube_529891201_530150401_4FGL_J2229.7-0832_daily_bin1121.fits outfile=/scratch/kocevski/313083/expmap_529891201_530150401_4FGL_J2229.7-0832_daily_bin1121.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/313083/ltcube_529891201_530150401_4FGL_J2229.7-0832_daily_bin1121.fits
.....................!
real 190.88
user 186.37
sys 4.21

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

Setting source of interest to:
4FGL J2229.7-0832 @ 337.426 -8.5447

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/313083/ft1_filtered_4FGL_J2229.7-0832_daily_bin1121.fits scfile=/scratch/kocevski/313083/ft2_4FGL_J2229.7-0832_daily_bin1121.fits outfile=/scratch/kocevski/313083/cmap_529891201_530150401_4FGL_J2229.7-0832_daily_bin1121.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=337.426 yref=-8.5447 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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/313083/ft1_filtered_4FGL_J2229.7-0832_daily_bin1121.fits scfile=/scratch/kocevski/313083/ft2_4FGL_J2229.7-0832_daily_bin1121.fits outfile=/scratch/kocevski/313083/cmap_HighResolution_529891201_530150401_4FGL_J2229.7-0832_daily_bin1121.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=337.426 yref=-8.5447 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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/313083/ft1_filtered_4FGL_J2229.7-0832_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/313083/ft2_4FGL_J2229.7-0832_daily_bin1121.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/313083/Model_4FGL_J2229.7-0832_daily_bin1121.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/313083/ft1_filtered_4FGL_J2229.7-0832_daily_bin1121.fits.....................!
real 84.75
user 83.46
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/313083/ft1_filtered_4FGL_J2229.7-0832_daily_bin1121.fits', '/scratch/kocevski/313083/ft2_4FGL_J2229.7-0832_daily_bin1121.fits', expMap='/scratch/kocevski/313083/expmap_529891201_530150401_4FGL_J2229.7-0832_daily_bin1121.fits', expCube='/scratch/kocevski/313083/ltcube_529891201_530150401_4FGL_J2229.7-0832_daily_bin1121.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/313083/Model_4FGL_J2229.7-0832_daily_bin1121.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2229.7-0832'

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  8.119e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  2.473e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
257         beta:  9.910e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  3.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/313083/ft1_filtered_4FGL_J2229.7-0832_daily_bin1121.fits
Spacecraft file(s): /scratch/kocevski/313083/ft2_4FGL_J2229.7-0832_daily_bin1121.fits
Exposure map: /scratch/kocevski/313083/expmap_529891201_530150401_4FGL_J2229.7-0832_daily_bin1121.fits
Exposure cube: /scratch/kocevski/313083/ltcube_529891201_530150401_4FGL_J2229.7-0832_daily_bin1121.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/313083/Model_4FGL_J2229.7-0832_daily_bin1121.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) = 9592.72167752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7012       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.924       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4806       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.114       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.600       1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.540       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6826       1.0000         .10000E-03   10000.    
    11 'Prefactor '    56.361       1.0000         .10000E-03   10000.    
    12 'norm      '    .39298       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .71015       1.0000         .10000E-03   10000.    
    15 'Prefactor '    129.13       1.0000         .10000E-03   10000.    
    16 'norm      '    12.954       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.214       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4524       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    10.502       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .90311       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87880       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9592.700     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2414 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7010        3.3774        .47050E-06    .80207E-04
   2  Prefactor     .10000E-03    1.9860       -.17826E-06** at limit **
   3  Prefactor     .10000E-03    4.2562       -.10136E-06** at limit **
   4  Prefactor     18.924        11.624        .10406E-05    .10764E-04
   5  Prefactor     .10000E-03    4.1863        .25299E-06** at limit **
   6  Prefactor     4.4790        11.463        .28679E-06   -.11056E-03
   7  Prefactor     21.117        10.585        .34543E-06    .97335E-04
   8  Prefactor     18.602        9.6663        .23671E-06    .84685E-04
   9  Prefactor     44.522        47.228       -.51022E-05    .71942E-04
  10  Prefactor     2.6835        2.9429       -.16205E-06   -.23770E-03
  11  Prefactor     56.354        43.161        .23581E-06    .48361E-04
  12  norm          .39616        1.7524       -.12667E-05   -.45921E-03
  13  Prefactor     .10000E-03    23.537       -.10759E-05** at limit **
  14  norm          .71094        .72523       -.64032E-06   -.41769E-02
  15  Prefactor     129.25        46.370        .17801E-04    .33182E-03
  16  norm          12.942        4.0145       -.20659E-05    .26648E-02
  17  Prefactor     14.216        26.605       -.57434E-04   -.50254E-04
  18  Prefactor     2.4508        6.2257       -.12005E-05   -.37184E-03
  19  Prefactor     .10000E-03    12.311        .32369E-06** at limit **
  20  norm          10.502        9.4141       -.18949E-06   -.43581E-04
  21  Normalizat    .90264        .17707       -.44203E-06    .37300E-03
  22  Prefactor     .87909        .11388        .88569E-06    .29744E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.70103
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9237
  Prefactor  = 0.0001
  Prefactor  = 4.47902
  Prefactor  = 21.1169
  Prefactor  = 18.6017
  Prefactor  = 44.5219
  Prefactor  = 2.68351
  Prefactor  = 56.3545
  norm       = 0.396161
  Prefactor  = 0.0001
  norm       = 0.710942
  Prefactor  = 129.249
  norm       = 12.9417
  Prefactor  = 14.2156
  Prefactor  = 2.45079
  Prefactor  = 0.0001
  norm       = 10.5022
  Normalizat = 0.902643
  Prefactor  = 0.87909
 **********
 **   18 **HESSE 
 **********

 FCN=   9592.700     FROM HESSE     STATUS=OK           350 CALLS     2764 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7010        3.3733        .19652E-03   -1.5379    
   2  Prefactor     .10000E-03    2.0053        .13473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.2771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.924        11.622        .92071E-04   -1.4838    
   5  Prefactor     .10000E-03    4.1918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.4790        11.452        .19022E-03   -1.5285    
   7  Prefactor     21.117        10.635        .87169E-04   -1.4789    
   8  Prefactor     18.602        9.6384        .92867E-04   -1.4845    
   9  Prefactor     44.522        47.090        .60074E-04   -1.4372    
  10  Prefactor     2.6835        2.9180        .16267E-03   -1.5380    
  11  Prefactor     56.354        43.114        .53434E-04   -1.4205    
  12  norm          .39616        3.7171        .24080E-02   -1.5582    
  13  Prefactor     .10000E-03    23.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .71094        .65947        .79759E-03   -1.5539    
  15  Prefactor     129.25        48.025        .35430E-04   -1.3429    
  16  norm          12.942        4.1786        .53056E-04   -1.4988    
  17  Prefactor     14.216        26.661        .10624E-03   -1.4954    
  18  Prefactor     2.4508        6.2096        .26120E-03   -1.5395    
  19  Prefactor     .10000E-03    12.667        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.502        9.4144        .12364E-03   -1.5060    
  21  Normalizat    .90264        .20870        .31908E-03   -.96367    
  22  Prefactor     .87909        .13484        .21839E-03   -.96876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79165e-08
Minuit parameter uncertainties:
  1  3.37357
  2  4.49332e-06
  3  3.04309e-06
  4  11.623
  5  3.34676e-06
  6  11.4573
  7  10.636
  8  9.6392
  9  47.1291
  10  2.91813
  11  43.1382
  12  2.42688
  13  1.96095e-05
  14  0.659473
  15  48.0396
  16  4.17866
  17  26.6834
  18  6.21122
  19  1.22975e-05
  20  9.41576
  21  0.208888
  22  0.134887
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  3.962e-01  2.427e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  2.473e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
257         beta:  9.910e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  3.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  8.791e-01  1.349e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  9.026e-01  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 337.426 -8.545
Photon Flux Upper Limit: 7.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.02e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/313083/likelihoodResults_529891201_530150401_4FGL_J2229.7-0832_daily_bin1121.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) = 9592.69496934
delta logL = 0.00494442716445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9592.69465687
delta logL = 0.00525689408823

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .39222       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0085       1.0000          .0000       5.0000    
     3 'Normalizat'    .90500       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87766       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9592.695     FROM MIGRAD    STATUS=FAILED       101 CALLS      306 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .39100        2.8186        .22512E-02   -.15712E-02
   2  alpha         2.0070        1.8629        .36208       -.17516E-02
   3  Normalizat    .90500        .19431        .31870E-03    .27767E-03
   4  Prefactor     .87767        .13272        .21855E-03    .44001E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9592.695     FROM SIMPLEX   STATUS=UNCHANGED     69 CALLS      375 TOTAL
                     EDM=   .97E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .39100        2.8186        .11026E-03   -1.5583    
   2  alpha         2.0070        1.8629        .52414E-02   -.19850    
   3  Normalizat    .90500        .19431        .26701E-03   -.96285    
   4  Prefactor     .87767        .13272        .16093E-03   -.96926    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9592.695     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      408 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .39112        2.8341        .90047E-04    .34821E-03
   2  alpha         2.0069        1.7567        .40520       -.46671E-04
   3  Normalizat    .90500        .19443        .12748E-04    .67420E-04
   4  Prefactor     .87767        .13278        .43711E-04    .11215E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.391118
  alpha      = 2.0069
  Normalizat = 0.905003
  Prefactor  = 0.877665
 **********
 **   18 **HESSE 
 **********

 FCN=   9592.695     FROM HESSE     STATUS=OK            29 CALLS      437 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .39112        2.9149        .36019E-05   -1.5583    
   2  alpha         2.0069        1.5391        .50000       -.19854    
   3  Normalizat    .90500        .19413        .25496E-05   -.96285    
   4  Prefactor     .87767        .13265        .87421E-05   -.96926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.24661e-10
Minuit parameter uncertainties:
  1  2.13537
  2  1.66405
  3  0.194278
  4  0.132695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/313083': 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) = 9592.69465672
delta logL = 0.00525704376923

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  3.911e-01  2.135e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  2.007e+00  1.664e+00  0.000e+00  5.000e+00 ( 1.000e+00)
257         beta:  9.910e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  3.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  8.777e-01  1.327e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  9.050e-01  1.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 337.426 -8.545

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/313083/cmap_HighResolution_529891201_530150401_4FGL_J2229.7-0832_daily_bin1121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.02e-05', job_status='DONE', photon_flux_upper_limit='7.66e-08', time_completed='2021-09-28 12:16:37.821838', job_id='313083', GAL2='0.88', fit_tolerance='1e-08', EG2='0.91', EG='0.90', time_epoch_completed='1632856597.82', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='5.26e-03', ts2='0.04', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1121' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:16:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 313083: <4FGL_J2229.7-0832_daily_bin1121> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin1121> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep 28 12:01:09 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 12:01:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 12:01:10 2021
Terminated at Tue Sep 28 12:16:38 2021
Results reported at Tue Sep 28 12:16:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1121 337.426 -8.5447 529891201 530150401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2229.7-0832 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   805.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            929 sec.

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

