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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin592
RA = 187.268, Dec = 2.0454
tmin = 392774401, tmax = 393033601
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='706806', job_status='RUN', time_executed='2021-09-05 18:53:30.910689', time_epoch_executed='1630893210.91' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='592'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706806

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706806/ft1_4FGL_J1229.0+0202_daily_bin592.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706806/ft2_4FGL_J1229.0+0202_daily_bin592.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706806/ft1_4FGL_J1229.0+0202_daily_bin592.fits outfile=/scratch/kocevski/706806/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin592.fits ra=187.268 dec=2.0454 rad=12.0 tmin=392774401.0 tmax=393033601.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.21
user 4.86
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/706806/ft2_4FGL_J1229.0+0202_daily_bin592.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/706806/ft2_4FGL_J1229.0+0202_daily_bin592.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/706806/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin592.fits evtable="EVENTS" outfile="/scratch/kocevski/706806/ft1_filtered_4FGL_J1229.0+0202_daily_bin592.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/706806/ft1_filtered_4FGL_J1229.0+0202_daily_bin592.fits" evtable="EVENTS" scfile=/scratch/kocevski/706806/ft2_4FGL_J1229.0+0202_daily_bin592.fits sctable="SC_DATA" outfile=/scratch/kocevski/706806/ltcube_392774401_393033601_4FGL_J1229.0+0202_daily_bin592.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/706806/ft2_4FGL_J1229.0+0202_daily_bin592.fits
.....................!
real 15.43
user 15.06
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706806/ft1_filtered_4FGL_J1229.0+0202_daily_bin592.fits evtable="EVENTS" scfile=/scratch/kocevski/706806/ft2_4FGL_J1229.0+0202_daily_bin592.fits sctable="SC_DATA" expcube=/scratch/kocevski/706806/ltcube_392774401_393033601_4FGL_J1229.0+0202_daily_bin592.fits outfile=/scratch/kocevski/706806/expmap_392774401_393033601_4FGL_J1229.0+0202_daily_bin592.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/706806/ltcube_392774401_393033601_4FGL_J1229.0+0202_daily_bin592.fits
.....................!
real 190.60
user 184.96
sys 4.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 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J1229.0+0202 @ 187.268 2.0454

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/706806/ft1_filtered_4FGL_J1229.0+0202_daily_bin592.fits scfile=/scratch/kocevski/706806/ft2_4FGL_J1229.0+0202_daily_bin592.fits outfile=/scratch/kocevski/706806/cmap_392774401_393033601_4FGL_J1229.0+0202_daily_bin592.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=187.268 yref=2.0454 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706806/ft1_filtered_4FGL_J1229.0+0202_daily_bin592.fits scfile=/scratch/kocevski/706806/ft2_4FGL_J1229.0+0202_daily_bin592.fits outfile=/scratch/kocevski/706806/cmap_HighResolution_392774401_393033601_4FGL_J1229.0+0202_daily_bin592.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=187.268 yref=2.0454 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/706806/ft1_filtered_4FGL_J1229.0+0202_daily_bin592.fits evtable="EVENTS" scfile=/scratch/kocevski/706806/ft2_4FGL_J1229.0+0202_daily_bin592.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/706806/Model_4FGL_J1229.0+0202_daily_bin592.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/706806/ft1_filtered_4FGL_J1229.0+0202_daily_bin592.fits.....................!
real 52.60
user 51.17
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/706806/ft1_filtered_4FGL_J1229.0+0202_daily_bin592.fits', '/scratch/kocevski/706806/ft2_4FGL_J1229.0+0202_daily_bin592.fits', expMap='/scratch/kocevski/706806/expmap_392774401_393033601_4FGL_J1229.0+0202_daily_bin592.fits', expCube='/scratch/kocevski/706806/ltcube_392774401_393033601_4FGL_J1229.0+0202_daily_bin592.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/706806/Model_4FGL_J1229.0+0202_daily_bin592.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1229.0+0202'

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  2.732e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.615e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
337         beta:  9.652e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  3.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/706806/ft1_filtered_4FGL_J1229.0+0202_daily_bin592.fits
Spacecraft file(s): /scratch/kocevski/706806/ft2_4FGL_J1229.0+0202_daily_bin592.fits
Exposure map: /scratch/kocevski/706806/expmap_392774401_393033601_4FGL_J1229.0+0202_daily_bin592.fits
Exposure cube: /scratch/kocevski/706806/ltcube_392774401_393033601_4FGL_J1229.0+0202_daily_bin592.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/706806/Model_4FGL_J1229.0+0202_daily_bin592.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) = 6185.16873533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .83050       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8327       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.0500       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.925       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.6371       1.0000         .10000E-03   10000.    
    13 'norm      '    1.0621       1.0000         .10000E-03   10000.    
    14 'norm      '    7.3522       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.7012       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .95847       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.8620       1.0000         .10000E-03   10000.    
    20 'Prefactor '    104.70       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.769       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.7031       1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.234       1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.353       1.0000         .10000E-03   10000.    
    27 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.8380       1.0000         .10000E-03   10000.    
    29 'norm      '    1.4639       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1269       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0013       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6185.156     FROM MIGRAD    STATUS=CONVERGED    811 CALLS     4384 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.274        .18997E-05** at limit **
   2  Prefactor     .10000E-03    25.379       -.18740E-05** at limit **
   3  Prefactor     .10000E-03    4.4144       -.11822E-07** at limit **
   4  Prefactor     .10000E-03    45.657        .96069E-06** at limit **
   5  Prefactor     .82932        8.5104        .35440E-05   -.14318E-03
   6  Prefactor     3.8318        14.535        .56522E-06   -.11606E-04
   7  Prefactor     7.0459        96.196       -.86434E-06   -.74331E-05
   8  Prefactor     .10000E-03    41.928       -.10716E-05** at limit **
   9  Prefactor     17.927        33.911       -.97469E-06   -.33404E-04
  10  Prefactor     .10000E-03    6.9884        .99802E-08** at limit **
  11  Prefactor     .10000E-03    48.723        .28767E-05** at limit **
  12  Prefactor     7.6371        7.3802       -.27880E-07   -.15249E-04
  13  norm          1.0621        1.2489       -.76728E-08   -.14302E-04
  14  norm          7.3524        5.4138        .47937E-06   -.14585E-03
  15  Prefactor     .10000E-03    39.914       -.21107E-05** at limit **
  16  norm          8.6840        105.99       -.66344E-05   -.28240E-04
  17  Prefactor     .10000E-03    48.408        .23406E-05** at limit **
  18  norm          .95849        .59075        .53056E-07   -.18424E-03
  19  Prefactor     8.8626        8.5982       -.59357E-06    .65852E-04
  20  Prefactor     104.70        45.542       -.26183E-07   -.36818E-04
  21  Prefactor     .10000E-03    3.5944       -.19134E-07** at limit **
  22  norm          .10000E-03    .46794       -.94977E-08** at limit **
  23  Prefactor     24.770        11.049        .33812E-08   -.10381E-04
  24  Prefactor     8.6986        32.194       -.46215E-06   -.13570E-04
  25  Prefactor     19.244        76.007        .34548E-05    .10941E-04
  26  Prefactor     19.355        37.589        .28639E-06    .51323E-05
  27  norm          .10000E-03    12.045       -.13002E-07** at limit **
  28  Prefactor     9.8380        15.904        .24336E-06   -.41853E-05
  29  norm          1.4638        .39118       -.40784E-07    .66733E-05
  30  Prefactor     .10000E-03    75.927       -.31600E-05** at limit **
  31  Normalizat    1.1269        .23606       -.10792E-05   -.30323E-04
  32  Prefactor     1.0014        .17845        .31880E-06   -.93913E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.829321
  Prefactor  = 3.83175
  Prefactor  = 7.04589
  Prefactor  = 0.0001
  Prefactor  = 17.9273
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.63715
  norm       = 1.06212
  norm       = 7.35239
  Prefactor  = 0.0001
  norm       = 8.684
  Prefactor  = 0.000100001
  norm       = 0.958486
  Prefactor  = 8.86256
  Prefactor  = 104.698
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.7696
  Prefactor  = 8.69864
  Prefactor  = 19.2443
  Prefactor  = 19.3551
  norm       = 0.0001
  Prefactor  = 9.838
  norm       = 1.4638
  Prefactor  = 0.000100001
  Normalizat = 1.12686
  Prefactor  = 1.00137
 **********
 **   18 **HESSE 
 **********

 FCN=   6185.156     FROM HESSE     STATUS=OK           661 CALLS     5045 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.4259        .16135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    45.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .82932        9.2597        .45111E-03   -1.5526    
   6  Prefactor     3.8318        14.559        .20615E-03   -1.5316    
   7  Prefactor     7.0459        96.478        .15109E-03   -1.5177    
   8  Prefactor     .10000E-03    42.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.927        34.068        .94599E-04   -1.4861    
  10  Prefactor     .10000E-03    6.9970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    49.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.6371        7.3773        .14511E-03   -1.5155    
  13  norm          1.0621        1.2487        .47479E-04   -1.5502    
  14  norm          7.3524        5.4443        .10939E-03   -1.5166    
  15  Prefactor     .10000E-03    40.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.6840        109.19        .13589E-03   -1.5119    
  17  Prefactor     .10000E-03    48.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .95849        .57737        .42459E-04   -1.5512    
  19  Prefactor     8.8626        8.6261        .67322E-03   -1.5112    
  20  Prefactor     104.70        45.665        .39298E-04   -1.3658    
  21  Prefactor     .10000E-03    3.6049        .14560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .47416        .52489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.770        11.047        .80489E-04   -1.4712    
  24  Prefactor     8.6986        32.206        .13587E-03   -1.5118    
  25  Prefactor     19.244        77.696        .91326E-04   -1.4830    
  26  Prefactor     19.355        37.549        .91043E-04   -1.4828    
  27  norm          .10000E-03    12.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     9.8380        15.924        .12776E-03   -1.5081    
  29  norm          1.4638        .39705        .22042E-04   -1.5466    
  30  Prefactor     .10000E-03    76.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1269        .28114        .29947E-03   -.88894    
  32  Prefactor     1.0014        .21188        .25395E-03   -.92684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87163e-10
