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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin817
RA = 187.268, Dec = 2.0454
tmin = 451094401, tmax = 451353601
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='709519', job_status='RUN', time_executed='2021-09-05 19:02:46.624288', time_epoch_executed='1630893766.62' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='817'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/709519

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/709519/ft1_4FGL_J1229.0+0202_daily_bin817.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/709519/ft2_4FGL_J1229.0+0202_daily_bin817.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/709519/ft1_4FGL_J1229.0+0202_daily_bin817.fits outfile=/scratch/kocevski/709519/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin817.fits ra=187.268 dec=2.0454 rad=12.0 tmin=451094401.0 tmax=451353601.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.40
user 3.19
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/709519/ft1_filtered_4FGL_J1229.0+0202_daily_bin817.fits" evtable="EVENTS" scfile=/scratch/kocevski/709519/ft2_4FGL_J1229.0+0202_daily_bin817.fits sctable="SC_DATA" outfile=/scratch/kocevski/709519/ltcube_451094401_451353601_4FGL_J1229.0+0202_daily_bin817.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/709519/ft2_4FGL_J1229.0+0202_daily_bin817.fits
.....................!
real 11.96
user 11.57
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/709519/ft1_filtered_4FGL_J1229.0+0202_daily_bin817.fits evtable="EVENTS" scfile=/scratch/kocevski/709519/ft2_4FGL_J1229.0+0202_daily_bin817.fits sctable="SC_DATA" expcube=/scratch/kocevski/709519/ltcube_451094401_451353601_4FGL_J1229.0+0202_daily_bin817.fits outfile=/scratch/kocevski/709519/expmap_451094401_451353601_4FGL_J1229.0+0202_daily_bin817.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/709519/ltcube_451094401_451353601_4FGL_J1229.0+0202_daily_bin817.fits
.....................!
real 191.46
user 186.80
sys 4.22

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/709519/ft1_filtered_4FGL_J1229.0+0202_daily_bin817.fits scfile=/scratch/kocevski/709519/ft2_4FGL_J1229.0+0202_daily_bin817.fits outfile=/scratch/kocevski/709519/cmap_451094401_451353601_4FGL_J1229.0+0202_daily_bin817.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.74
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/709519/ft1_filtered_4FGL_J1229.0+0202_daily_bin817.fits scfile=/scratch/kocevski/709519/ft2_4FGL_J1229.0+0202_daily_bin817.fits outfile=/scratch/kocevski/709519/cmap_HighResolution_451094401_451353601_4FGL_J1229.0+0202_daily_bin817.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.94
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0256       1.0000         .10000E-03   10000.    
     2 'Prefactor '    67.928       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.6093       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.260       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.1642       1.0000         .10000E-03   10000.    
    14 'norm      '    2.6925       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.4519       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.633       1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.807       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .47535       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.076       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    56.307       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    23.138       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .18570       1.0000         .10000E-03   10000.    
    30 'Prefactor '    12.260       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1780       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .99596       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=   5781.365     FROM MIGRAD    STATUS=CONVERGED    826 CALLS     4293 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0253        15.220        .18801E-07   -.22956E-05
   2  Prefactor     67.957        110.91       -.74626E-07    .66418E-05
   3  Prefactor     .10000E-03    3.1365        .92051E-07** at limit **
   4  Prefactor     .10000E-03    22.530       -.29446E-08** at limit **
   5  Prefactor     .10000E-03    3.0664        .72031E-07** at limit **
   6  Prefactor     8.6108        17.081        .14018E-06   -.71414E-05
   7  Prefactor     .10000E-03    22.185        .36178E-07** at limit **
   8  Prefactor     .10000E-03    13.522        .14221E-07** at limit **
   9  Prefactor     .10000E-03    27.351        .30151E-06** at limit **
  10  Prefactor     27.261        21.862       -.25196E-07    .46779E-05
  11  Prefactor     .10000E-03    22.243        .11468E-06** at limit **
  12  Prefactor     .10000E-03    4.7999        .20830E-07** at limit **
  13  norm          5.1639        3.1294        .93472E-08   -.57240E-05
  14  norm          2.6932        2.8648        .76767E-07   -.88775E-04
  15  Prefactor     .10000E-03    9.9143        .42206E-07** at limit **
  16  norm          .10000E-03    19.197        .29765E-07** at limit **
  17  Prefactor     .10000E-03    47.445        .76431E-07** at limit **
  18  norm          1.4522        .62561       -.20934E-07    .43009E-04
  19  Prefactor     13.633        8.8041       -.13123E-07    .62169E-05
  20  Prefactor     39.809        30.449       -.87680E-08    .27586E-05
  21  Prefactor     .10000E-03    3.9182        .27983E-07** at limit **
  22  norm          .47350        1.3357        .11916E-06   -.20896E-03
  23  Prefactor     13.078        9.6244        .37951E-06   -.37534E-04
  24  Prefactor     .10000E-03    28.654       -.66469E-07** at limit **
  25  Prefactor     56.331        65.313        .39958E-05    .50227E-04
  26  Prefactor     .10000E-03    11.349       -.84364E-08** at limit **
  27  norm          23.133        30.441        .21042E-06    .31179E-04
  28  Prefactor     .10000E-03    5.7710        .40459E-07** at limit **
  29  norm          .18560        .26633       -.48667E-06    .24335E-03
  30  Prefactor     12.129        60.706        .14564E-05    .17023E-05
  31  Normalizat    1.1775        .22720       -.47357E-06    .11001E-03
  32  Prefactor     .99639        .17383        .35307E-06    .44449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.0253
  Prefactor  = 67.9574
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.61078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.2607
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.16386
  norm       = 2.69321
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.45219
  Prefactor  = 13.6333
  Prefactor  = 39.8087
  Prefactor  = 0.0001
  norm       = 0.4735
  Prefactor  = 13.0775
  Prefactor  = 0.0001
  Prefactor  = 56.3306
  Prefactor  = 0.0001
  norm       = 23.1333
  Prefactor  = 0.0001
  norm       = 0.1856
  Prefactor  = 12.1287
  Normalizat = 1.17751
  Prefactor  = 0.996386
 **********
 **   18 **HESSE 
 **********

 FCN=   5781.365     FROM HESSE     STATUS=OK           659 CALLS     4952 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0253        15.215        .13341E-03   -1.5107    
   2  Prefactor     67.957        111.72        .48700E-04   -1.4057    
   3  Prefactor     .10000E-03    3.1391        .13149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.0745        .13001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.6108        17.089        .13662E-03   -1.5121    
   7  Prefactor     .10000E-03    22.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.261        21.855        .76729E-04   -1.4663    
  11  Prefactor     .10000E-03    22.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.8054        .16260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.1639        3.1254        .99924E-04   -1.5253    
  14  norm          2.6932        2.8478        .12473E-03   -1.5380    
  15  Prefactor     .10000E-03    9.9167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    19.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    47.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.4522        .61791        .35981E-04   -1.5467    
  19  Prefactor     13.633        8.8036        .10848E-03   -1.4969    
  20  Prefactor     39.809        30.478        .63530E-04   -1.4445    
  21  Prefactor     .10000E-03    3.9244        .14697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .47350        1.7163        .13293E-02   -1.5570    
  23  Prefactor     13.078        9.6179        .55385E-03   -1.4985    
  24  Prefactor     .10000E-03    28.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     56.331        65.669        .53459E-04   -1.4205    
  26  Prefactor     .10000E-03    11.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          23.133        30.443        .83273E-04   -1.4746    
  28  Prefactor     .10000E-03    5.7814        .17838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .18560        .26787        .41392E-03   -1.5622    
  30  Prefactor     12.129        61.082        .11441E-03   -1.5011    
  31  Normalizat    1.1775        .26511        .28533E-03   -.87301    
  32  Prefactor     .99639        .20265        .24839E-03   -.92850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.85833e-09
