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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin786
RA = 187.268, Dec = 2.0454
tmin = 443059201, tmax = 443318401
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='708440', job_status='RUN', time_executed='2021-09-05 18:57:55.190555', time_epoch_executed='1630893475.19' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='786'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708440

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708440/ft1_4FGL_J1229.0+0202_daily_bin786.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708440/ft2_4FGL_J1229.0+0202_daily_bin786.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708440/ft1_4FGL_J1229.0+0202_daily_bin786.fits outfile=/scratch/kocevski/708440/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin786.fits ra=187.268 dec=2.0454 rad=12.0 tmin=443059201.0 tmax=443318401.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.83
user 3.61
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/708440/ft2_4FGL_J1229.0+0202_daily_bin786.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/708440/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin786.fits evtable="EVENTS" outfile="/scratch/kocevski/708440/ft1_filtered_4FGL_J1229.0+0202_daily_bin786.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708440/ft1_filtered_4FGL_J1229.0+0202_daily_bin786.fits" evtable="EVENTS" scfile=/scratch/kocevski/708440/ft2_4FGL_J1229.0+0202_daily_bin786.fits sctable="SC_DATA" outfile=/scratch/kocevski/708440/ltcube_443059201_443318401_4FGL_J1229.0+0202_daily_bin786.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/708440/ft2_4FGL_J1229.0+0202_daily_bin786.fits
.....................!
real 11.95
user 11.63
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708440/ft1_filtered_4FGL_J1229.0+0202_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/708440/ft2_4FGL_J1229.0+0202_daily_bin786.fits sctable="SC_DATA" expcube=/scratch/kocevski/708440/ltcube_443059201_443318401_4FGL_J1229.0+0202_daily_bin786.fits outfile=/scratch/kocevski/708440/expmap_443059201_443318401_4FGL_J1229.0+0202_daily_bin786.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/708440/ltcube_443059201_443318401_4FGL_J1229.0+0202_daily_bin786.fits
.....................!
real 190.75
user 186.16
sys 4.10

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/708440/ft1_filtered_4FGL_J1229.0+0202_daily_bin786.fits scfile=/scratch/kocevski/708440/ft2_4FGL_J1229.0+0202_daily_bin786.fits outfile=/scratch/kocevski/708440/cmap_443059201_443318401_4FGL_J1229.0+0202_daily_bin786.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708440/ft1_filtered_4FGL_J1229.0+0202_daily_bin786.fits scfile=/scratch/kocevski/708440/ft2_4FGL_J1229.0+0202_daily_bin786.fits outfile=/scratch/kocevski/708440/cmap_HighResolution_443059201_443318401_4FGL_J1229.0+0202_daily_bin786.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    62.704       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.334       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .33034E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .76814E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4854       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.8655       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    21.487       1.0000         .10000E-03   10000.    
    17 'Prefactor '    112.68       1.0000         .10000E-03   10000.    
    18 'norm      '    .90632       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .58007       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.2077       1.0000         .10000E-03   10000.    
    22 'norm      '    1.6180       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    56.534       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    31.828       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.3346       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .76998       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1280       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6090.316     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     3717 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    15.319       -.12221E-04** at limit **
   2  Prefactor     62.729        2.9722        .15668E-05   -.73674E-02
   3  Prefactor     .10000E-03    2.6366       -.37428E-06** at limit **
   4  Prefactor     .10000E-03    48.761        .19077E-04** at limit **
   5  Prefactor     .10000E-03    2.8270        .62512E-06** at limit **
   6  Prefactor     .10000E-03    3.9266       -.36505E-07** at limit **
   7  Prefactor     .10001E-03    11.407       -.19774E-04** at limit **
   8  Prefactor     26.337        1.0241       -.89065E-07    .21423E-03
   9  Prefactor     .11336E-03    12.554       -.10880E-04** at limit **
  10  Prefactor     .10003E-03    7.9642        .70388E-05** at limit **
  11  Prefactor     .10104E-03    302.46       -.21897E-04** at limit **
  12  Prefactor     5.4653        1.1508        .76360E-06   -.72296E-04
  13  norm          .10000E-03    5.1441        .22093E-06** at limit **
  14  norm          8.8637        4.0529        .38991E-06    .23563E-02
  15  Prefactor     .10001E-03    8.5206        .77333E-05** at limit **
  16  norm          21.488        1.0113       -.52547E-07    .23900E-03
  17  Prefactor     112.70        2.6581        .10841E-05   -.93252E-02
  18  norm          .90660        .52799        .67325E-07    .90716E-03
  19  Prefactor     .55998        1.0727        .22618E-05    .12035E-03
  20  Prefactor     .10001E-03    7.7059       -.32950E-05** at limit **
  21  Prefactor     4.2077        4.2479       -.33043E-05   -.19931E-03
  22  norm          1.6183        1.1821       -.10816E-06   -.61711E-03
  23  Prefactor     .10000E-03    1.7859        .47817E-06** at limit **
  24  Prefactor     56.549        1.3578        .29455E-07    .16789E-03
  25  Prefactor     .10000E-03    15.512       -.28334E-04** at limit **
  26  Prefactor     31.837        1.2166        .39038E-06   -.85647E-03
  27  norm          .10004E-03    4.6958       -.93469E-05** at limit **
  28  Prefactor     .10000E-03    11.816        .10421E-04** at limit **
  29  norm          1.3347        .29683        .31451E-07    .39429E-02
  30  Prefactor     .10002E-03    19.116        .33452E-04** at limit **
  31  Normalizat    .76980        .22395       -.28370E-05   -.70059E-04
  32  Prefactor     1.1280        .18448        .15833E-05    .16407E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Prefactor  = 62.7292
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 26.337
  Prefactor  = 0.000113361
  Prefactor  = 0.000100027
  Prefactor  = 0.000101039
  Prefactor  = 5.46526
  norm       = 0.0001
  norm       = 8.86373
  Prefactor  = 0.000100008
  norm       = 21.4882
  Prefactor  = 112.704
  norm       = 0.906604
  Prefactor  = 0.55998
  Prefactor  = 0.000100009
  Prefactor  = 4.20766
  norm       = 1.61829
  Prefactor  = 0.0001
  Prefactor  = 56.5489
  Prefactor  = 0.0001
  Prefactor  = 31.8369
  norm       = 0.00010004
  Prefactor  = 0.000100001
  norm       = 1.33471
  Prefactor  = 0.000100022
  Normalizat = 0.769804
  Prefactor  = 1.12804
 **********
 **   18 **HESSE 
 **********

 FCN=   6090.316     FROM HESSE     STATUS=OK           741 CALLS     4458 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    15.502        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     62.729        82.875        .12669E-02   -1.4122    
   3  Prefactor     .10000E-03    2.6348        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    48.839        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8212        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.9253        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    29.060        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.337        33.003        .19516E-02   -1.4681    
   9  Prefactor     .11336E-03    31.049        .13180       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    26.592        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10104E-03    18.038        .12293       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4653        13.265        .42889E-02   -1.5240    
  13  norm          .10000E-03    1.9213        .50326E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.8637        4.2961        .33654E-02   -1.5112    
  15  Prefactor     .10001E-03    9.6087        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          21.488        31.472        .21602E-02   -1.4781    
  17  Prefactor     112.70        155.29        .94740E-03   -1.3581    
  18  norm          .90660        .55247        .89626E-02   -1.5518    
  19  Prefactor     .55998        6.1775        .63984E-01   -1.5558    
  20  Prefactor     .10001E-03    10.485        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.2077        4.2469        .49114E-02   -1.5298    
  22  norm          1.6183        1.1910        .83199E-02   -1.5454    
  23  Prefactor     .10000E-03    1.7835        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     56.549        37.138        .13338E-02   -1.4203    
  25  Prefactor     .10000E-03    29.954        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     31.837        51.449        .17756E-02   -1.4579    
  27  norm          .10004E-03    9.9069        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    12.294        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.3347        .29786        .43556E-02   -1.5477    
  30  Prefactor     .10002E-03    24.532        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .76980        .20640        .70814E-01   -1.0120    
  32  Prefactor     1.1280        .16365        .36608E-01   -.88575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57339e-06
