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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1624
RA = 337.426, Dec = -8.5447
tmin = 660268801, tmax = 660528001
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='484954', job_status='RUN', time_executed='2021-12-08 08:40:25.195358', time_epoch_executed='1638981625.2' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1624'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484954

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484954/ft1_4FGL_J2229.7-0832_daily_bin1624.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484954/ft2_4FGL_J2229.7-0832_daily_bin1624.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484954/ft1_4FGL_J2229.7-0832_daily_bin1624.fits outfile=/scratch/kocevski/484954/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1624.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=660268801.0 tmax=660528001.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.85
user 3.62
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/484954/ft2_4FGL_J2229.7-0832_daily_bin1624.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/484954/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1624.fits evtable="EVENTS" outfile="/scratch/kocevski/484954/ft1_filtered_4FGL_J2229.7-0832_daily_bin1624.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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/484954/ft1_filtered_4FGL_J2229.7-0832_daily_bin1624.fits" evtable="EVENTS" scfile=/scratch/kocevski/484954/ft2_4FGL_J2229.7-0832_daily_bin1624.fits sctable="SC_DATA" outfile=/scratch/kocevski/484954/ltcube_660268801_660528001_4FGL_J2229.7-0832_daily_bin1624.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/484954/ft2_4FGL_J2229.7-0832_daily_bin1624.fits
.....................!
real 12.74
user 12.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484954/ft1_filtered_4FGL_J2229.7-0832_daily_bin1624.fits evtable="EVENTS" scfile=/scratch/kocevski/484954/ft2_4FGL_J2229.7-0832_daily_bin1624.fits sctable="SC_DATA" expcube=/scratch/kocevski/484954/ltcube_660268801_660528001_4FGL_J2229.7-0832_daily_bin1624.fits outfile=/scratch/kocevski/484954/expmap_660268801_660528001_4FGL_J2229.7-0832_daily_bin1624.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/484954/ltcube_660268801_660528001_4FGL_J2229.7-0832_daily_bin1624.fits
.....................!
real 192.57
user 187.27
sys 4.67

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/484954/ft1_filtered_4FGL_J2229.7-0832_daily_bin1624.fits scfile=/scratch/kocevski/484954/ft2_4FGL_J2229.7-0832_daily_bin1624.fits outfile=/scratch/kocevski/484954/cmap_660268801_660528001_4FGL_J2229.7-0832_daily_bin1624.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484954/ft1_filtered_4FGL_J2229.7-0832_daily_bin1624.fits scfile=/scratch/kocevski/484954/ft2_4FGL_J2229.7-0832_daily_bin1624.fits outfile=/scratch/kocevski/484954/cmap_HighResolution_660268801_660528001_4FGL_J2229.7-0832_daily_bin1624.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/484954/ft1_filtered_4FGL_J2229.7-0832_daily_bin1624.fits evtable="EVENTS" scfile=/scratch/kocevski/484954/ft2_4FGL_J2229.7-0832_daily_bin1624.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/484954/Model_4FGL_J2229.7-0832_daily_bin1624.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/484954/ft1_filtered_4FGL_J2229.7-0832_daily_bin1624.fits.....................!
real 49.51
user 48.02
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/484954/ft1_filtered_4FGL_J2229.7-0832_daily_bin1624.fits', '/scratch/kocevski/484954/ft2_4FGL_J2229.7-0832_daily_bin1624.fits', expMap='/scratch/kocevski/484954/expmap_660268801_660528001_4FGL_J2229.7-0832_daily_bin1624.fits', expCube='/scratch/kocevski/484954/ltcube_660268801_660528001_4FGL_J2229.7-0832_daily_bin1624.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/484954/Model_4FGL_J2229.7-0832_daily_bin1624.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/484954/ft1_filtered_4FGL_J2229.7-0832_daily_bin1624.fits
Spacecraft file(s): /scratch/kocevski/484954/ft2_4FGL_J2229.7-0832_daily_bin1624.fits
Exposure map: /scratch/kocevski/484954/expmap_660268801_660528001_4FGL_J2229.7-0832_daily_bin1624.fits
Exposure cube: /scratch/kocevski/484954/ltcube_660268801_660528001_4FGL_J2229.7-0832_daily_bin1624.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/484954/Model_4FGL_J2229.7-0832_daily_bin1624.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) = 4970.09004551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.9100       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11577E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4536       1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.179       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.235       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.402       1.0000         .10000E-03   10000.    
     9 'Prefactor '    89.647       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1200       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.0667       1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.210       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.0306       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .11410E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .75832       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0766       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=   4970.089     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     2778 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9276        .20618E-07** at limit **
   2  Prefactor     9.9121        8.0573       -.11462E-05   -.93819E-04
   3  Prefactor     .10001E-03    43.809       -.75434E-05** at limit **
   4  Prefactor     4.4543        15.492       -.89489E-06   -.53642E-04
   5  Prefactor     34.150        21.314       -.12162E-04   -.15703E-03
   6  Prefactor     .10001E-03    40.541        .18987E-04** at limit **
   7  Prefactor     28.239        15.388       -.15171E-05   -.59208E-05
   8  Prefactor     22.406        16.609        .33366E-05   -.48900E-04
   9  Prefactor     89.693        116.07        .47808E-04    .32590E-05
  10  Prefactor     .10000E-03    1.7527       -.95847E-07** at limit **
  11  Prefactor     .10000E-03    27.616       -.30522E-05** at limit **
  12  norm          .10000E-03    2.8535       -.62404E-06** at limit **
  13  Prefactor     .10000E-03    43.981       -.57699E-06** at limit **
  14  norm          1.1199        1.2016       -.50306E-06   -.22379E-03
  15  Prefactor     .10000E-03    14.617        .17573E-07** at limit **
  16  norm          1.0670        1.3945        .50875E-07   -.38593E-03
  17  Prefactor     34.208        39.354       -.18812E-05   -.66838E-05
  18  Prefactor     9.0285        18.635       -.97668E-06   -.29773E-04
  19  Prefactor     .10000E-03    4.2647        .10789E-06** at limit **
  20  norm          .10001E-03    8.0905        .23507E-06** at limit **
  21  Normalizat    .75786        .25724       -.42797E-05    .65488E-05
  22  Prefactor     1.0768        .16048        .12916E-05   -.16230E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 9.91208
  Prefactor  = 0.000100014
  Prefactor  = 4.45432
  Prefactor  = 34.1496
  Prefactor  = 0.000100012
  Prefactor  = 28.2387
  Prefactor  = 22.4065
  Prefactor  = 89.6934
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.11993
  Prefactor  = 0.0001
  norm       = 1.06697
  Prefactor  = 34.2078
  Prefactor  = 9.02848
  Prefactor  = 0.0001
  norm       = 0.000100006
  Normalizat = 0.757858
  Prefactor  = 1.07682
 **********
 **   18 **HESSE 
 **********

 FCN=   4970.089     FROM HESSE     STATUS=OK           342 CALLS     3120 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9277        .11781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.9121        8.0531        .12729E-03   -1.5078    
   3  Prefactor     .10001E-03    45.255        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.4543        15.477        .19081E-03   -1.5286    
   5  Prefactor     34.150        21.365        .68544E-04   -1.4539    
   6  Prefactor     .10001E-03    41.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.239        15.407        .75396E-04   -1.4645    
   8  Prefactor     22.406        16.602        .84628E-04   -1.4761    
   9  Prefactor     89.693        115.72        .21219E-03   -1.3811    
  10  Prefactor     .10000E-03    1.7580        .91067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    27.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.9208        .11628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    44.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1199        1.1973        .44391E-04   -1.5496    
  15  Prefactor     .10000E-03    14.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0670        1.3326        .79388E-04   -1.5501    
  17  Prefactor     34.208        38.927        .68514E-04   -1.4538    
  18  Prefactor     9.0285        18.606        .13337E-03   -1.5107    
  19  Prefactor     .10000E-03    4.2673        .14219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10001E-03    56.980        .38286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .75786        .29676        .33802E-03   -1.0165    
  22  Prefactor     1.0768        .18812        .19286E-03   -.90211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19514e-09
