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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin450
RA = 187.268, Dec = 2.0454
tmin = 355968001, tmax = 356227201
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='706607', job_status='RUN', time_executed='2021-09-05 18:53:35.598253', time_epoch_executed='1630893215.6' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='450'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706607

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706607/ft1_4FGL_J1229.0+0202_daily_bin450.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706607/ft2_4FGL_J1229.0+0202_daily_bin450.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706607/ft1_4FGL_J1229.0+0202_daily_bin450.fits outfile=/scratch/kocevski/706607/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin450.fits ra=187.268 dec=2.0454 rad=12.0 tmin=355968001.0 tmax=356227201.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.35
user 3.12
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/706607/ft2_4FGL_J1229.0+0202_daily_bin450.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/706607/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin450.fits evtable="EVENTS" outfile="/scratch/kocevski/706607/ft1_filtered_4FGL_J1229.0+0202_daily_bin450.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/706607/ft1_filtered_4FGL_J1229.0+0202_daily_bin450.fits" evtable="EVENTS" scfile=/scratch/kocevski/706607/ft2_4FGL_J1229.0+0202_daily_bin450.fits sctable="SC_DATA" outfile=/scratch/kocevski/706607/ltcube_355968001_356227201_4FGL_J1229.0+0202_daily_bin450.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/706607/ft2_4FGL_J1229.0+0202_daily_bin450.fits
.....................!
real 12.06
user 11.72
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706607/ft1_filtered_4FGL_J1229.0+0202_daily_bin450.fits evtable="EVENTS" scfile=/scratch/kocevski/706607/ft2_4FGL_J1229.0+0202_daily_bin450.fits sctable="SC_DATA" expcube=/scratch/kocevski/706607/ltcube_355968001_356227201_4FGL_J1229.0+0202_daily_bin450.fits outfile=/scratch/kocevski/706607/expmap_355968001_356227201_4FGL_J1229.0+0202_daily_bin450.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/706607/ltcube_355968001_356227201_4FGL_J1229.0+0202_daily_bin450.fits
.....................!
real 189.99
user 185.14
sys 4.43

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/706607/ft1_filtered_4FGL_J1229.0+0202_daily_bin450.fits scfile=/scratch/kocevski/706607/ft2_4FGL_J1229.0+0202_daily_bin450.fits outfile=/scratch/kocevski/706607/cmap_355968001_356227201_4FGL_J1229.0+0202_daily_bin450.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706607/ft1_filtered_4FGL_J1229.0+0202_daily_bin450.fits scfile=/scratch/kocevski/706607/ft2_4FGL_J1229.0+0202_daily_bin450.fits outfile=/scratch/kocevski/706607/cmap_HighResolution_355968001_356227201_4FGL_J1229.0+0202_daily_bin450.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=187.268 yref=2.0454 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-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 '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.314       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1693       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.0168       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11249E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    55.286       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.3266       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.2310       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.423       1.0000         .10000E-03   10000.    
    25 'Prefactor '    49.903       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    51.394       1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.192       1.0000         .10000E-03   10000.    
    29 'norm      '    .72720       1.0000         .10000E-03   10000.    
    30 'Prefactor '    34.643       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.5151       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .62688       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=   5433.705     FROM MIGRAD    STATUS=CONVERGED    814 CALLS     4314 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.176        .92825E-06** at limit **
   2  Prefactor     .10000E-03    29.700        .49638E-05** at limit **
   3  Prefactor     .10000E-03    5.4102       -.28104E-07** at limit **
   4  Prefactor     .10000E-03    22.124       -.89780E-05** at limit **
   5  Prefactor     .10000E-03    3.4573        .91680E-08** at limit **
   6  Prefactor     26.314        19.207       -.90264E-06    .27629E-04
   7  Prefactor     .10000E-03    72.918       -.33372E-05** at limit **
   8  Prefactor     .10000E-03    14.105        .52216E-05** at limit **
   9  Prefactor     .10000E-03    28.647       -.12389E-06** at limit **
  10  Prefactor     .10000E-03    20.764       -.45554E-05** at limit **
  11  Prefactor     .10000E-03    19.435        .29097E-05** at limit **
  12  Prefactor     .10000E-03    4.4564        .11482E-07** at limit **
  13  norm          .10000E-03    .57886        .28005E-07** at limit **
  14  norm          .10000E-03    2.4115        .12968E-06** at limit **
  15  Prefactor     4.1554        76.492       -.34039E-04   -.38497E-05
  16  norm          .10000E-03    14.282        .71027E-05** at limit **
  17  Prefactor     .10000E-03    72.359        .44223E-06** at limit **
  18  norm          1.0166        .55630       -.91621E-07   -.30815E-03
  19  Prefactor     .10000E-03    13.003       -.95015E-05** at limit **
  20  Prefactor     55.275        37.134       -.72019E-05    .20376E-03
  21  Prefactor     .10000E-03    3.0819        .81886E-07** at limit **
  22  norm          2.3264        1.7073       -.55192E-07   -.18250E-03
  23  Prefactor     7.2311        6.9893       -.27295E-06    .63183E-05
  24  Prefactor     13.423        17.324       -.15224E-06    .45049E-05
  25  Prefactor     49.907        58.559        .47396E-05    .27671E-05
  26  Prefactor     .10000E-03    29.212        .28323E-05** at limit **
  27  norm          51.393        29.869       -.22111E-06    .75508E-05
  28  Prefactor     11.189        12.145       -.20331E-06   -.17989E-04
  29  norm          .72709        .31667       -.47527E-07    .24245E-03
  30  Prefactor     34.627        48.430       -.20319E-04    .23263E-05
  31  Normalizat    1.5154        .22111        .31184E-05    .12979E-04
  32  Prefactor     .62673        .16584        .10004E-06    .18141E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.3144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.15543
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.01663
  Prefactor  = 0.000100002
  Prefactor  = 55.2751
  Prefactor  = 0.0001
  norm       = 2.3264
  Prefactor  = 7.23108
  Prefactor  = 13.4227
  Prefactor  = 49.9072
  Prefactor  = 0.0001
  norm       = 51.3934
  Prefactor  = 11.189
  norm       = 0.727088
  Prefactor  = 34.6265
  Normalizat = 1.51536
  Prefactor  = 0.626728
 **********
 **   18 **HESSE 
 **********

 FCN=   5433.705     FROM HESSE     STATUS=OK           649 CALLS     4963 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    29.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.4236        .16744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.4675        .13385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.314        19.234        .78093E-04   -1.4682    
   7  Prefactor     .10000E-03    72.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.4688        .15195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .57976        .54766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.4593        .22288E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.1554        77.316        .19739E-03   -1.5300    
  16  norm          .10000E-03    14.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    72.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0166        .55094        .38069E-04   -1.5506    
  19  Prefactor     .10000E-03    12.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     55.275        36.882        .53948E-04   -1.4220    
  21  Prefactor     .10000E-03    3.0880        .12637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.3264        1.6974        .78285E-04   -1.5403    
  23  Prefactor     7.2311        6.9868        .14916E-03   -1.5170    
  24  Prefactor     13.423        17.320        .10933E-03   -1.4975    
  25  Prefactor     49.907        59.059        .56768E-04   -1.4294    
  26  Prefactor     .10000E-03    29.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          51.393        29.865        .55943E-04   -1.4273    
  28  Prefactor     11.189        12.145        .11975E-03   -1.5039    
  29  norm          .72709        .31869        .24105E-04   -1.5537    
  30  Prefactor     34.627        48.566        .68085E-04   -1.4530    
  31  Normalizat    1.5154        .25824        .24947E-03   -.77348    
  32  Prefactor     .62673        .19224        .28635E-03   -1.0647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28313e-10
