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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin777
RA = 337.426, Dec = -8.5447
tmin = 440726401, tmax = 440985601
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='311429', job_status='RUN', time_executed='2021-09-28 11:56:02.217679', time_epoch_executed='1632855362.22' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311429

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311429/ft1_4FGL_J2229.7-0832_daily_bin777.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311429/ft2_4FGL_J2229.7-0832_daily_bin777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311429/ft1_4FGL_J2229.7-0832_daily_bin777.fits outfile=/scratch/kocevski/311429/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin777.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=440726401.0 tmax=440985601.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.84
user 3.60
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/311429/ft1_filtered_4FGL_J2229.7-0832_daily_bin777.fits" evtable="EVENTS" scfile=/scratch/kocevski/311429/ft2_4FGL_J2229.7-0832_daily_bin777.fits sctable="SC_DATA" outfile=/scratch/kocevski/311429/ltcube_440726401_440985601_4FGL_J2229.7-0832_daily_bin777.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/311429/ft2_4FGL_J2229.7-0832_daily_bin777.fits
.....................!
real 11.65
user 11.31
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311429/ft1_filtered_4FGL_J2229.7-0832_daily_bin777.fits evtable="EVENTS" scfile=/scratch/kocevski/311429/ft2_4FGL_J2229.7-0832_daily_bin777.fits sctable="SC_DATA" expcube=/scratch/kocevski/311429/ltcube_440726401_440985601_4FGL_J2229.7-0832_daily_bin777.fits outfile=/scratch/kocevski/311429/expmap_440726401_440985601_4FGL_J2229.7-0832_daily_bin777.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/311429/ltcube_440726401_440985601_4FGL_J2229.7-0832_daily_bin777.fits
.....................!
real 195.32
user 189.05
sys 5.93

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/311429/ft1_filtered_4FGL_J2229.7-0832_daily_bin777.fits scfile=/scratch/kocevski/311429/ft2_4FGL_J2229.7-0832_daily_bin777.fits outfile=/scratch/kocevski/311429/cmap_440726401_440985601_4FGL_J2229.7-0832_daily_bin777.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/311429/ft1_filtered_4FGL_J2229.7-0832_daily_bin777.fits scfile=/scratch/kocevski/311429/ft2_4FGL_J2229.7-0832_daily_bin777.fits outfile=/scratch/kocevski/311429/cmap_HighResolution_440726401_440985601_4FGL_J2229.7-0832_daily_bin777.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.56
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8526       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.441       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.494       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .35432E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.713       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3290       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10441E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    41.281       1.0000         .10000E-03   10000.    
    16 'norm      '    .11364E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .37052E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    12.551       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99401       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87334       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=   4622.826     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2540 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8531        6.4035       -.39144E-06   -.13369E-03
   2  Prefactor     12.442        8.4132       -.17888E-06    .14231E-03
   3  Prefactor     .10000E-03    10.002        .37159E-07** at limit **
   4  Prefactor     46.494        27.903       -.28170E-06    .70003E-04
   5  Prefactor     .10000E-03    5.1316        .10298E-07** at limit **
   6  Prefactor     .10000E-03    3.5486        .11887E-08** at limit **
   7  Prefactor     .10000E-03    11.102       -.10438E-05** at limit **
   8  Prefactor     14.715        12.523       -.68600E-06   -.14145E-04
   9  Prefactor     .10002E-03    272.24       -.93577E-05** at limit **
  10  Prefactor     1.3302        4.2977        .54004E-06    .75914E-04
  11  Prefactor     .10000E-03    35.063       -.67316E-06** at limit **
  12  norm          .10000E-03    3.3877       -.32146E-06** at limit **
  13  Prefactor     .10000E-03    43.246        .21266E-05** at limit **
  14  norm          .10000E-03    .50550       -.15102E-06** at limit **
  15  Prefactor     41.339        21.744       -.82204E-06    .64931E-03
  16  norm          .10000E-03    1.2195       -.16871E-05** at limit **
  17  Prefactor     .10001E-03    67.361       -.76097E-05** at limit **
  18  Prefactor     .10003E-03    10.195       -.18288E-06** at limit **
  19  Prefactor     .10000E-03    7.7270       -.84285E-07** at limit **
  20  norm          12.554        14.784       -.89894E-06   -.54812E-04
  21  Normalizat    .99350        .24030        .34410E-05    .62149E-03
  22  Prefactor     .87349        .14943       -.46405E-06    .87297E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.85309
  Prefactor  = 12.4422
  Prefactor  = 0.0001
  Prefactor  = 46.4945
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 14.7153
  Prefactor  = 0.000100024
  Prefactor  = 1.33022
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 41.3388
  norm       = 0.000100001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100032
  Prefactor  = 0.0001
  norm       = 12.5541
  Normalizat = 0.993495
  Prefactor  = 0.87349
 **********
 **   18 **HESSE 
 **********

 FCN=   4622.826     FROM HESSE     STATUS=OK           342 CALLS     2882 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8531        6.4072        .24072E-03   -1.5370    
   2  Prefactor     12.442        8.4032        .11357E-03   -1.5002    
   3  Prefactor     .10000E-03    10.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     46.494        27.762        .29402E-03   -1.4343    
   5  Prefactor     .10000E-03    5.1391        .15042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5492        .12509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    91.353        .42442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.715        12.395        .10442E-03   -1.4941    
   9  Prefactor     .10002E-03    277.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.3302        4.2021        .22809E-03   -1.5477    
  11  Prefactor     .10000E-03    35.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.8518        .23926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    43.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .86291        .93117E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     41.339        21.945        .62390E-04   -1.4421    
  16  norm          .10000E-03    1.3410        .12495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    68.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10003E-03    91.514        .41547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.7465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          12.554        14.857        .11307E-03   -1.4999    
  21  Normalizat    .99350        .27615        .28267E-03   -.93249    
  22  Prefactor     .87349        .17409        .19753E-03   -.97074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38858e-09
