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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin657
RA = 187.268, Dec = 2.0454
tmin = 409622401, tmax = 409881601
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='708253', job_status='RUN', time_executed='2021-09-05 18:55:56.737981', time_epoch_executed='1630893356.74' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='657'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708253

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708253/ft1_4FGL_J1229.0+0202_daily_bin657.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708253/ft2_4FGL_J1229.0+0202_daily_bin657.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708253/ft1_4FGL_J1229.0+0202_daily_bin657.fits outfile=/scratch/kocevski/708253/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin657.fits ra=187.268 dec=2.0454 rad=12.0 tmin=409622401.0 tmax=409881601.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.75
user 5.47
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708253/ft1_filtered_4FGL_J1229.0+0202_daily_bin657.fits" evtable="EVENTS" scfile=/scratch/kocevski/708253/ft2_4FGL_J1229.0+0202_daily_bin657.fits sctable="SC_DATA" outfile=/scratch/kocevski/708253/ltcube_409622401_409881601_4FGL_J1229.0+0202_daily_bin657.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/708253/ft2_4FGL_J1229.0+0202_daily_bin657.fits
.....................!
real 12.13
user 11.68
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708253/ft1_filtered_4FGL_J1229.0+0202_daily_bin657.fits evtable="EVENTS" scfile=/scratch/kocevski/708253/ft2_4FGL_J1229.0+0202_daily_bin657.fits sctable="SC_DATA" expcube=/scratch/kocevski/708253/ltcube_409622401_409881601_4FGL_J1229.0+0202_daily_bin657.fits outfile=/scratch/kocevski/708253/expmap_409622401_409881601_4FGL_J1229.0+0202_daily_bin657.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/708253/ltcube_409622401_409881601_4FGL_J1229.0+0202_daily_bin657.fits
.....................!
real 192.70
user 186.50
sys 5.83

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/708253/ft1_filtered_4FGL_J1229.0+0202_daily_bin657.fits scfile=/scratch/kocevski/708253/ft2_4FGL_J1229.0+0202_daily_bin657.fits outfile=/scratch/kocevski/708253/cmap_409622401_409881601_4FGL_J1229.0+0202_daily_bin657.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=187.268 yref=2.0454 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708253/ft1_filtered_4FGL_J1229.0+0202_daily_bin657.fits scfile=/scratch/kocevski/708253/ft2_4FGL_J1229.0+0202_daily_bin657.fits outfile=/scratch/kocevski/708253/cmap_HighResolution_409622401_409881601_4FGL_J1229.0+0202_daily_bin657.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.58
user 0.38
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.749       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.327       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1087       1.0000         .10000E-03   10000.    
    13 'norm      '    13.882       1.0000         .10000E-03   10000.    
    14 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2497       1.0000         .10000E-03   10000.    
    16 'norm      '    .98913E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.5554       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.9193       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.5970       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.9465       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    15.922       1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.685       1.0000         .10000E-03   10000.    
    29 'norm      '    9.2201       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0750       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1051       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=   6615.864     FROM MIGRAD    STATUS=CONVERGED    896 CALLS     3757 TOTAL
                     EDM=   .80E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    66.226       -.21505E-05** at limit **
   2  Prefactor     .10000E-03    76.190       -.76346E-05** at limit **
   3  Prefactor     .10000E-03    7.7877       -.14661E-07** at limit **
   4  Prefactor     .10000E-03    47.124        .11855E-04** at limit **
   5  Prefactor     30.751        17.261       -.52611E-06    .19937E-04
   6  Prefactor     12.329        16.954       -.11745E-05   -.20069E-04
   7  Prefactor     .10000E-03    42.448       -.39104E-05** at limit **
   8  Prefactor     .10000E-03    37.523       -.10475E-04** at limit **
   9  Prefactor     .10000E-03    43.738       -.85121E-05** at limit **
  10  Prefactor     .10000E-03    38.359        .15534E-04** at limit **
  11  Prefactor     .10000E-03    14.133        .77533E-07** at limit **
  12  Prefactor     7.0468        22.295       -.24318E-07   -.53670E-04
  13  norm          13.891        6.1083       -.16165E-06   -.10488E-03
  14  norm          .10000E-03    1.8801        .55539E-07** at limit **
  15  Prefactor     2.2225        136.15       -.75587E-04   -.61837E-05
  16  norm          .11992E-03    45.911       -.10334E-05** at limit **
  17  Prefactor     .10000E-03    80.898        .86951E-05** at limit **
  18  norm          1.5558        .72971       -.57402E-08    .43988E-03
  19  Prefactor     .10000E-03    3.8580        .88972E-08** at limit **
  20  Prefactor     .10000E-03    10.299        .67382E-08** at limit **
  21  Prefactor     .10000E-03    3.9599        .63692E-09** at limit **
  22  norm          3.9193        2.2059       -.64167E-07    .45317E-04
  23  Prefactor     9.5976        10.946       -.13814E-05    .10109E-04
  24  Prefactor     .10000E-03    22.061       -.61845E-07** at limit **
  25  Prefactor     2.9664        332.12       -.97098E-04   -.27315E-05
  26  Prefactor     .10000E-03    45.401       -.31536E-05** at limit **
  27  norm          15.913        41.538        .52184E-05    .93415E-05
  28  Prefactor     11.679        19.502       -.87981E-06    .15279E-04
  29  norm          9.2198        .77997        .16370E-06    .91071E-03
  30  Prefactor     .10000E-03    328.44        .15341E-04** at limit **
  31  Normalizat    1.0754        .27073        .26220E-05    .13716E-03
  32  Prefactor     1.1048        .20513        .15627E-05    .19192E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.7509
  Prefactor  = 12.3295
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.04678
  norm       = 13.8906
  norm       = 0.0001
  Prefactor  = 2.22254
  norm       = 0.000119922
  Prefactor  = 0.0001
  norm       = 1.55576
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.91935
  Prefactor  = 9.59758
  Prefactor  = 0.0001
  Prefactor  = 2.9664
  Prefactor  = 0.0001
  norm       = 15.9127
  Prefactor  = 11.6788
  norm       = 9.21979
  Prefactor  = 0.000100001
  Normalizat = 1.0754
  Prefactor  = 1.10481
 **********
 **   18 **HESSE 
 **********

 FCN=   6615.864     FROM HESSE     STATUS=OK           661 CALLS     4418 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    67.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    76.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.8331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    47.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.751        17.315        .72256E-04   -1.4598    
   6  Prefactor     12.329        16.964        .11409E-03   -1.5006    
   7  Prefactor     .10000E-03    42.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    43.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    38.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.0468        22.213        .15045E-03   -1.5177    
  13  norm          13.891        6.0968        .10664E-03   -1.4962    
  14  norm          .10000E-03    1.8966        .10879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.2225        138.70        .27395E-03   -1.5410    
  16  norm          .11992E-03    44.457        .16361       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    80.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.5558        .72641        .43856E-04   -1.5459    
  19  Prefactor     .10000E-03    3.8652        .15603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.9651        .15807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.9193        2.2041        .86254E-04   -1.5312    
  23  Prefactor     9.5976        10.931        .12936E-03   -1.5088    
  24  Prefactor     .10000E-03    22.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.9664        336.01        .23660E-03   -1.5363    
  26  Prefactor     .10000E-03    45.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          15.913        41.519        .10037E-03   -1.4910    
  28  Prefactor     11.679        19.639        .11719E-03   -1.5024    
  29  norm          9.2198        .78030        .19057E-04   -1.5101    
  30  Prefactor     .10000E-03    330.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0754        .32661        .38620E-03   -.90545    
  32  Prefactor     1.1048        .24740        .30225E-03   -.89313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56332e-10