Minuit parameter uncertainties:
  1  9.47873e-06
  2  1.06805e-05
  3  6.33644e-06
  4  3.25896e-07
  5  6.93769e-06
  6  19.2388
  7  1.63026e-05
  8  8.10712e-07
  9  4.08442e-05
  10  3.33056e-05
  11  1.37309e-05
  12  6.49434e-06
  13  7.31675e-07
  14  4.42074e-06
  15  35.902
  16  8.86244e-07
  17  8.25545e-05
  18  0.550947
  19  0.000286244
  20  36.8975
  21  3.41898e-06
  22  1.69744
  23  6.9876
  24  17.3269
  25  59.128
  26  1.15701e-05
  27  29.8741
  28  12.1482
  29  0.318693
  30  48.6211
  31  0.258462
  32  0.192447
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.017e+00  5.509e-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.267e-01  1.924e-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.515e+00  2.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.45
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.12e-07 +/- 6.05e-08
Energy Flux (Fixed Index): 2.66e-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) = 5432.90384072
delta logL = 0.801096266846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5432.90024206
delta logL = 0.804694927316

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .95150       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5620       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4213       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67717       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=   5432.900     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .95131        6.7762        .66961E-02    .44243E-03
   2  alpha         3.5631        3.3668        .43701        .14238E-04
   3  Normalizat    1.4213        .96806E-01    .57828E-01    .54380E-05
   4  Prefactor     .67715        .79768E-01    .62500E-01    .20967E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.951306
  alpha      = 3.56309
  Normalizat = 1.42134
  Prefactor  = 0.677154
 **********
 **   18 **HESSE 
 **********

 FCN=   5432.900     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .12E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .95131        .55287        .29878E-04   -1.5513    
   2  alpha         3.5631        .83050        .18997E-02    .43922    
   3  Normalizat    1.4213        .26227        .25572E-03   -.80014    
   4  Prefactor     .67715        .19728        .27649E-03   -1.0443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15708e-13
Minuit parameter uncertainties:
  1  0.552872
  2  0.850374
  3  0.262522
  4  0.197483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706607': 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) = 5432.90024077
delta logL = 0.80469622189

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  9.513e-01  5.529e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  3.563e+00  8.504e-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:  6.772e-01  1.975e-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.421e+00  2.625e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.31
Ra Dec: 187.268 2.045
Photon Index (Free Index): 3.56 +/- 0.85
Photon Flux (Free Index): 1.90e-07 +/- 9.61e-08
Energy Flux (Free Index): 3.13e-05 +/- 1.40e-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/706607/cmap_HighResolution_355968001_356227201_4FGL_J1229.0+0202_daily_bin450.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.12e-07', energy_flux2='3.13e-05', photon_flux_error='6.05e-08', dlogl='8.05e-01', energy_flux='2.66e-05', photon_flux2='1.90e-07', job_status='DONE', time_completed='2021-09-05 19:05:52.669238', photon_index_error2='0.85', photon_index2='3.56', ts='6.45', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='1.40e-05', EG='1.52', time_epoch_completed='1630893952.67', return_code='0', job_id='706607', GAL2='0.68', EG2='1.42', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='9.61e-08', ts2='8.31', photon_index='2.61' WHERE bin_id='450' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:05:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 706607: <4FGL_J1229.0+0202_daily_bin450> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin450> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 18:50:31 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:50:32 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:50:32 2021
Terminated at Sun Sep  5 19:05:53 2021
Results reported at Sun Sep  5 19:05:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin450 187.268 2.0454 355968001 356227201 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 :                                   735.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            922 sec.

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

