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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1481
RA = 337.426, Dec = -8.5447
tmin = 623203201, tmax = 623462401
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='314622', job_status='RUN', time_executed='2021-09-28 12:09:52.445370', time_epoch_executed='1632856192.45' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/314622

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/314622/ft1_4FGL_J2229.7-0832_daily_bin1481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/314622/ft2_4FGL_J2229.7-0832_daily_bin1481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/314622/ft1_4FGL_J2229.7-0832_daily_bin1481.fits outfile=/scratch/kocevski/314622/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1481.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=623203201.0 tmax=623462401.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 2.91
user 2.70
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/314622/ft1_filtered_4FGL_J2229.7-0832_daily_bin1481.fits" evtable="EVENTS" scfile=/scratch/kocevski/314622/ft2_4FGL_J2229.7-0832_daily_bin1481.fits sctable="SC_DATA" outfile=/scratch/kocevski/314622/ltcube_623203201_623462401_4FGL_J2229.7-0832_daily_bin1481.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/314622/ft2_4FGL_J2229.7-0832_daily_bin1481.fits
.....................!
real 12.54
user 12.18
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/314622/ft1_filtered_4FGL_J2229.7-0832_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/314622/ft2_4FGL_J2229.7-0832_daily_bin1481.fits sctable="SC_DATA" expcube=/scratch/kocevski/314622/ltcube_623203201_623462401_4FGL_J2229.7-0832_daily_bin1481.fits outfile=/scratch/kocevski/314622/expmap_623203201_623462401_4FGL_J2229.7-0832_daily_bin1481.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/314622/ltcube_623203201_623462401_4FGL_J2229.7-0832_daily_bin1481.fits
.....................!
real 190.24
user 185.68
sys 4.17

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/314622/ft1_filtered_4FGL_J2229.7-0832_daily_bin1481.fits scfile=/scratch/kocevski/314622/ft2_4FGL_J2229.7-0832_daily_bin1481.fits outfile=/scratch/kocevski/314622/cmap_623203201_623462401_4FGL_J2229.7-0832_daily_bin1481.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/314622/ft1_filtered_4FGL_J2229.7-0832_daily_bin1481.fits scfile=/scratch/kocevski/314622/ft2_4FGL_J2229.7-0832_daily_bin1481.fits outfile=/scratch/kocevski/314622/cmap_HighResolution_623203201_623462401_4FGL_J2229.7-0832_daily_bin1481.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.496       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.060       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .46753E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.914       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.457       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.8648       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.4401       1.0000         .10000E-03   10000.    
    15 'Prefactor '    91.488       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    123.28       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13912E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2193       1.0000         .10000E-03   10000.    
    20 'norm      '    20.033       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .72340       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91855       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=   2792.257     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2732 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.495        9.8181       -.61934E-08    .18921E-05
   2  Prefactor     23.055        13.537       -.61800E-07    .17891E-04
   3  Prefactor     .10000E-03    14.491        .27084E-07** at limit **
   4  Prefactor     .10000E-03    84.571       -.22692E-06** at limit **
   5  Prefactor     43.902        40.203        .17486E-06    .66292E-05
   6  Prefactor     .10000E-03    20.949       -.56001E-07** at limit **
   7  Prefactor     21.452        18.776       -.53476E-07    .45695E-05
   8  Prefactor     .10000E-03    11.560       -.56446E-08** at limit **
   9  Prefactor     .10000E-03    62.816       -.10555E-05** at limit **
  10  Prefactor     .10000E-03    4.5516        .57780E-08** at limit **
  11  Prefactor     6.8434        305.24        .16693E-05   -.23986E-06
  12  norm          .10000E-03    2.7711        .64245E-08** at limit **
  13  Prefactor     .10000E-03    82.594        .77728E-06** at limit **
  14  norm          2.4403        1.9282       -.11505E-07   -.14162E-03
  15  Prefactor     91.446        52.373       -.27224E-06   -.22741E-03
  16  norm          .10000E-03    2.4173        .15674E-05** at limit **
  17  Prefactor     123.48        114.05       -.37410E-05   -.11930E-03
  18  Prefactor     .10000E-03    38.063        .33596E-06** at limit **
  19  Prefactor     1.2193        36.351        .12781E-05   -.55553E-05
  20  norm          20.031        51.332        .92807E-07   -.62485E-06
  21  Normalizat    .72321        .36823        .69232E-06   -.23230E-04
  22  Prefactor     .91864        .21326       -.14775E-06   -.10921E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 13.4951
  Prefactor  = 23.0549
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.9018
  Prefactor  = 0.0001
  Prefactor  = 21.4518
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.84344
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.4403
  Prefactor  = 91.4463
  norm       = 0.0001
  Prefactor  = 123.484
  Prefactor  = 0.0001
  Prefactor  = 1.2193
  norm       = 20.0308
  Normalizat = 0.723212
  Prefactor  = 0.918642
 **********
 **   18 **HESSE 
 **********

 FCN=   2792.257     FROM HESSE     STATUS=OK           344 CALLS     3076 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.495        9.8188        .10903E-03   -1.4973    
   2  Prefactor     23.055        13.582        .83413E-04   -1.4747    
   3  Prefactor     .10000E-03    14.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    87.873        .42381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     43.902        40.244        .60498E-04   -1.4382    
   6  Prefactor     .10000E-03    20.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.452        18.821        .86469E-04   -1.4781    
   8  Prefactor     .10000E-03    11.651        .17547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    62.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.5890        .11009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.8434        303.98        .15313E-03   -1.5185    
  12  norm          .10000E-03    2.7880        .85888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    82.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.4403        1.9095        .57648E-04   -1.5396    
  15  Prefactor     91.446        53.787        .42013E-04   -1.3792    
  16  norm          .10000E-03    3.4858        .14919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     123.48        114.67        .18125E-03   -1.3481    
  18  Prefactor     .10000E-03    38.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2193        37.092        .20431E-02   -1.5487    
  20  norm          20.031        51.341        .89486E-04   -1.4813    
  21  Normalizat    .72321        .42394        .36939E-03   -1.0298    
  22  Prefactor     .91864        .24863        .21051E-03   -.95493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05788e-09
