/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 103 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 = 7667
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1229.0+0202_daily_bin284
RA = 187.268, Dec = 2.0454
tmin = 312940801, tmax = 313200001
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='705321', job_status='RUN', time_executed='2021-09-05 18:48:08.467459', time_epoch_executed='1630892888.47' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705321

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705321/ft1_4FGL_J1229.0+0202_daily_bin284.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705321/ft2_4FGL_J1229.0+0202_daily_bin284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705321/ft1_4FGL_J1229.0+0202_daily_bin284.fits outfile=/scratch/kocevski/705321/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin284.fits ra=187.268 dec=2.0454 rad=12.0 tmin=312940801.0 tmax=313200001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.47
user 3.24
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/705321/ft1_filtered_4FGL_J1229.0+0202_daily_bin284.fits" evtable="EVENTS" scfile=/scratch/kocevski/705321/ft2_4FGL_J1229.0+0202_daily_bin284.fits sctable="SC_DATA" outfile=/scratch/kocevski/705321/ltcube_312940801_313200001_4FGL_J1229.0+0202_daily_bin284.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/705321/ft2_4FGL_J1229.0+0202_daily_bin284.fits
.....................!
real 13.89
user 13.49
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705321/ft1_filtered_4FGL_J1229.0+0202_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/705321/ft2_4FGL_J1229.0+0202_daily_bin284.fits sctable="SC_DATA" expcube=/scratch/kocevski/705321/ltcube_312940801_313200001_4FGL_J1229.0+0202_daily_bin284.fits outfile=/scratch/kocevski/705321/expmap_312940801_313200001_4FGL_J1229.0+0202_daily_bin284.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/705321/ltcube_312940801_313200001_4FGL_J1229.0+0202_daily_bin284.fits
.....................!
real 193.41
user 185.34
sys 4.91

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/705321/ft1_filtered_4FGL_J1229.0+0202_daily_bin284.fits scfile=/scratch/kocevski/705321/ft2_4FGL_J1229.0+0202_daily_bin284.fits outfile=/scratch/kocevski/705321/cmap_312940801_313200001_4FGL_J1229.0+0202_daily_bin284.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.53
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/705321/ft1_filtered_4FGL_J1229.0+0202_daily_bin284.fits scfile=/scratch/kocevski/705321/ft2_4FGL_J1229.0+0202_daily_bin284.fits outfile=/scratch/kocevski/705321/cmap_HighResolution_312940801_313200001_4FGL_J1229.0+0202_daily_bin284.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1596       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.367       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.696       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7120       1.0000         .10000E-03   10000.    
    13 'norm      '    1.3447       1.0000         .10000E-03   10000.    
    14 'norm      '    4.7134       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.3127       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.242       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.9332       1.0000         .10000E-03   10000.    
    22 'norm      '    2.3534       1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.453       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    53.788       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.7514       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.5453       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .69926       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=   6038.472     FROM MIGRAD    STATUS=CONVERGED    839 CALLS     4291 TOTAL
                     EDM=   .77E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.934        .51320E-06** at limit **
   2  Prefactor     .10000E-03    156.97       -.95673E-05** at limit **
   3  Prefactor     2.1487        17.187        .79220E-05   -.13807E-04
   4  Prefactor     .10000E-03    33.883       -.24043E-05** at limit **
   5  Prefactor     .10000E-03    4.6730       -.12123E-07** at limit **
   6  Prefactor     13.368        19.582        .49186E-06    .14985E-04
   7  Prefactor     .10000E-03    240.31        .17992E-04** at limit **
   8  Prefactor     .10000E-03    14.534       -.78193E-06** at limit **
   9  Prefactor     .10000E-03    18.656       -.12766E-05** at limit **
  10  Prefactor     14.696        24.241        .24685E-06   -.76303E-08
  11  Prefactor     .10000E-03    22.858        .22766E-05** at limit **
  12  Prefactor     2.7119        5.2550        .20309E-06    .73672E-05
  13  norm          1.3445        1.6963        .10681E-06   -.15851E-06
  14  norm          4.7147        4.5029        .10698E-06   -.33723E-04
  15  Prefactor     .10000E-03    27.313       -.13587E-07** at limit **
  16  norm          .10000E-03    28.496       -.71706E-06** at limit **
  17  Prefactor     .10000E-03    81.789       -.35605E-05** at limit **
  18  norm          1.3128        .64491        .17565E-07   -.34102E-04
  19  Prefactor     .10000E-03    3.3430       -.84695E-08** at limit **
  20  Prefactor     23.243        25.202        .15058E-06   -.39939E-05
  21  Prefactor     9.9339        10.071        .54836E-07   -.47076E-05
  22  norm          2.3535        1.5702        .32242E-07   -.14260E-04
  23  Prefactor     19.453        12.859        .21556E-06   -.19527E-04
  24  Prefactor     .10000E-03    15.118        .66168E-06** at limit **
  25  Prefactor     .10000E-03    66.909        .29488E-05** at limit **
  26  Prefactor     .10000E-03    19.601       -.27400E-06** at limit **
  27  norm          53.788        34.538       -.15880E-07   -.74651E-05
  28  Prefactor     .10000E-03    6.7274       -.20285E-07** at limit **
  29  norm          1.7514        .38440        .29894E-08   -.52893E-03
  30  Prefactor     .10000E-03    44.335        .22701E-05** at limit **
  31  Normalizat    1.5452        .23501       -.12052E-05   -.12712E-04
  32  Prefactor     .69929        .17184        .21554E-06   -.47597E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.1487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.368
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.6956
  Prefactor  = 0.0001
  Prefactor  = 2.71192
  norm       = 1.34448
  norm       = 4.71468
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.31275
  Prefactor  = 0.0001
  Prefactor  = 23.2428
  Prefactor  = 9.93392
  norm       = 2.3535
  Prefactor  = 19.453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 53.7883
  Prefactor  = 0.0001
  norm       = 1.75142
  Prefactor  = 0.0001
  Normalizat = 1.54525
  Prefactor  = 0.69929
 **********
 **   18 **HESSE 
 **********

 FCN=   6038.472     FROM HESSE     STATUS=OK           653 CALLS     4944 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    157.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.1487        17.209        .14016E-02   -1.5415    
   4  Prefactor     .10000E-03    33.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.6884        .16402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.368        19.664        .10956E-03   -1.4977    
   7  Prefactor     .10000E-03    240.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.696        24.230        .10448E-03   -1.4941    
  11  Prefactor     .10000E-03    22.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.7119        5.2263        .23658E-03   -1.5379    
  13  norm          1.3445        1.6789        .54077E-03   -1.5476    
  14  norm          4.7147        4.4984        .14487E-03   -1.5274    
  15  Prefactor     .10000E-03    27.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    28.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    81.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.3128        .63582        .39655E-04   -1.5479    
  19  Prefactor     .10000E-03    3.3446        .13875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.243        25.248        .83086E-04   -1.4743    
  21  Prefactor     9.9339        10.064        .12714E-03   -1.5077    
  22  norm          2.3535        1.5676        .75836E-04   -1.5401    
  23  Prefactor     19.453        12.854        .45405E-03   -1.4826    
  24  Prefactor     .10000E-03    15.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    67.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    19.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          53.788        34.537        .54690E-04   -1.4240    
  28  Prefactor     .10000E-03    6.7590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.7514        .38481        .21505E-04   -1.5443    
  30  Prefactor     .10000E-03    44.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.5452        .27749        .27074E-03   -.76515    
  32  Prefactor     .69929        .20100        .29656E-03   -1.0355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11048e-10
