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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin321
RA = 187.268, Dec = 2.0454
tmin = 322531201, tmax = 322790401
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='705396', job_status='RUN', time_executed='2021-09-05 18:46:32.549309', time_epoch_executed='1630892792.55' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='321'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705396

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705396/ft1_4FGL_J1229.0+0202_daily_bin321.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705396/ft2_4FGL_J1229.0+0202_daily_bin321.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705396/ft1_4FGL_J1229.0+0202_daily_bin321.fits outfile=/scratch/kocevski/705396/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin321.fits ra=187.268 dec=2.0454 rad=12.0 tmin=322531201.0 tmax=322790401.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 9.02
user 8.07
sys 0.31

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705396/ft1_filtered_4FGL_J1229.0+0202_daily_bin321.fits evtable="EVENTS" scfile=/scratch/kocevski/705396/ft2_4FGL_J1229.0+0202_daily_bin321.fits sctable="SC_DATA" expcube=/scratch/kocevski/705396/ltcube_322531201_322790401_4FGL_J1229.0+0202_daily_bin321.fits outfile=/scratch/kocevski/705396/expmap_322531201_322790401_4FGL_J1229.0+0202_daily_bin321.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/705396/ltcube_322531201_322790401_4FGL_J1229.0+0202_daily_bin321.fits
.....................!
real 191.42
user 185.04
sys 5.03

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/705396/ft1_filtered_4FGL_J1229.0+0202_daily_bin321.fits scfile=/scratch/kocevski/705396/ft2_4FGL_J1229.0+0202_daily_bin321.fits outfile=/scratch/kocevski/705396/cmap_322531201_322790401_4FGL_J1229.0+0202_daily_bin321.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.57
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/705396/ft1_filtered_4FGL_J1229.0+0202_daily_bin321.fits scfile=/scratch/kocevski/705396/ft2_4FGL_J1229.0+0202_daily_bin321.fits outfile=/scratch/kocevski/705396/cmap_HighResolution_322531201_322790401_4FGL_J1229.0+0202_daily_bin321.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.55
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.023       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    64.863       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.008       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.623       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15614E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .27107       1.0000         .10000E-03   10000.    
    14 'norm      '    2.1974       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    32.708       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.9193       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.594       1.0000         .10000E-03   10000.    
    20 'Prefactor '    111.06       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.9427       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .50923E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.751       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10121E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .13106E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.2423       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .91186       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2838       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=   5178.280     FROM MIGRAD    STATUS=CONVERGED    879 CALLS     4383 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.433        .16029E-06** at limit **
   2  Prefactor     .10000E-03    82.043        .14292E-05** at limit **
   3  Prefactor     .10000E-03    10.053       -.50944E-06** at limit **
   4  Prefactor     .10000E-03    42.760        .20560E-06** at limit **
   5  Prefactor     .10000E-03    4.4924       -.17775E-06** at limit **
   6  Prefactor     16.020        19.469       -.15341E-06   -.14628E-04
   7  Prefactor     .10000E-03    59.580       -.13121E-05** at limit **
   8  Prefactor     64.860        58.961        .67932E-07   -.93275E-05
   9  Prefactor     .10000E-03    13.757       -.10065E-06** at limit **
  10  Prefactor     24.043        36.151       -.21050E-05   -.61987E-04
  11  Prefactor     10.618        24.737        .15448E-06    .67339E-04
  12  Prefactor     .10000E-03    61.884       -.13131E-04** at limit **
  13  norm          .27414        4.1355        .13816E-05   -.36799E-04
  14  norm          2.1966        3.8611       -.11800E-05    .29740E-03
  15  Prefactor     .10000E-03    22.363       -.49213E-06** at limit **
  16  norm          32.713        41.401        .87113E-06    .37274E-04
  17  Prefactor     .10000E-03    196.73       -.66341E-05** at limit **
  18  norm          1.9199        .78630       -.65713E-07    .70288E-03
  19  Prefactor     24.593        15.260       -.74084E-07    .24255E-04
  20  Prefactor     111.06        49.629       -.56025E-07    .12463E-04
  21  Prefactor     .10000E-03    7.1267       -.24194E-06** at limit **
  22  norm          7.9419        2.6563       -.10839E-07    .52546E-03
  23  Prefactor     .10000E-03    444.13       -.38601E-04** at limit **
  24  Prefactor     25.736        47.298        .16137E-05    .33112E-04
  25  Prefactor     .10000E-03    71.047       -.28990E-06** at limit **
  26  Prefactor     .10000E-03    27.196       -.63783E-06** at limit **
  27  norm          .10000E-03    113.47       -.86631E-06** at limit **
  28  Prefactor     .10000E-03    40.380       -.13519E-05** at limit **
  29  norm          1.2421        .38305        .68754E-07    .83567E-03
  30  Prefactor     .10000E-03    61.054       -.14228E-05** at limit **
  31  Normalizat    .91208        .26216        .14612E-05    .67972E-04
  32  Prefactor     1.2838        .20757        .57089E-06    .15045E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.02
  Prefactor  = 0.0001
  Prefactor  = 64.8596
  Prefactor  = 0.0001
  Prefactor  = 24.0433
  Prefactor  = 10.6183
  Prefactor  = 0.0001
  norm       = 0.274135
  norm       = 2.19656
  Prefactor  = 0.0001
  norm       = 32.7127
  Prefactor  = 0.000100001
  norm       = 1.91988
  Prefactor  = 24.5926
  Prefactor  = 111.059
  Prefactor  = 0.0001
  norm       = 7.94192
  Prefactor  = 0.0001
  Prefactor  = 25.7362
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.24211
  Prefactor  = 0.0001
  Normalizat = 0.912081
  Prefactor  = 1.28384
 **********
 **   18 **HESSE 
 **********

 FCN=   5178.280     FROM HESSE     STATUS=OK           659 CALLS     5042 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    82.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    42.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.5089        .14901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.020        19.469        .10006E-03   -1.4907    
   7  Prefactor     .10000E-03    59.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     64.860        58.974        .49830E-04   -1.4096    
   9  Prefactor     .10000E-03    13.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.043        36.017        .81752E-04   -1.4727    
  11  Prefactor     10.618        24.694        .12293E-03   -1.5056    
  12  Prefactor     .10000E-03    61.764        .49089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .27414        4.2022        .20292E-02   -1.5603    
  14  norm          2.1966        3.8225        .16512E-03   -1.5412    
  15  Prefactor     .10000E-03    22.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          32.713        41.300        .70064E-04   -1.4563    
  17  Prefactor     .10000E-03    197.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.9199        .78294        .37313E-04   -1.5431    
  19  Prefactor     24.593        15.261        .80774E-04   -1.4716    
  20  Prefactor     111.06        49.691        .38169E-04   -1.3596    
  21  Prefactor     .10000E-03    7.1547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.9419        2.6569        .63763E-04   -1.5144    
  23  Prefactor     .10000E-03    19.462        .63069E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     25.736        47.417        .78941E-04   -1.4693    
  25  Prefactor     .10000E-03    71.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    27.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    114.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    42.091        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.2421        .38324        .23670E-04   -1.5485    
  30  Prefactor     .10000E-03    61.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .91208        .30810        .34685E-03   -.96037    
  32  Prefactor     1.2838        .24591        .24718E-03   -.83789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8565e-08