Minuit parameter uncertainties:
  1  0.000647771
  2  83.0281
  3  4.76387e-05
  4  0.0006146
  5  4.21047e-05
  6  2.42497e-05
  7  0.00131394
  8  33.0254
  9  0.0407571
  10  0.00168519
  11  0.00866015
  12  13.2724
  13  3.83166e-05
  14  4.29624
  15  0.000568264
  16  31.4965
  17  155.851
  18  0.552473
  19  3.71998
  20  0.000616221
  21  4.24716
  22  1.19107
  23  1.87622e-05
  24  37.1534
  25  0.000186138
  26  51.5207
  27  0.00126221
  28  0.000217977
  29  0.297859
  30  0.00148071
  31  0.206614
  32  0.163724
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  9.066e-01  5.525e-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.128e+00  1.637e-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:  7.698e-01  2.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.72
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 9.96e-08 +/- 6.06e-08
Energy Flux (Fixed Index): 2.37e-05 +/- 1.44e-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) = 6090.15178277
delta logL = 0.163937421197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6090.14417459
delta logL = 0.171545604243

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .86130       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9961       1.0000          .0000       5.0000    
     3 'Normalizat'    .74875       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1410       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=   6090.144     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      203 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .86130        10.048        .82991E-02   -.75953E-03
   2  alpha         2.9960        3.1568        .42225       -.10058E-05
   3  Normalizat    .74873        .94917E-01    .71670E-01    .31418E-04
   4  Prefactor     1.1410        .89780E-01    .36203E-01   -.22419E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.861301
  alpha      = 2.99604
  Normalizat = 0.748725
  Prefactor  = 1.14101
 **********
 **   18 **HESSE 
 **********

 FCN=   6090.144     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .86130        .51212        .37288E-04   -1.5522    
   2  alpha         2.9960        .69174        .17801E-01    .19974    
   3  Normalizat    .74873        .22363        .31719E-03   -1.0200    
   4  Prefactor     1.1410        .18563        .21988E-03   -.88166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.95215e-11