Minuit parameter uncertainties:
  1  0.000131555
  2  0.000180952
  3  2.55267e-06
  4  0.000122221
  5  5.54304
  6  14.5724
  7  52.2473
  8  0.000132255
  9  34.1051
  10  1.94699e-07
  11  0.000279042
  12  7.37813
  13  1.24875
  14  5.44468
  15  0.000240589
  16  61.726
  17  0.000312871
  18  0.577376
  19  8.6273
  20  45.6801
  21  4.82426e-07
  22  3.19166e-07
  23  11.0481
  24  32.2704
  25  77.5112
  26  37.5948
  27  5.31859e-07
  28  15.9313
  29  0.397052
  30  0.000478546
  31  0.281514
  32  0.212053
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  9.585e-01  5.774e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.615e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
337         beta:  9.652e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  3.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.001e+00  2.121e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.127e+00  2.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.63
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 6.34e-08
Energy Flux (Fixed Index): 2.50e-05 +/- 1.51e-05

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) = 6184.4704146
delta logL = 0.6858319995

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6184.45863707
delta logL = 0.69760952279

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .79185       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4806       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0360       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6184.459     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      229 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .79186        7.2570        .74920E-02    .65457E-03
   2  alpha         3.4807        3.4179        .45826        .15154E-04
   3  Normalizat    1.0708        .91222E-01    .69139E-01    .13822E-04
   4  Prefactor     1.0358        .78632E-01    .40812E-01    .79145E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.791858
  alpha      = 3.48075
  Normalizat = 1.07079
  Prefactor  = 1.03584
 **********
 **   18 **HESSE 
 **********

 FCN=   6184.459     FROM HESSE     STATUS=OK            31 CALLS      260 TOTAL
                     EDM=   .16E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .79186        .55080        .33622E-04   -1.5530    
   2  alpha         3.4807        .84438        .20000E-02    .40313    
   3  Normalizat    1.0708        .26509        .30590E-03   -.90695    
   4  Prefactor     1.0358        .21058        .25023E-03   -.91544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62899e-15
