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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin658
RA = 187.268, Dec = 2.0454
tmin = 409881601, tmax = 410140801
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='708255', job_status='RUN', time_executed='2021-09-05 18:58:02.444505', time_epoch_executed='1630893482.44' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708255

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708255/ft1_4FGL_J1229.0+0202_daily_bin658.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708255/ft2_4FGL_J1229.0+0202_daily_bin658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708255/ft1_4FGL_J1229.0+0202_daily_bin658.fits outfile=/scratch/kocevski/708255/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin658.fits ra=187.268 dec=2.0454 rad=12.0 tmin=409881601.0 tmax=410140801.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 6.24
user 5.99
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/708255/ft2_4FGL_J1229.0+0202_daily_bin658.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/708255/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin658.fits evtable="EVENTS" outfile="/scratch/kocevski/708255/ft1_filtered_4FGL_J1229.0+0202_daily_bin658.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708255/ft1_filtered_4FGL_J1229.0+0202_daily_bin658.fits" evtable="EVENTS" scfile=/scratch/kocevski/708255/ft2_4FGL_J1229.0+0202_daily_bin658.fits sctable="SC_DATA" outfile=/scratch/kocevski/708255/ltcube_409881601_410140801_4FGL_J1229.0+0202_daily_bin658.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/708255/ft2_4FGL_J1229.0+0202_daily_bin658.fits
.....................!
real 12.57
user 12.23
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708255/ft1_filtered_4FGL_J1229.0+0202_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/708255/ft2_4FGL_J1229.0+0202_daily_bin658.fits sctable="SC_DATA" expcube=/scratch/kocevski/708255/ltcube_409881601_410140801_4FGL_J1229.0+0202_daily_bin658.fits outfile=/scratch/kocevski/708255/expmap_409881601_410140801_4FGL_J1229.0+0202_daily_bin658.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/708255/ltcube_409881601_410140801_4FGL_J1229.0+0202_daily_bin658.fits
.....................!
real 191.83
user 186.84
sys 4.37

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/708255/ft1_filtered_4FGL_J1229.0+0202_daily_bin658.fits scfile=/scratch/kocevski/708255/ft2_4FGL_J1229.0+0202_daily_bin658.fits outfile=/scratch/kocevski/708255/cmap_409881601_410140801_4FGL_J1229.0+0202_daily_bin658.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.62
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708255/ft1_filtered_4FGL_J1229.0+0202_daily_bin658.fits scfile=/scratch/kocevski/708255/ft2_4FGL_J1229.0+0202_daily_bin658.fits outfile=/scratch/kocevski/708255/cmap_HighResolution_409881601_410140801_4FGL_J1229.0+0202_daily_bin658.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.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/708255/ft1_filtered_4FGL_J1229.0+0202_daily_bin658.fits', '/scratch/kocevski/708255/ft2_4FGL_J1229.0+0202_daily_bin658.fits', expMap='/scratch/kocevski/708255/expmap_409881601_410140801_4FGL_J1229.0+0202_daily_bin658.fits', expCube='/scratch/kocevski/708255/ltcube_409881601_410140801_4FGL_J1229.0+0202_daily_bin658.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/708255/Model_4FGL_J1229.0+0202_daily_bin658.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/708255/ft1_filtered_4FGL_J1229.0+0202_daily_bin658.fits
Spacecraft file(s): /scratch/kocevski/708255/ft2_4FGL_J1229.0+0202_daily_bin658.fits
Exposure map: /scratch/kocevski/708255/expmap_409881601_410140801_4FGL_J1229.0+0202_daily_bin658.fits
Exposure cube: /scratch/kocevski/708255/ltcube_409881601_410140801_4FGL_J1229.0+0202_daily_bin658.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/708255/Model_4FGL_J1229.0+0202_daily_bin658.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) = 5965.56985377

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7193       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17182       1.0000         .10000E-03   10000.    
     7 'Prefactor '    111.95       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8462       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.200       1.0000         .10000E-03   10000.    
    13 'norm      '    4.0870       1.0000         .10000E-03   10000.    
    14 'norm      '    .73016       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.1421       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1242       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.3730       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    60.245       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    124.29       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    7.0649       1.0000         .10000E-03   10000.    
    30 'Prefactor '    35.491       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0697       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1553       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=   5965.563     FROM MIGRAD    STATUS=CONVERGED    892 CALLS     4378 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.248        .68652E-07** at limit **
   2  Prefactor     .10000E-03    72.116       -.27309E-05** at limit **
   3  Prefactor     2.7124        12.013       -.11660E-05   -.13231E-03
   4  Prefactor     .10000E-03    38.785        .32563E-05** at limit **
   5  Prefactor     .10000E-03    7.7797        .32032E-07** at limit **
   6  Prefactor     .18578E-01    19.004        .15873E-06    .27041E-04
   7  Prefactor     111.90        111.00       -.36107E-05   -.89904E-04
   8  Prefactor     .10000E-03    55.383       -.83591E-06** at limit **
   9  Prefactor     .10000E-03    28.608        .17725E-06** at limit **
  10  Prefactor     .10000E-03    113.76       -.26008E-05** at limit **
  11  Prefactor     3.8389        35.696       -.48148E-06   -.14091E-04
  12  Prefactor     10.199        11.470       -.30614E-06   -.30116E-04
  13  norm          4.0873        3.3491       -.50869E-07   -.12527E-04
  14  norm          .72889        3.8535        .17655E-05   -.13303E-03
  15  Prefactor     .10000E-03    12.476        .71235E-08** at limit **
  16  norm          .10000E-03    37.049       -.29624E-05** at limit **
  17  Prefactor     .10000E-03    241.31        .20465E-05** at limit **
  18  norm          3.1415        1.0061       -.12033E-06   -.43519E-03
  19  Prefactor     .10000E-03    9.2357        .22955E-06** at limit **
  20  Prefactor     4.0791        74.534        .33945E-05    .17761E-04
  21  Prefactor     5.3733        15.222        .54697E-05   -.19366E-03
  22  norm          .10000E-03    1.4220        .76530E-07** at limit **
  23  Prefactor     .10000E-03    12.489       -.17864E-06** at limit **
  24  Prefactor     .10000E-03    32.445        .76086E-07** at limit **
  25  Prefactor     60.245        117.41       -.65354E-06   -.54109E-05
  26  Prefactor     .10000E-03    78.205        .49536E-05** at limit **
  27  norm          124.29        52.384       -.35467E-06   -.40037E-04
  28  Prefactor     .10000E-03    11.525        .11701E-06** at limit **
  29  norm          7.0641        .80990        .16645E-07   -.30406E-03
  30  Prefactor     35.490        103.75       -.12672E-05   -.15412E-04
  31  Normalizat    1.0707        .27103       -.77035E-07   -.69176E-04
  32  Prefactor     1.1548        .21344       -.10196E-05   -.15354E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.71239
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0185778
  Prefactor  = 111.9
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.83885
  Prefactor  = 10.1994
  norm       = 4.08735
  norm       = 0.728894
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000100001
  norm       = 3.14151
  Prefactor  = 0.0001
  Prefactor  = 4.0791
  Prefactor  = 5.37332
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.245
  Prefactor  = 0.000100004
  norm       = 124.291
  Prefactor  = 0.0001
  norm       = 7.06406
  Prefactor  = 35.4903
  Normalizat = 1.07069
  Prefactor  = 1.15476
 **********
 **   18 **HESSE 
 **********

 FCN=   5965.563     FROM HESSE     STATUS=OK           655 CALLS     5033 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    72.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7124        12.259        .24697E-03   -1.5379    
   4  Prefactor     .10000E-03    39.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.8264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .18578E-01    26.378        .92646E-01   -1.5681    
   7  Prefactor     111.90        112.30        .19009E-03   -1.3588    
   8  Prefactor     .10000E-03    55.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    116.78        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.8389        35.265        .20578E-03   -1.5316    
  12  Prefactor     10.199        11.475        .12546E-03   -1.5069    
  13  norm          4.0873        3.3483        .12116E-03   -1.5304    
  14  norm          .72889        3.8834        .28151E-03   -1.5537    
  15  Prefactor     .10000E-03    12.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    37.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    241.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.1415        1.0029        .39913E-04   -1.5353    
  19  Prefactor     .10000E-03    9.2779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.0791        74.579        .19849E-03   -1.5304    
  21  Prefactor     5.3733        15.674        .86686E-03   -1.5244    
  22  norm          .10000E-03    1.4809        .17942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    32.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     60.245        119.64        .51692E-04   -1.4154    
  26  Prefactor     .10000E-03    79.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          124.29        52.383        .18052E-03   -1.3474    
  28  Prefactor     .10000E-03    11.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          7.0641        .82848        .19367E-04   -1.5176    
  30  Prefactor     35.490        104.21        .67269E-04   -1.4516    
  31  Normalizat    1.0707        .32573        .37286E-03   -.90699    
  32  Prefactor     1.1548        .25647        .29046E-03   -.87735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.1109e-10