Minuit parameter uncertainties:
  1  2.58078e-05
  2  0.000232148
  3  1.01337e-05
  4  5.11166e-07
  5  3.04683e-06
  6  19.4764
  7  0.00014355
  8  59.0272
  9  1.34951e-05
  10  36.0495
  11  24.7176
  12  0.000208148
  13  2.14639
  14  3.82295
  15  1.35643e-05
  16  41.336
  17  0.00108912
  18  0.782943
  19  15.2631
  20  49.7094
  21  1.43484e-06
  22  2.65691
  23  6.86289e-05
  24  47.4864
  25  0.000189274
  26  7.10512e-05
  27  0.000368919
  28  0.000382864
  29  0.383242
  30  0.000189874
  31  0.308698
  32  0.246137
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.920e+00  7.829e-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.284e+00  2.461e-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.121e-01  3.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.78
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 2.11e-07 +/- 8.59e-08
Energy Flux (Fixed Index): 5.02e-05 +/- 2.05e-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) = 5177.82081257
delta logL = 0.458815648545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5177.81419769
delta logL = 0.465430532473

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8373       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1285       1.0000          .0000       5.0000    
     3 'Normalizat'    .83770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3268       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=   5177.814     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8370        10.462        .74652E-02    .24715E-03
   2  alpha         3.1287        3.6756        .31844        .89696E-05
   3  Normalizat    .83785        .14881        .81236E-01    .19928E-04
   4  Prefactor     1.3267        .14782        .55122E-01    .80235E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.83703
  alpha      = 3.12869
  Normalizat = 0.83785
  Prefactor  = 1.32668
 **********
 **   18 **HESSE 
 **********

 FCN=   5177.814     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .12E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8370        .76093        .33182E-04   -1.5437    
   2  alpha         3.1287        .57699        .13562E-01    .25421    
   3  Normalizat    .83785        .30653        .35966E-03   -.98680    
   4  Prefactor     1.3267        .24848        .24371E-03   -.82517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20487e-13
Minuit parameter uncertainties:
  1  0.76093
  2  0.582607
  3  0.307162
  4  0.248699
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705396': 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) = 5177.81419749
delta logL = 0.465430725531

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.837e+00  7.609e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  3.129e+00  5.826e-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.327e+00  2.487e-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:  8.379e-01  3.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.06
Ra Dec: 187.268 2.045
Photon Index (Free Index): 3.13 +/- 0.58
Photon Flux (Free Index): 2.72e-07 +/- 1.10e-07
Energy Flux (Free Index): 5.08e-05 +/- 1.86e-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/705396/cmap_HighResolution_322531201_322790401_4FGL_J1229.0+0202_daily_bin321.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.11e-07', energy_flux2='5.08e-05', photon_flux_error='8.59e-08', dlogl='4.65e-01', energy_flux='5.02e-05', photon_flux2='2.72e-07', job_status='DONE', time_completed='2021-09-05 18:59:16.190774', photon_index_error2='0.58', photon_index2='3.13', ts='12.78', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='1.86e-05', EG='0.91', time_epoch_completed='1630893556.19', return_code='0', job_id='705396', GAL2='1.33', EG2='0.84', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='1.10e-07', ts2='14.06', photon_index='2.61' WHERE bin_id='321' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:59:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 705396: <4FGL_J1229.0+0202_daily_bin321> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin321> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 18:46:15 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:46:17 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:46:17 2021
Terminated at Sun Sep  5 18:59:16 2021
Results reported at Sun Sep  5 18:59:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin321 187.268 2.0454 322531201 322790401 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 :                                   752.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            781 sec.

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

