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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin806
RA = 187.268, Dec = 2.0454
tmin = 448243201, tmax = 448502401
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='709498', job_status='RUN', time_executed='2021-09-05 19:02:22.885136', time_epoch_executed='1630893742.89' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='806'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/709498

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/709498/ft1_4FGL_J1229.0+0202_daily_bin806.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/709498/ft2_4FGL_J1229.0+0202_daily_bin806.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/709498/ft1_4FGL_J1229.0+0202_daily_bin806.fits outfile=/scratch/kocevski/709498/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin806.fits ra=187.268 dec=2.0454 rad=12.0 tmin=448243201.0 tmax=448502401.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.20
user 4.94
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/709498/ft1_filtered_4FGL_J1229.0+0202_daily_bin806.fits" evtable="EVENTS" scfile=/scratch/kocevski/709498/ft2_4FGL_J1229.0+0202_daily_bin806.fits sctable="SC_DATA" outfile=/scratch/kocevski/709498/ltcube_448243201_448502401_4FGL_J1229.0+0202_daily_bin806.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/709498/ft2_4FGL_J1229.0+0202_daily_bin806.fits
.....................!
real 12.01
user 11.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/709498/ft1_filtered_4FGL_J1229.0+0202_daily_bin806.fits evtable="EVENTS" scfile=/scratch/kocevski/709498/ft2_4FGL_J1229.0+0202_daily_bin806.fits sctable="SC_DATA" expcube=/scratch/kocevski/709498/ltcube_448243201_448502401_4FGL_J1229.0+0202_daily_bin806.fits outfile=/scratch/kocevski/709498/expmap_448243201_448502401_4FGL_J1229.0+0202_daily_bin806.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/709498/ltcube_448243201_448502401_4FGL_J1229.0+0202_daily_bin806.fits
.....................!
real 189.98
user 185.11
sys 4.48

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/709498/ft1_filtered_4FGL_J1229.0+0202_daily_bin806.fits scfile=/scratch/kocevski/709498/ft2_4FGL_J1229.0+0202_daily_bin806.fits outfile=/scratch/kocevski/709498/cmap_448243201_448502401_4FGL_J1229.0+0202_daily_bin806.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.73
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.966       1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.769       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.871       1.0000         .10000E-03   10000.    
     8 'Prefactor '    52.055       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.5391       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .95373       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1263       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    47.920       1.0000         .10000E-03   10000.    
    18 'norm      '    1.3458       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    47.490       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.425       1.0000         .10000E-03   10000.    
    22 'norm      '    1.5890       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.128       1.0000         .10000E-03   10000.    
    24 'Prefactor '    33.177       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.8283       1.0000         .10000E-03   10000.    
    29 'norm      '    1.1616       1.0000         .10000E-03   10000.    
    30 'Prefactor '    28.672       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .92832       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1184       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=   4774.522     FROM MIGRAD    STATUS=CONVERGED    830 CALLS     5036 TOTAL
                     EDM=   .85E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.369       -.19056E-06** at limit **
   2  Prefactor     .10000E-03    92.459       -.23470E-05** at limit **
   3  Prefactor     .10000E-03    7.6998        .66354E-07** at limit **
   4  Prefactor     .10000E-03    33.009       -.12261E-05** at limit **
   5  Prefactor     10.964        11.313        .94077E-06   -.21552E-03
   6  Prefactor     30.763        22.157        .64905E-07   -.69452E-05
   7  Prefactor     17.877        150.13        .18548E-05    .46076E-05
   8  Prefactor     52.052        52.494       -.19025E-06   -.11193E-04
   9  Prefactor     6.5362        76.871       -.26871E-05   -.21227E-04
  10  Prefactor     .10000E-03    10.550        .16260E-06** at limit **
  11  Prefactor     .10000E-03    48.392        .15370E-05** at limit **
  12  Prefactor     .95750        13.875        .43535E-06   -.67968E-04
  13  norm          .10000E-03    1.3293       -.38837E-07** at limit **
  14  norm          1.1281        6.3175        .23300E-05   -.15057E-03
  15  Prefactor     .10000E-03    25.388        .11268E-05** at limit **
  16  norm          .10000E-03    20.283       -.55403E-06** at limit **
  17  Prefactor     47.920        181.21       -.12161E-05   -.91099E-05
  18  norm          1.3455        .86491       -.22257E-06   -.88563E-03
  19  Prefactor     .10000E-03    6.1015       -.92492E-07** at limit **
  20  Prefactor     47.481        45.501       -.64179E-06   -.56139E-04
  21  Prefactor     10.425        9.4166        .40430E-07   -.10479E-04
  22  norm          1.5889        1.9476        .48576E-07   -.21637E-03
  23  Prefactor     11.129        9.0781        .68811E-07   -.14736E-04
  24  Prefactor     33.184        37.426        .65252E-06    .26075E-04
  25  Prefactor     .10000E-03    33.582       -.12793E-05** at limit **
  26  Prefactor     .10000E-03    83.523        .14552E-05** at limit **
  27  norm          .10000E-03    27.275        .59833E-06** at limit **
  28  Prefactor     8.8302        22.758        .65807E-06   -.17306E-04
  29  norm          1.1615        .33905        .77775E-08    .22034E-04
  30  Prefactor     28.668        59.232       -.32394E-06   -.12489E-04
  31  Normalizat    .92827        .26779       -.10359E-05   -.74055E-04
  32  Prefactor     1.1185        .19783        .19594E-07   -.94280E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9636
  Prefactor  = 30.7627
  Prefactor  = 17.8774
  Prefactor  = 52.0521
  Prefactor  = 6.53619
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.957503
  norm       = 0.0001
  norm       = 1.12809
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 47.9203
  norm       = 1.34551
  Prefactor  = 0.0001
  Prefactor  = 47.4811
  Prefactor  = 10.4246
  norm       = 1.58892
  Prefactor  = 11.1287
  Prefactor  = 33.184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.83016
  norm       = 1.16154
  Prefactor  = 28.6684
  Normalizat = 0.928274
  Prefactor  = 1.11846
 **********
 **   18 **HESSE 
 **********

 FCN=   4774.522     FROM HESSE     STATUS=OK           657 CALLS     5693 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    93.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.7221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    33.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.964        11.295        .60491E-03   -1.5046    
   6  Prefactor     30.763        22.173        .72232E-04   -1.4598    
   7  Prefactor     17.877        151.02        .94741E-04   -1.4862    
   8  Prefactor     52.052        52.563        .55588E-04   -1.4264    
   9  Prefactor     6.5362        77.083        .15694E-03   -1.5197    
  10  Prefactor     .10000E-03    10.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    49.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .95750        44.881        .46255E-02   -1.5512    
  13  norm          .10000E-03    1.3326        .77425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1281        6.4318        .27294E-03   -1.5496    
  15  Prefactor     .10000E-03    25.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    20.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     47.920        180.98        .57925E-04   -1.4322    
  18  norm          1.3455        .85107        .40700E-04   -1.5476    
  19  Prefactor     .10000E-03    6.1079        .16661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     47.481        45.954        .58186E-04   -1.4329    
  21  Prefactor     10.425        9.4105        .12410E-03   -1.5062    
  22  norm          1.5889        1.9158        .98876E-04   -1.5456    
  23  Prefactor     11.129        9.0756        .12010E-03   -1.5041    
  24  Prefactor     33.184        37.515        .69568E-04   -1.4555    
  25  Prefactor     .10000E-03    33.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    83.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    27.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     8.8302        22.868        .13490E-03   -1.5114    
  29  norm          1.1615        .33935        .20679E-04   -1.5492    
  30  Prefactor     28.668        59.352        .74821E-04   -1.4637    
  31  Normalizat    .92827        .31567        .32024E-03   -.95474    
  32  Prefactor     1.1185        .23433        .23840E-03   -.88879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80445e-08