Minuit parameter uncertainties:
  1  6.58289e-06
  2  0.000561512
  3  11.5364
  4  0.000542468
  5  2.62921e-06
  6  1.39692
  7  112.519
  8  0.000157684
  9  3.12997e-05
  10  0.000511596
  11  23.2882
  12  11.477
  13  3.34846
  14  3.36499
  15  1.16076e-07
  16  0.000493685
  17  0.000788736
  18  1.00295
  19  3.11809e-05
  20  34.9337
  21  15.6855
  22  1.26374e-06
  23  2.05059e-05
  24  9.03368e-06
  25  120.122
  26  0.00108473
  27  52.4023
  28  3.98458e-06
  29  0.828485
  30  104.75
  31  0.326345
  32  0.25675
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  3.142e+00  1.003e+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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.155e+00  2.568e-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  3.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.65
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 3.45e-07 +/- 1.10e-07
Energy Flux (Fixed Index): 8.21e-05 +/- 2.62e-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) = 5965.54942139
delta logL = 0.0133584383493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5965.5472257
delta logL = 0.0155541347203

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0996       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6938       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0554       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1659       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=   5965.547     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      202 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0996        2.3052        .57584E-02    .39108E-02
   2  alpha         2.6938        .94267        .28364       -.23520E-04
   3  Normalizat    1.0554        .26779        .84721E-01    .34011E-04
   4  Prefactor     1.1659        .22315        .65409E-01   -.14150E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.09964
  alpha      = 2.69382
  Normalizat = 1.05538
  Prefactor  = 1.16591
 **********
 **   18 **HESSE 
 **********

 FCN=   5965.547     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0996        1.0131        .39490E-04   -1.5356    
   2  alpha         2.6938        .45569        .11811E-01    .77607E-01
   3  Normalizat    1.0554        .32517        .37514E-03   -.91198    
   4  Prefactor     1.1659        .25839        .28931E-03   -.87387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49439e-10