Minuit parameter uncertainties:
  1  0.550806
  2  0.864612
  3  0.265418
  4  0.210744
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706806': 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) = 6184.45863681
delta logL = 0.697609787426

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  7.919e-01  5.508e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  3.481e+00  8.646e-01  0.000e+00  5.000e+00 ( 1.000e+00)
337         beta:  9.652e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  3.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.036e+00  2.107e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.071e+00  2.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.21
Ra Dec: 187.268 2.045
Photon Index (Free Index): 3.48 +/- 0.86
Photon Flux (Free Index): 1.49e-07 +/- 7.79e-08
Energy Flux (Free Index): 2.50e-05 +/- 1.28e-05

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/706806/cmap_HighResolution_392774401_393033601_4FGL_J1229.0+0202_daily_bin592.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='2.50e-05', photon_flux_error='6.34e-08', dlogl='6.98e-01', energy_flux='2.50e-05', photon_flux2='1.49e-07', job_status='DONE', time_completed='2021-09-05 19:07:17.136165', photon_index_error2='0.86', photon_index2='3.48', ts='4.63', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.28e-05', EG='1.13', time_epoch_completed='1630894037.14', return_code='0', job_id='706806', GAL2='1.04', EG2='1.07', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='7.79e-08', ts2='6.21', photon_index='2.61' WHERE bin_id='592' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:07:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 706806: <4FGL_J1229.0+0202_daily_bin592> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin592> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 18:50:45 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:50:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 18:50:47 2021
Terminated at Sun Sep  5 19:07:17 2021
Results reported at Sun Sep  5 19:07:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin592 187.268 2.0454 392774401 393033601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1229.0+0202 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   824.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            992 sec.

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

