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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1461
RA = 337.426, Dec = -8.5447
tmin = 618019201, tmax = 618278401
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='314590', job_status='RUN', time_executed='2021-09-28 12:09:10.005154', time_epoch_executed='1632856150.01' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1461'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/314590

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/314590/ft1_4FGL_J2229.7-0832_daily_bin1461.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/314590/ft2_4FGL_J2229.7-0832_daily_bin1461.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/314590/ft1_4FGL_J2229.7-0832_daily_bin1461.fits outfile=/scratch/kocevski/314590/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1461.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=618019201.0 tmax=618278401.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.18
user 4.90
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/314590/ft2_4FGL_J2229.7-0832_daily_bin1461.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/314590/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1461.fits evtable="EVENTS" outfile="/scratch/kocevski/314590/ft1_filtered_4FGL_J2229.7-0832_daily_bin1461.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/314590/ft1_filtered_4FGL_J2229.7-0832_daily_bin1461.fits" evtable="EVENTS" scfile=/scratch/kocevski/314590/ft2_4FGL_J2229.7-0832_daily_bin1461.fits sctable="SC_DATA" outfile=/scratch/kocevski/314590/ltcube_618019201_618278401_4FGL_J2229.7-0832_daily_bin1461.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/314590/ft2_4FGL_J2229.7-0832_daily_bin1461.fits
.....................!
real 12.14
user 11.77
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/314590/ft1_filtered_4FGL_J2229.7-0832_daily_bin1461.fits evtable="EVENTS" scfile=/scratch/kocevski/314590/ft2_4FGL_J2229.7-0832_daily_bin1461.fits sctable="SC_DATA" expcube=/scratch/kocevski/314590/ltcube_618019201_618278401_4FGL_J2229.7-0832_daily_bin1461.fits outfile=/scratch/kocevski/314590/expmap_618019201_618278401_4FGL_J2229.7-0832_daily_bin1461.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/314590/ltcube_618019201_618278401_4FGL_J2229.7-0832_daily_bin1461.fits
.....................!
real 190.16
user 185.51
sys 4.23

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/314590/ft1_filtered_4FGL_J2229.7-0832_daily_bin1461.fits scfile=/scratch/kocevski/314590/ft2_4FGL_J2229.7-0832_daily_bin1461.fits outfile=/scratch/kocevski/314590/cmap_618019201_618278401_4FGL_J2229.7-0832_daily_bin1461.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.53
user 0.39
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/314590/ft1_filtered_4FGL_J2229.7-0832_daily_bin1461.fits evtable="EVENTS" scfile=/scratch/kocevski/314590/ft2_4FGL_J2229.7-0832_daily_bin1461.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/314590/Model_4FGL_J2229.7-0832_daily_bin1461.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/314590/ft1_filtered_4FGL_J2229.7-0832_daily_bin1461.fits.....................!
real 53.12
user 51.86
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4596       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1223       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7310       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.081       1.0000         .10000E-03   10000.    
     5 'Prefactor '    67.642       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.7722       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1067       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .20059E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10557E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .69497       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.2706       1.0000         .10000E-03   10000.    
    16 'norm      '    .11734E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    62.715       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.7716       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    197.52       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1645       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77616       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=   5055.785     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2730 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4592        10.641        .13086E-06    .70682E-05
   2  Prefactor     6.1257        8.8769        .16290E-06    .24113E-04
   3  Prefactor     6.7462        20.529        .20012E-06   -.18900E-06
   4  Prefactor     24.082        25.129        .81849E-07    .16865E-04
   5  Prefactor     67.633        32.936        .17816E-06   -.52272E-04
   6  Prefactor     .10000E-03    13.678       -.28588E-07** at limit **
   7  Prefactor     8.7732        15.360       -.10237E-06    .48414E-04
   8  Prefactor     6.1165        17.204        .48079E-06   -.94353E-06
   9  Prefactor     .10000E-03    87.625       -.46131E-06** at limit **
  10  Prefactor     .10000E-03    2.1172       -.62074E-09** at limit **
  11  Prefactor     .10010E-03    1733.5       -.55097E-05** at limit **
  12  norm          .10000E-03    1.4587       -.23550E-07** at limit **
  13  Prefactor     .10000E-03    36.010        .64970E-07** at limit **
  14  norm          .69499        1.2651       -.32198E-06   -.20682E-03
  15  Prefactor     9.3177        23.819       -.41233E-05    .20146E-03
  16  norm          .10000E-03    1.2579        .10519E-05** at limit **
  17  Prefactor     62.735        47.248       -.94485E-07    .13704E-03
  18  Prefactor     6.7745        13.095        .66041E-07    .25894E-04
  19  Prefactor     .10000E-03    24.194        .13434E-07** at limit **
  20  norm          197.53        32.657        .25701E-07    .98095E-04
  21  Normalizat    1.1640        .26585       -.13254E-05    .19694E-03
  22  Prefactor     .77639        .15677        .12172E-06    .55469E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.45918
  Prefactor  = 6.12571
  Prefactor  = 6.7462
  Prefactor  = 24.0818
  Prefactor  = 67.633
  Prefactor  = 0.0001
  Prefactor  = 8.77325
  Prefactor  = 6.11651
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100097
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.694987
  Prefactor  = 9.31766
  norm       = 0.000100003
  Prefactor  = 62.7352
  Prefactor  = 6.77446
  Prefactor  = 0.0001
  norm       = 197.531
  Normalizat = 1.16396
  Prefactor  = 0.776394
 **********
 **   18 **HESSE 
 **********

 FCN=   5055.785     FROM HESSE     STATUS=OK           346 CALLS     3076 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4592        10.636        .26078E-03   -1.5394    
   2  Prefactor     6.1257        8.8626        .16226E-03   -1.5213    
   3  Prefactor     6.7462        20.463        .15466E-03   -1.5188    
   4  Prefactor     24.082        25.117        .81629E-04   -1.4726    
   5  Prefactor     67.633        32.824        .48802E-04   -1.4061    
   6  Prefactor     .10000E-03    13.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.7732        15.408        .13533E-03   -1.5115    
   8  Prefactor     6.1165        17.156        .16247E-03   -1.5213    
   9  Prefactor     .10000E-03    87.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.1308        .10082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10010E-03    1722.5        .36492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.4829        .83849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    36.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .69499        1.2553        .10085E-03   -1.5541    
  15  Prefactor     9.3177        24.417        .13163E-03   -1.5097    
  16  norm          .10000E-03    2.5880        .15236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     62.735        46.922        .50670E-04   -1.4122    
  18  Prefactor     6.7745        13.078        .15419E-03   -1.5187    
  19  Prefactor     .10000E-03    24.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          197.53        32.658        .14374E-03   -1.2888    
  21  Normalizat    1.1640        .31222        .30199E-03   -.87724    
  22  Prefactor     .77639        .18558        .23006E-03   -1.0060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52774e-09