Minuit parameter uncertainties:
  1  0.512123
  2  0.70127
  3  0.223899
  4  0.185736
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708440': 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) = 6090.14417458
delta logL = 0.171545613631

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  8.613e-01  5.121e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.996e+00  7.013e-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.141e+00  1.857e-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:  7.487e-01  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.18
Ra Dec: 187.268 2.045
Photon Index (Free Index): 3.00 +/- 0.70
Photon Flux (Free Index): 1.17e-07 +/- 6.63e-08
Energy Flux (Free Index): 2.30e-05 +/- 1.26e-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/708440/cmap_HighResolution_443059201_443318401_4FGL_J1229.0+0202_daily_bin786.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.96e-08', energy_flux2='2.30e-05', photon_flux_error='6.06e-08', dlogl='1.72e-01', energy_flux='2.37e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-05 19:10:28.952538', photon_index_error2='0.70', photon_index2='3.00', ts='4.72', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.26e-05', EG='0.77', time_epoch_completed='1630894228.95', return_code='0', job_id='708440', GAL2='1.14', EG2='0.75', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='6.63e-08', ts2='5.18', photon_index='2.61' WHERE bin_id='786' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:10:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 708440: <4FGL_J1229.0+0202_daily_bin786> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin786> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 18:56:02 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:56:04 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:56:04 2021
Terminated at Sun Sep  5 19:10:29 2021
Results reported at Sun Sep  5 19:10:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin786 187.268 2.0454 443059201 443318401 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 :                                   751.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            867 sec.

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