Minuit parameter uncertainties:
  1  3.38494e-06
  2  0.000201224
  3  12.1662
  4  3.33223e-05
  5  2.02745e-07
  6  19.6736
  7  0.000291016
  8  7.38034e-06
  9  1.14892e-05
  10  24.2466
  11  1.70025e-05
  12  5.22719
  13  1.67897
  14  4.4987
  15  1.62457e-06
  16  1.13463e-05
  17  7.33058e-05
  18  0.635823
  19  1.02457e-07
  20  25.2595
  21  10.0652
  22  1.56758
  23  12.8554
  24  4.97213e-06
  25  4.20852e-05
  26  2.91815e-06
  27  34.5496
  28  1.2046e-07
  29  0.384808
  30  3.06132e-05
  31  0.277765
  32  0.201207
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.313e+00  6.358e-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:  6.993e-01  2.012e-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.545e+00  2.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.43
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.44e-07 +/- 6.98e-08
Energy Flux (Fixed Index): 3.43e-05 +/- 1.66e-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) = 6038.28105903
delta logL = 0.19063021145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6038.27515224
delta logL = 0.196536997541

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3069       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9658       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5125       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71738       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=   6038.275     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      209 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3069        12.132        .83524E-02    .19573E-03
   2  alpha         2.9658        3.2215        .38472        .14200E-04
   3  Normalizat    1.5125        .14458        .61706E-01   -.59956E-05
   4  Prefactor     .71739        .14630        .66261E-01    .24733E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.30691
  alpha      = 2.96581
  Normalizat = 1.51248
  Prefactor  = 0.717387
 **********
 **   18 **HESSE 
 **********

 FCN=   6038.275     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3069        .59850        .37291E-04   -1.5479    
   2  alpha         2.9658        .58176        .15803E-01    .18742    
   3  Normalizat    1.5125        .26688        .27290E-03   -.77428    
   4  Prefactor     .71739        .20215        .29317E-03   -1.0285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98795e-11
Minuit parameter uncertainties:
  1  0.598502
  2  0.587342
  3  0.267126
  4  0.202361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705321': 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) = 6038.27515224
delta logL = 0.196536997728

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.307e+00  5.985e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.966e+00  5.873e-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:  7.174e-01  2.024e-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.512e+00  2.671e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.91
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.97 +/- 0.59
Photon Flux (Free Index): 1.75e-07 +/- 8.75e-08
Energy Flux (Free Index): 3.47e-05 +/- 1.54e-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/705321/cmap_HighResolution_312940801_313200001_4FGL_J1229.0+0202_daily_bin284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.44e-07', energy_flux2='3.47e-05', photon_flux_error='6.98e-08', dlogl='1.97e-01', energy_flux='3.43e-05', photon_flux2='1.75e-07', job_status='DONE', time_completed='2021-09-05 19:01:45.773803', photon_index_error2='0.59', photon_index2='2.97', ts='8.43', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='1.54e-05', EG='1.55', time_epoch_completed='1630893705.77', return_code='0', job_id='705321', GAL2='0.72', EG2='1.51', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='8.75e-08', ts2='8.91', photon_index='2.61' WHERE bin_id='284' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:01:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 705321: <4FGL_J1229.0+0202_daily_bin284> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin284 187.268 2.0454 312940801 313200001 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 :                                   791.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            935 sec.

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