Minuit parameter uncertainties:
  1  10.2315
  2  8.86448
  3  20.4838
  4  25.1282
  5  32.8331
  6  7.06858e-06
  7  15.4148
  8  17.1701
  9  0.000531067
  10  1.41694e-06
  11  0.0266332
  12  7.96808e-06
  13  1.80941e-05
  14  1.2553
  15  24.4428
  16  0.000172991
  17  46.9501
  18  13.0832
  19  0.000151851
  20  32.6606
  21  0.312716
  22  0.185732
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.000e-04  7.968e-06  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:  7.764e-01  1.857e-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:  1.164e+00  3.127e-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: 7.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.01e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/314590/likelihoodResults_618019201_618278401_4FGL_J2229.7-0832_daily_bin1461.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) = 5055.78784617
delta logL = -0.00317039782112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5055.78467583
delta logL = -5.5872988014e-08

Fit tolerance = 1e-08

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

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

 FCN=   5055.785     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      235 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6918        .83876E-03** at limit **
   2  alpha         2.3879        2.9908        .16462       -.99266E-07
   3  Normalizat    1.1640        .28584        .30199E-03    .46681E-04
   4  Prefactor     .77640        .18273        .23006E-03    .61030E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.38791
  Normalizat = 1.16395
  Prefactor  = 0.776397
 **********
 **   18 **HESSE 
 **********

 FCN=   5055.785     FROM HESSE     STATUS=OK            25 CALLS      260 TOTAL
                     EDM=   .46E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4921        .16775E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3879        3.3119        .32924E-01   -.44851E-01
   3  Normalizat    1.1640        .28611        .12080E-04   -.87724    
   4  Prefactor     .77640        .18290        .92022E-05   -1.0060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63647e-12
Minuit parameter uncertainties:
  1  1.2958e-06
  2  143.034
  3  0.286495
  4  0.183044
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/314590': 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) = 5055.78467559
delta logL = 1.74637534656e-07

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.000e-04  1.296e-06  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  2.388e+00  1.430e+02  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:  7.764e-01  1.830e-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:  1.164e+00  2.865e-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/314590/cmap_HighResolution_618019201_618278401_4FGL_J2229.7-0832_daily_bin1461.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.01e-05', job_status='DONE', photon_flux_upper_limit='7.62e-08', time_completed='2021-09-28 12:18:42.054212', job_id='314590', GAL2='0.78', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632856722.05', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.75e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1461' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:18:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 314590: <4FGL_J2229.7-0832_daily_bin1461> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin1461> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 12:06:00 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 12:06:02 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:06:02 2021
Terminated at Tue Sep 28 12:18:42 2021
Results reported at Tue Sep 28 12:18:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1461 337.426 -8.5447 618019201 618278401 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 :                                   569.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            762 sec.

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

