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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1295
RA = 337.426, Dec = -8.5447
tmin = 574992001, tmax = 575251201
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='314311', job_status='RUN', time_executed='2021-09-28 12:09:40.432834', time_epoch_executed='1632856180.43' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1295'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/314311

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/314311/ft1_4FGL_J2229.7-0832_daily_bin1295.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/314311/ft2_4FGL_J2229.7-0832_daily_bin1295.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/314311/ft1_4FGL_J2229.7-0832_daily_bin1295.fits outfile=/scratch/kocevski/314311/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1295.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=574992001.0 tmax=575251201.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.34
user 5.08
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/314311/ft1_filtered_4FGL_J2229.7-0832_daily_bin1295.fits" evtable="EVENTS" scfile=/scratch/kocevski/314311/ft2_4FGL_J2229.7-0832_daily_bin1295.fits sctable="SC_DATA" outfile=/scratch/kocevski/314311/ltcube_574992001_575251201_4FGL_J2229.7-0832_daily_bin1295.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/314311/ft2_4FGL_J2229.7-0832_daily_bin1295.fits
.....................!
real 11.57
user 11.19
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/314311/ft1_filtered_4FGL_J2229.7-0832_daily_bin1295.fits evtable="EVENTS" scfile=/scratch/kocevski/314311/ft2_4FGL_J2229.7-0832_daily_bin1295.fits sctable="SC_DATA" expcube=/scratch/kocevski/314311/ltcube_574992001_575251201_4FGL_J2229.7-0832_daily_bin1295.fits outfile=/scratch/kocevski/314311/expmap_574992001_575251201_4FGL_J2229.7-0832_daily_bin1295.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/314311/ltcube_574992001_575251201_4FGL_J2229.7-0832_daily_bin1295.fits
.....................!
real 190.29
user 185.50
sys 4.43

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/314311/ft1_filtered_4FGL_J2229.7-0832_daily_bin1295.fits scfile=/scratch/kocevski/314311/ft2_4FGL_J2229.7-0832_daily_bin1295.fits outfile=/scratch/kocevski/314311/cmap_574992001_575251201_4FGL_J2229.7-0832_daily_bin1295.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/314311/ft1_filtered_4FGL_J2229.7-0832_daily_bin1295.fits scfile=/scratch/kocevski/314311/ft2_4FGL_J2229.7-0832_daily_bin1295.fits outfile=/scratch/kocevski/314311/cmap_HighResolution_574992001_575251201_4FGL_J2229.7-0832_daily_bin1295.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/314311/ft1_filtered_4FGL_J2229.7-0832_daily_bin1295.fits evtable="EVENTS" scfile=/scratch/kocevski/314311/ft2_4FGL_J2229.7-0832_daily_bin1295.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/314311/Model_4FGL_J2229.7-0832_daily_bin1295.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/314311/ft1_filtered_4FGL_J2229.7-0832_daily_bin1295.fits.....................!
real 66.96
user 65.52
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    7.5650       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.142       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.519       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9487       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.786       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .64562       1.0000         .10000E-03   10000.    
     9 'Prefactor '    125.45       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5846       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.722       1.0000         .10000E-03   10000.    
    12 'norm      '    .23024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.4138       1.0000         .10000E-03   10000.    
    15 'Prefactor '    69.892       1.0000         .10000E-03   10000.    
    16 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4521       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.881       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.270       1.0000         .10000E-03   10000.    
    20 'norm      '    20.334       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96459       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86160       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=   7309.444     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2416 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6031        .38134E-07** at limit **
   2  Prefactor     7.5639        5.8019        .76793E-06   -.42901E-03
   3  Prefactor     10.141        13.139       -.12545E-05    .67621E-04
   4  Prefactor     20.517        15.831       -.60728E-07   -.52960E-04
   5  Prefactor     8.9505        16.755        .21621E-07    .33524E-04
   6  Prefactor     .10000E-03    10.170       -.10808E-06** at limit **
   7  Prefactor     42.781        15.349        .57803E-06   -.11633E-04
   8  Prefactor     .60290        8.1954       -.23187E-05    .49234E-04
   9  Prefactor     125.43        88.327       -.19118E-04    .31144E-03
  10  Prefactor     4.5863        3.6941        .62630E-08    .18688E-03
  11  Prefactor     11.719        26.213       -.43428E-05    .72641E-04
  12  norm          .10000E-03    1.7191        .55820E-06** at limit **
  13  Prefactor     .10000E-03    47.932        .35420E-06** at limit **
  14  norm          2.4135        .92490       -.11122E-07    .70597E-03
  15  Prefactor     69.914        23.243        .91418E-05    .10228E-02
  16  norm          .10000E-03    .83765       -.11631E-06** at limit **
  17  Prefactor     4.4350        85.806       -.81854E-04    .80086E-04
  18  Prefactor     15.880        10.806        .25254E-05    .14268E-03
  19  Prefactor     12.267        9.6688        .12530E-05    .55700E-05
  20  norm          20.329        14.712       -.35909E-06    .44786E-05
  21  Normalizat    .96485        .20655        .41838E-05    .29622E-03
  22  Prefactor     .86150        .12972       -.39237E-06    .61832E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 7.5639
  Prefactor  = 10.1412
  Prefactor  = 20.5174
  Prefactor  = 8.95046
  Prefactor  = 0.0001
  Prefactor  = 42.7809
  Prefactor  = 0.6029
  Prefactor  = 125.43
  Prefactor  = 4.58634
  Prefactor  = 11.7191
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.4135
  Prefactor  = 69.9137
  norm       = 0.0001
  Prefactor  = 4.43505
  Prefactor  = 15.8799
  Prefactor  = 12.2674
  norm       = 20.3295
  Normalizat = 0.964853
  Prefactor  = 0.861498
 **********
 **   18 **HESSE 
 **********

 FCN=   7309.444     FROM HESSE     STATUS=OK           350 CALLS     2766 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6075        .13471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.5639        5.7942        .14581E-03   -1.5158    
   3  Prefactor     10.141        13.128        .12582E-03   -1.5071    
   4  Prefactor     20.517        15.828        .88421E-04   -1.4802    
   5  Prefactor     8.9505        16.708        .13399E-03   -1.5110    
   6  Prefactor     .10000E-03    10.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     42.781        15.402        .61288E-04   -1.4399    
   8  Prefactor     .60290        37.178        .43933E-02   -1.5553    
   9  Prefactor     125.43        87.415        .17969E-03   -1.3463    
  10  Prefactor     4.5863        3.6677        .13660E-03   -1.5280    
  11  Prefactor     11.719        26.201        .11701E-03   -1.5023    
  12  norm          .10000E-03    5.5764        .21547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    48.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.4135        .92464        .48483E-04   -1.5397    
  15  Prefactor     69.914        21.768        .48015E-04   -1.4034    
  16  norm          .10000E-03    .97245        .12828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.4350        85.843        .19084E-03   -1.5287    
  18  Prefactor     15.880        10.805        .10050E-03   -1.4911    
  19  Prefactor     12.267        9.6669        .11436E-03   -1.5007    
  20  norm          20.329        14.744        .88822E-04   -1.4806    
  21  Normalizat    .96485        .24329        .30747E-03   -.94217    
  22  Prefactor     .86150        .15383        .21538E-03   -.97500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54964e-09