Minuit parameter uncertainties:
  1  15.221
  2  112.066
  3  4.47642e-06
  4  3.96909e-06
  5  3.45675e-06
  6  17.0985
  7  6.19479e-06
  8  3.33027e-06
  9  5.95685e-05
  10  21.8618
  11  2.14904e-05
  12  1.22335e-06
  13  3.12548
  14  2.84794
  15  8.1282e-07
  16  8.25128e-06
  17  3.7178e-05
  18  0.617913
  19  8.80443
  20  30.4897
  21  2.42504e-06
  22  1.71644
  23  9.61903
  24  8.2253e-06
  25  65.7537
  26  9.59969e-06
  27  30.4638
  28  2.29094e-06
  29  0.267867
  30  54.5256
  31  0.265409
  32  0.202808
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.452e+00  6.179e-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:  9.964e-01  2.028e-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.178e+00  2.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.08
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.60e-07 +/- 6.78e-08
Energy Flux (Fixed Index): 3.79e-05 +/- 1.61e-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) = 5781.31318307
delta logL = 0.0519152631387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5781.31050196
delta logL = 0.0545963777968

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4501       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7987       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1566       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0087       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=   5781.311     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      202 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4501        11.323        .78191E-02    .34786E-03
   2  alpha         2.7987        3.1859        .36538        .13645E-04
   3  Normalizat    1.1566        .16547        .64967E-01    .52529E-04
   4  Prefactor     1.0087        .19187        .43528E-01   -.69152E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.45008
  alpha      = 2.7987
  Normalizat = 1.15656
  Prefactor  = 1.00867
 **********
 **   18 **HESSE 
 **********

 FCN=   5781.311     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4501        .58990        .34751E-04   -1.5467    
   2  alpha         2.7987        .56585        .14633E-01    .11977    
   3  Normalizat    1.1566        .25752        .28739E-03   -.87956    
   4  Prefactor     1.0087        .20402        .24706E-03   -.92441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51838e-11
Minuit parameter uncertainties:
  1  0.589903
  2  0.570869
  3  0.257805
  4  0.204176
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/709519': 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) = 5781.31050196
delta logL = 0.0545963778195

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.450e+00  5.899e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.799e+00  5.709e-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.009e+00  2.042e-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.157e+00  2.578e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.24
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.80 +/- 0.57
Photon Flux (Free Index): 1.76e-07 +/- 8.30e-08
Energy Flux (Free Index): 3.77e-05 +/- 1.52e-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/709519/cmap_HighResolution_451094401_451353601_4FGL_J1229.0+0202_daily_bin817.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.60e-07', energy_flux2='3.77e-05', photon_flux_error='6.78e-08', dlogl='5.46e-02', energy_flux='3.79e-05', photon_flux2='1.76e-07', job_status='DONE', time_completed='2021-09-05 19:15:33.646236', photon_index_error2='0.57', photon_index2='2.80', ts='13.08', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.52e-05', EG='1.18', time_epoch_completed='1630894533.65', return_code='0', job_id='709519', GAL2='1.01', EG2='1.16', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='8.30e-08', ts2='13.24', photon_index='2.61' WHERE bin_id='817' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:15:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 709519: <4FGL_J1229.0+0202_daily_bin817> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin817> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 19:00:20 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 19:00:23 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:23 2021
Terminated at Sun Sep  5 19:15:34 2021
Results reported at Sun Sep  5 19:15:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin817 187.268 2.0454 451094401 451353601 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 :                                   761.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            914 sec.

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