Minuit parameter uncertainties:
  1  1.73031e-05
  2  0.000616652
  3  3.29958e-06
  4  0.000189653
  5  11.2976
  6  22.1787
  7  104.277
  8  52.6095
  9  44.9645
  10  1.59754e-05
  11  0.000239542
  12  13.1206
  13  5.48737e-07
  14  5.38792
  15  0.000150931
  16  7.67673e-05
  17  183.115
  18  0.851079
  19  9.63913e-06
  20  45.9878
  21  9.41186
  22  1.9159
  23  9.07674
  24  37.5417
  25  0.000200951
  26  0.000319191
  27  8.10861e-05
  28  22.8903
  29  0.339354
  30  59.4741
  31  0.316302
  32  0.234548
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.346e+00  8.511e-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.118e+00  2.345e-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:  9.283e-01  3.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.55
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.48e-07 +/- 9.34e-08
Energy Flux (Fixed Index): 3.51e-05 +/- 2.22e-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) = 4772.79466764
delta logL = 1.72689762905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4772.77143148
delta logL = 1.75013378283

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .80534       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2670       1.0000          .0000       5.0000    
     3 'Normalizat'    .75870       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2240       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=   4772.771     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      244 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80525        5.2873        .53379E-02    .45373E-03
   2  alpha         4.2672        3.4739        .41484        .18766E-05
   3  Normalizat    .75873        .12273        .78974E-01    .20179E-04
   4  Prefactor     1.2239        .10284        .51860E-01    .12039E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.805245
  alpha      = 4.26722
  Normalizat = 0.758731
  Prefactor  = 1.22394
 **********
 **   18 **HESSE 
 **********

 FCN=   4772.771     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .55E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .80525        .91079        .23753E-04   -1.5529    
   2  alpha         4.2672        1.2512        .20019E-01    .78509    
   3  Normalizat    .75873        .29678        .34964E-03   -1.0162    
   4  Prefactor     1.2239        .23564        .22927E-03   -.85598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49304e-14
Minuit parameter uncertainties:
  1  0.910806
  2  1.39
  3  0.297411
  4  0.235843
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/709498': 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) = 4772.77143142
delta logL = 1.75013384748

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  8.052e-01  9.108e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  4.267e+00  1.390e+00  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.224e+00  2.358e-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.587e-01  2.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.92
Ra Dec: 187.268 2.045
Photon Index (Free Index): 4.27 +/- 1.39
Photon Flux (Free Index): 2.76e-07 +/- 1.17e-07
Energy Flux (Free Index): 4.01e-05 +/- 1.75e-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/709498/cmap_HighResolution_448243201_448502401_4FGL_J1229.0+0202_daily_bin806.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.48e-07', energy_flux2='4.01e-05', photon_flux_error='9.34e-08', dlogl='1.75e+00', energy_flux='3.51e-05', photon_flux2='2.76e-07', job_status='DONE', time_completed='2021-09-05 19:14:57.753332', photon_index_error2='1.39', photon_index2='4.27', ts='5.55', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='0.93', time_epoch_completed='1630894497.75', return_code='0', job_id='709498', GAL2='1.22', EG2='0.76', return_code2='0', energy_flux_error='2.22e-05', photon_flux_error2='1.17e-07', ts2='9.92', photon_index='2.61' WHERE bin_id='806' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:14:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 709498: <4FGL_J1229.0+0202_daily_bin806> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin806 187.268 2.0454 448243201 448502401 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 :                                   741.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            880 sec.

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