Minuit parameter uncertainties:
  1  8.59784e-07
  2  8.05395
  3  0.00161404
  4  15.491
  5  21.3693
  6  0.00139774
  7  15.4091
  8  16.6058
  9  116.017
  10  1.40536e-05
  11  1.3478e-05
  12  9.9345e-05
  13  6.33695e-05
  14  1.19728
  15  6.68674e-06
  16  1.33262
  17  38.9558
  18  18.6181
  19  4.52342e-06
  20  0.00119736
  21  0.297397
  22  0.188232
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.000e-04  9.934e-05  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:  1.077e+00  1.882e-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:  7.579e-01  2.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 337.426 -8.545
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/484954/likelihoodResults_660268801_660528001_4FGL_J2229.7-0832_daily_bin1624.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) = 4970.09046774
delta logL = -0.00163122688627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4970.08789384
delta logL = 0.000942678958381

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58820E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4730       1.0000          .0000       5.0000    
     3 'Normalizat'    .75480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0778       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.

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

 FCN=   4970.088     FROM MIGRAD    STATUS=FAILED        98 CALLS      412 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .59761E-01    1385.5        .11020E-02    .88773E-03
   2  alpha         4.4752        4.0780        .20000        .13775E-05
   3  Normalizat    .75397        .72396        .33883E-03    .31858E-03
   4  Prefactor     1.0783        .25761        .19274E-03    .25825E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4970.088     FROM SIMPLEX   STATUS=UNCHANGED    118 CALLS      530 TOTAL
                     EDM=   .56E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .59761E-01    1385.5        .28284E-03    .88773E-03
   2  alpha         4.4752        4.0780        .16217E-02    .13775E-05
   3  Normalizat    .75397        .72396        .13150E-03    .31858E-03
   4  Prefactor     1.0783        .25761        .31325E-04    .25825E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4970.088     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      562 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .59729E-01    9.3105        .44079E-04    .55736E-03
   2  alpha         4.4754        2.8546        .80000E-02    .42334E-05
   3  Normalizat    .75398        .28817        .13553E-04    .32781E-03
   4  Prefactor     1.0783        .18802        .38548E-04    .28336E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0597293
  alpha      = 4.47544
  Normalizat = 0.753976
  Prefactor  = 1.07831
 **********
 **   18 **HESSE 
 **********

 FCN=   4970.088     FROM HESSE     STATUS=OK            23 CALLS      585 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .59729E-01    9.1159        .17631E-05   -1.5659    
   2  alpha         4.4754        2.7856        .32000E-03    .91110    
   3  Normalizat    .75398        .28805        .27106E-05   -1.0180    
   4  Prefactor     1.0783        .18799        .77095E-05   -.90163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27251e-09
Minuit parameter uncertainties:
  1  1.47478
  2  10.1092
  3  0.288628
  4  0.188103
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484954': 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) = 4970.0878896
delta logL = 0.000946920231399

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  5.973e-02  1.475e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  4.475e+00  1.011e+01  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:  1.078e+00  1.881e-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:  7.540e-01  2.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/484954/cmap_HighResolution_660268801_660528001_4FGL_J2229.7-0832_daily_bin1624.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.81e-05', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-12-08 08:50:03.988479', job_id='484954', GAL2='1.08', fit_tolerance='1e-08', EG2='0.75', EG='0.76', time_epoch_completed='1638982203.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='9.47e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1624' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:50:04 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 484954: <4FGL_J2229.7-0832_daily_bin1624> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin1624> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Dec  8 08:35:24 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 08:38:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 08:38:12 2021
Terminated at Wed Dec  8 08:50:04 2021
Results reported at Wed Dec  8 08:50:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1624 337.426 -8.5447 660268801 660528001 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 :                                   578.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             246.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            880 sec.

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