Minuit parameter uncertainties:
  1  9.81996
  2  13.5839
  3  1.24823e-05
  4  0.00016217
  5  40.2691
  6  1.77715e-05
  7  18.8262
  8  1.22775e-05
  9  8.00143e-05
  10  4.04974e-06
  11  91.7202
  12  2.19387e-06
  13  4.29673e-05
  14  1.90956
  15  53.8155
  16  8.32299e-05
  17  114.873
  18  0.000243208
  19  13.4587
  20  51.4549
  21  0.42588
  22  0.248937
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.000e-04  2.194e-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:  9.186e-01  2.489e-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.232e-01  4.259e-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.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/314622/likelihoodResults_623203201_623462401_4FGL_J2229.7-0832_daily_bin1481.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) = 2792.25874854
delta logL = -0.00168910933644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2792.25705948
delta logL = -5.60648913961e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4921       1.0000          .0000       5.0000    
     3 'Normalizat'    .72319       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91868       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=   2792.112     FROM MIGRAD    STATUS=CONVERGED    131 CALLS      278 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72101        1.5797        .87154E-02    .49052E-03
   2  alpha         5.0000        3.7786        .16461    ** at limit **
   3  Normalizat    .66088        .39902        .36941E-02    .51877E-04
   4  Prefactor     .94359        .24939        .21051E-03   -.24573E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.72101
  alpha      = 5
  Normalizat = 0.660884
  Prefactor  = 0.943586
 **********
 **   18 **HESSE 
 **********

 FCN=   2792.112     FROM HESSE     STATUS=OK            27 CALLS      305 TOTAL
                     EDM=   .15E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .72101        1.5041        .88306E-04   -1.5538    
   2  alpha         5.0000        3.7366        .32922E-01    58.119    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .66088        .39594        .73882E-03   -1.0546    
   4  Prefactor     .94359        .24889        .84204E-05   -.94634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53491e-14
Minuit parameter uncertainties:
  1  1.50417
  2  2.63279e-08
  3  0.397661
  4  0.249195
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/314622': 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) = 2792.11209632
delta logL = 0.144963110907

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  7.210e-01  1.504e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  5.000e+00  2.633e-08  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:  9.436e-01  2.492e-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:  6.609e-01  3.977e-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/314622/cmap_HighResolution_623203201_623462401_4FGL_J2229.7-0832_daily_bin1481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.85e-05', job_status='DONE', photon_flux_upper_limit='1.46e-07', time_completed='2021-09-28 12:17:16.138577', job_id='314622', GAL2='0.94', fit_tolerance='1e-08', EG2='0.66', EG='0.72', time_epoch_completed='1632856636.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.45e-01', ts2='0.31', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1481' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:17:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 314622: <4FGL_J2229.7-0832_daily_bin1481> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin1481> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 12:06:03 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 12:06:04 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:04 2021
Terminated at Tue Sep 28 12:17:16 2021
Results reported at Tue Sep 28 12:17:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1481 337.426 -8.5447 623203201 623462401 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 :                                   442.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   672 sec.
    Turnaround time :                            673 sec.

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