Minuit parameter uncertainties:
  1  0.000114597
  2  3.23211e-05
  3  7.0634e-06
  4  9.4079e-06
  5  17.3182
  6  16.9709
  7  1.95576e-06
  8  8.53815e-06
  9  5.28727e-06
  10  9.26737e-05
  11  2.96653e-05
  12  22.2387
  13  6.09712
  14  7.6471e-06
  15  35.1999
  16  0.0595639
  17  0.000130199
  18  0.726418
  19  1.60359e-06
  20  9.6394e-07
  21  4.3771e-07
  22  2.20414
  23  10.9336
  24  2.27573e-05
  25  63.5099
  26  5.19232e-06
  27  41.5947
  28  19.6501
  29  0.780301
  30  0.00135777
  31  0.327225
  32  0.247659
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.556e+00  7.264e-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.105e+00  2.477e-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.075e+00  3.272e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.49
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.71e-07 +/- 7.97e-08
Energy Flux (Fixed Index): 4.06e-05 +/- 1.90e-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) = 6614.89081517
delta logL = 0.973355671032

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6614.8696119
delta logL = 0.99455893424

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2683       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9358       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1489       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0628       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=   6614.870     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      208 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2682        .60822        .92109E-02    .39107E-03
   2  alpha         1.9359        .34979        .26953       -.57328E-04
   3  Normalizat    1.1489        .25606        .84811E-01    .55751E-04
   4  Prefactor     1.0628        .20214        .69440E-01   -.19549E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.26824
  alpha      = 1.93589
  Normalizat = 1.1489
  Prefactor  = 1.06282
 **********
 **   18 **HESSE 
 **********

 FCN=   6614.870     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2682        .71501        .40881E-04   -1.5483    
   2  alpha         1.9359        .44673        .11027E-01   -.22761    
   3  Normalizat    1.1489        .30945        .37554E-03   -.88197    
   4  Prefactor     1.0628        .24356        .30720E-03   -.90664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91979e-11
Minuit parameter uncertainties:
  1  0.715011
  2  0.449272
  3  0.309947
  4  0.24381
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708253': 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) = 6614.86961189
delta logL = 0.994558948812

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.268e+00  7.150e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  1.936e+00  4.493e-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.063e+00  2.438e-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.149e+00  3.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.30
Ra Dec: 187.268 2.045
Photon Index (Free Index): 1.94 +/- 0.45
Photon Flux (Free Index): 1.09e-07 +/- 6.66e-08
Energy Flux (Free Index): 5.04e-05 +/- 2.64e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/708253/cmap_HighResolution_409622401_409881601_4FGL_J1229.0+0202_daily_bin657.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.71e-07', energy_flux2='5.04e-05', photon_flux_error='7.97e-08', dlogl='9.95e-01', energy_flux='4.06e-05', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-09-05 19:09:35.351317', photon_index_error2='0.45', photon_index2='1.94', ts='10.49', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='2.64e-05', EG='1.08', time_epoch_completed='1630894175.35', return_code='0', job_id='708253', GAL2='1.06', EG2='1.15', return_code2='0', energy_flux_error='1.90e-05', photon_flux_error2='6.66e-08', ts2='12.30', photon_index='2.61' WHERE bin_id='657' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:09:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 708253: <4FGL_J1229.0+0202_daily_bin657> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin657> 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) <bullet0031>, 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:09:37 2021
Results reported at Sun Sep  5 19:09:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin657 187.268 2.0454 409622401 409881601 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 :                                   816.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            832 sec.

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