Minuit parameter uncertainties:
  1  1.01308
  2  0.458265
  3  0.325791
  4  0.25867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708255': 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) = 5965.54722569
delta logL = 0.0155541378899

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  3.100e+00  1.013e+00  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.694e+00  4.583e-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.166e+00  2.587e-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.055e+00  3.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.08
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.69 +/- 0.46
Photon Flux (Free Index): 3.55e-07 +/- 1.21e-07
Energy Flux (Free Index): 8.05e-05 +/- 2.67e-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/708255/cmap_HighResolution_409881601_410140801_4FGL_J1229.0+0202_daily_bin658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.45e-07', energy_flux2='8.05e-05', photon_flux_error='1.10e-07', dlogl='1.56e-02', energy_flux='8.21e-05', photon_flux2='3.55e-07', job_status='DONE', time_completed='2021-09-05 19:11:45.483628', photon_index_error2='0.46', photon_index2='2.69', ts='20.65', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='2.67e-05', EG='1.07', time_epoch_completed='1630894305.48', return_code='0', job_id='708255', GAL2='1.17', EG2='1.06', return_code2='0', energy_flux_error='2.62e-05', photon_flux_error2='1.21e-07', ts2='20.08', photon_index='2.61' WHERE bin_id='658' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:11:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 708255: <4FGL_J1229.0+0202_daily_bin658> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin658> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 18:55:45 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:55:46 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:55:46 2021
Terminated at Sun Sep  5 19:11:46 2021
Results reported at Sun Sep  5 19:11:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin658 187.268 2.0454 409881601 410140801 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 :                                   819.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            961 sec.

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