Minuit parameter uncertainties:
  1  3.09784e-06
  2  5.79462
  3  13.1315
  4  15.8316
  5  16.7167
  6  4.56031e-06
  7  15.4035
  8  9.47417
  9  87.5047
  10  3.66792
  11  26.2267
  12  0.000124986
  13  5.10511e-05
  14  0.924641
  15  21.7706
  16  1.37473e-05
  17  39.0883
  18  10.8067
  19  9.66814
  20  14.7466
  21  0.243571
  22  0.153909
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.000e-04  1.250e-04  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.615e-01  1.539e-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.649e-01  2.436e-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.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/314311/likelihoodResults_574992001_575251201_4FGL_J2229.7-0832_daily_bin1295.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) = 7309.44503713
delta logL = -0.000852673406371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7309.44419021
delta logL = -5.75566991756e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11344E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4519       1.0000          .0000       5.0000    
     3 'Normalizat'    .96421       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86195       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=   7309.444     FROM MIGRAD    STATUS=FAILED        96 CALLS      257 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10058E-03    549.01        .21628E-02** at limit **
   2  alpha         2.3620        3.7244        .16465        .33269E-05
   3  Normalizat    .96485        .53434E-01    .30747E-03   -.42336E-04
   4  Prefactor     .86150        .35801E-01    .21538E-03   -.52467E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7309.444     FROM SIMPLEX   STATUS=UNCHANGED    144 CALLS      401 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10058E-03    549.01        .37893E-03** at limit **
   2  alpha         2.3620        3.7244        .12482E-04    .33269E-05
   3  Normalizat    .96485        .53434E-01    .30066E-06   -.42336E-04
   4  Prefactor     .86150        .35801E-01    .10959E-06   -.52467E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7309.444     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      433 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.0124        .43257E-03** at limit **
   2  alpha         2.3395        3.5941        .65858E-02    .75955E-08
   3  Normalizat    .96485        .22449        .12299E-04    .99278E-04
   4  Prefactor     .86150        .15046        .86153E-05    .14832E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.33949
  Normalizat = 0.964855
  Prefactor  = 0.861496
 **********
 **   18 **HESSE 
 **********

 FCN=   7309.444     FROM HESSE     STATUS=OK            23 CALLS      456 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.0096        .86514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3395        3.5914        .13172E-02   -.64249E-01
   3  Normalizat    .96485        .22500        .24598E-05   -.94217    
   4  Prefactor     .86150        .15079        .17231E-05   -.97500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69292e-11
Minuit parameter uncertainties:
  1  1.59386e-05
  2  130.051
  3  0.225223
  4  0.150865
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/314311': 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) = 7309.44418394
delta logL = 5.14274688612e-07

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.000e-04  1.594e-05  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  2.339e+00  1.301e+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:  8.615e-01  1.509e-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.649e-01  2.252e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/314311/cmap_HighResolution_574992001_575251201_4FGL_J2229.7-0832_daily_bin1295.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.92e-05', job_status='DONE', photon_flux_upper_limit='7.26e-08', time_completed='2021-09-28 12:21:07.933134', job_id='314311', GAL2='0.86', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1632856867.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='5.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1295' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:21:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 314311: <4FGL_J2229.7-0832_daily_bin1295> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin1295> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 12:05:36 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 12:05:37 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:05:37 2021
Terminated at Tue Sep 28 12:21:09 2021
Results reported at Tue Sep 28 12:21:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1295 337.426 -8.5447 574992001 575251201 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 :                                   684.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