Minuit parameter uncertainties:
  1  6.4087
  2  8.40396
  3  1.28994e-05
  4  27.7695
  5  2.50495e-06
  6  1.03831e-06
  7  0.00121974
  8  12.3973
  9  0.00517541
  10  4.20304
  11  0.000136986
  12  7.02137e-05
  13  0.000434348
  14  1.16809e-05
  15  21.9492
  16  7.4042e-05
  17  0.00128104
  18  0.00344686
  19  1.10148e-06
  20  14.8617
  21  0.276549
  22  0.174198
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.000e-04  7.021e-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:  8.735e-01  1.742e-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.935e-01  2.765e-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.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/311429/likelihoodResults_440726401_440985601_4FGL_J2229.7-0832_daily_bin777.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) = 4622.82649865
delta logL = -0.000694625328833

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4622.67030771
delta logL = 0.155496319408

Fit tolerance = 1e-08

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

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

 FCN=   4622.670     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      308 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0312        90.166        .12565E-01    .61405E-03
   2  alpha         4.1388        3.7149        .50000        .15147E-04
   3  Normalizat    .94436        .83475E-01    .65427E-01    .98682E-06
   4  Prefactor     .89095        .51259E-01    .44891E-01    .40907E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.03116
  alpha      = 4.1388
  Normalizat = 0.944361
  Prefactor  = 0.890955
 **********
 **   18 **HESSE 
 **********

 FCN=   4622.670     FROM HESSE     STATUS=OK            33 CALLS      341 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0312        3.8686        .11932E-03   -1.5505    
   2  alpha         4.1388        4.4121        .61846E-01    .71487    
   3  Normalizat    .94436        .27446        .28939E-03   -.94918    
   4  Prefactor     .89095        .17585        .19577E-03   -.96458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50015e-10
Minuit parameter uncertainties:
  1  3.86952
  2  3.35779
  3  0.274874
  4  0.175957
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311429': 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) = 4622.67030636
delta logL = 0.155497670358

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.031e+00  3.870e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  4.139e+00  3.358e+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.910e-01  1.760e-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.444e-01  2.749e-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/311429/cmap_HighResolution_440726401_440985601_4FGL_J2229.7-0832_daily_bin777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-05', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-28 12:05:05.193663', job_id='311429', GAL2='0.89', fit_tolerance='1e-08', EG2='0.94', EG='0.99', time_epoch_completed='1632855905.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.55e-01', ts2='0.34', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='777' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:05:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 311429: <4FGL_J2229.7-0832_daily_bin777> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin777> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 11:55:48 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:55:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 11:55:50 2021
Terminated at Tue Sep 28 12:05:05 2021
Results reported at Tue Sep 28 12:05:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin777 337.426 -8.5447 440726401 440985601 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 :                                   541.41 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             350.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   555 sec.
    Turnaround time :                            557 sec.

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

