/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 57 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 = 7427
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1229.0+0202_daily_bin979
RA = 187.268, Dec = 2.0454
tmin = 493084801, tmax = 493344001
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='710963', job_status='RUN', time_executed='2021-09-05 19:07:17.551986', time_epoch_executed='1630894037.55' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='979'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/710963

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/710963/ft1_4FGL_J1229.0+0202_daily_bin979.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/710963/ft2_4FGL_J1229.0+0202_daily_bin979.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/710963/ft1_4FGL_J1229.0+0202_daily_bin979.fits outfile=/scratch/kocevski/710963/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin979.fits ra=187.268 dec=2.0454 rad=12.0 tmin=493084801.0 tmax=493344001.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.59
user 3.34
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/710963/ft1_filtered_4FGL_J1229.0+0202_daily_bin979.fits" evtable="EVENTS" scfile=/scratch/kocevski/710963/ft2_4FGL_J1229.0+0202_daily_bin979.fits sctable="SC_DATA" outfile=/scratch/kocevski/710963/ltcube_493084801_493344001_4FGL_J1229.0+0202_daily_bin979.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/710963/ft2_4FGL_J1229.0+0202_daily_bin979.fits
.....................!
real 12.02
user 11.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/710963/ft1_filtered_4FGL_J1229.0+0202_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/710963/ft2_4FGL_J1229.0+0202_daily_bin979.fits sctable="SC_DATA" expcube=/scratch/kocevski/710963/ltcube_493084801_493344001_4FGL_J1229.0+0202_daily_bin979.fits outfile=/scratch/kocevski/710963/expmap_493084801_493344001_4FGL_J1229.0+0202_daily_bin979.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/710963/ltcube_493084801_493344001_4FGL_J1229.0+0202_daily_bin979.fits
.....................!
real 190.62
user 185.30
sys 4.94

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/710963/ft1_filtered_4FGL_J1229.0+0202_daily_bin979.fits scfile=/scratch/kocevski/710963/ft2_4FGL_J1229.0+0202_daily_bin979.fits outfile=/scratch/kocevski/710963/cmap_493084801_493344001_4FGL_J1229.0+0202_daily_bin979.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.61
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.520       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.493       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3200       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.827       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .67131E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8013       1.0000         .10000E-03   10000.    
    14 'norm      '    9.2803       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.076       1.0000         .10000E-03   10000.    
    18 'norm      '    1.0353       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.437       1.0000         .10000E-03   10000.    
    22 'norm      '    3.7622       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14614E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    79.679       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.6442       1.0000         .10000E-03   10000.    
    27 'norm      '    26.793       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .43151       1.0000         .10000E-03   10000.    
    30 'Prefactor '    21.383       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2478       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .90368       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=   4991.786     FROM MIGRAD    STATUS=CONVERGED    846 CALLS     4367 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.951       -.58798E-06** at limit **
   2  Prefactor     22.489        69.782        .52238E-05   -.42901E-06
   3  Prefactor     .10000E-03    4.8771       -.74081E-07** at limit **
   4  Prefactor     42.488        51.050        .53026E-06    .26955E-06
   5  Prefactor     2.3216        8.7414        .56145E-05   -.69713E-05
   6  Prefactor     24.829        19.441       -.78858E-07    .11052E-04
   7  Prefactor     .10000E-03    68.333       -.35946E-05** at limit **
   8  Prefactor     .10000E-03    17.557        .83183E-06** at limit **
   9  Prefactor     .10000E-03    54.098       -.40580E-06** at limit **
  10  Prefactor     .10001E-03    13.768       -.10012E-05** at limit **
  11  Prefactor     .10000E-03    43.749        .13801E-05** at limit **
  12  Prefactor     .10000E-03    4.1446        .43747E-08** at limit **
  13  norm          1.8019        2.4173        .75987E-09    .18386E-04
  14  norm          9.2791        4.6229       -.93688E-07   -.58778E-04
  15  Prefactor     .10000E-03    11.481        .35077E-06** at limit **
  16  norm          .10000E-03    99.758        .11160E-05** at limit **
  17  Prefactor     40.044        94.834        .47311E-05   -.13922E-05
  18  norm          1.0352        .65454        .94458E-08   -.56365E-04
  19  Prefactor     .10000E-03    6.0105       -.40941E-07** at limit **
  20  Prefactor     .10000E-03    9.7812       -.69425E-07** at limit **
  21  Prefactor     19.436        11.600        .62345E-07   -.27114E-05
  22  norm          3.7619        1.8827        .19971E-07   -.65880E-05
  23  Prefactor     .10000E-03    6.3924        .35305E-06** at limit **
  24  Prefactor     .10000E-03    23.396       -.10031E-05** at limit **
  25  Prefactor     79.672        54.373        .70284E-06    .11913E-05
  26  Prefactor     3.6510        309.33       -.45171E-05   -.10241E-04
  27  norm          26.790        28.431        .37291E-06   -.28725E-05
  28  Prefactor     .10000E-03    45.919        .21209E-05** at limit **
  29  norm          .43148        .24722        .36702E-07    .20881E-03
  30  Prefactor     21.451        57.928       -.10453E-04   -.23309E-05
  31  Normalizat    1.2482        .24328       -.34095E-06    .21202E-04
  32  Prefactor     .90342        .18446       -.13491E-06   -.13006E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 22.4889
  Prefactor  = 0.0001
  Prefactor  = 42.4875
  Prefactor  = 2.32162
  Prefactor  = 24.8291
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.80186
  norm       = 9.2791
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 40.0443
  norm       = 1.03519
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.4358
  norm       = 3.76191
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 79.672
  Prefactor  = 3.65103
  norm       = 26.7898
  Prefactor  = 0.0001
  norm       = 0.431475
  Prefactor  = 21.4513
  Normalizat = 1.24819
  Prefactor  = 0.903424
 **********
 **   18 **HESSE 
 **********

 FCN=   4991.786     FROM HESSE     STATUS=OK           657 CALLS     5024 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.489        69.943        .84406E-04   -1.4759    
   3  Prefactor     .10000E-03    4.8901        .15238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     42.488        51.047        .61498E-04   -1.4403    
   5  Prefactor     2.3216        8.7610        .13465E-02   -1.5403    
   6  Prefactor     24.829        19.453        .80394E-04   -1.4711    
   7  Prefactor     .10000E-03    68.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    54.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    102.66        .49957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    44.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.1492        .14045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8019        2.3922        .12250E-03   -1.5439    
  14  norm          9.2791        4.6238        .97398E-04   -1.5099    
  15  Prefactor     .10000E-03    11.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    100.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     40.044        94.804        .63318E-04   -1.4442    
  18  norm          1.0352        .63776        .41156E-04   -1.5504    
  19  Prefactor     .10000E-03    6.0322        .16916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.7840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.436        11.550        .90848E-04   -1.4826    
  22  norm          3.7619        1.8805        .65420E-04   -1.5320    
  23  Prefactor     .10000E-03    27.414        .34060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    23.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     79.672        54.417        .44992E-04   -1.3920    
  26  Prefactor     3.6510        306.04        .21162E-03   -1.5326    
  27  norm          26.790        28.236        .77394E-04   -1.4672    
  28  Prefactor     .10000E-03    46.284        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .43148        .24656        .24754E-04   -1.5577    
  30  Prefactor     21.451        57.870        .86618E-04   -1.4781    
  31  Normalizat    1.2482        .28388        .27596E-03   -.85127    
  32  Prefactor     .90342        .21412        .25754E-03   -.96022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28383e-10
Minuit parameter uncertainties:
  1  1.58798e-06
  2  70.1994
  3  5.1613e-06
  4  51.0992
  5  8.76585
  6  19.4584
  7  1.35802e-05
  8  1.77357e-06
  9  8.65182e-05
  10  0.00169099
  11  7.83772e-05
  12  1.97928e-07
  13  2.39232
  14  4.62399
  15  4.9076e-06
  16  4.3218e-05
  17  95.1641
  18  0.637766
  19  1.34314e-06
  20  2.08285e-08
  21  11.5518
  22  1.88057
  23  0.00038564
  24  1.16049e-06
  25  54.4508
  26  67.211
  27  28.2502
  28  0.000255745
  29  0.24656
  30  58.0219
  31  0.284235
  32  0.214318
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.035e+00  6.378e-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.034e-01  2.143e-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.248e+00  2.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.23
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 7.00e-08
Energy Flux (Fixed Index): 2.70e-05 +/- 1.67e-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) = 4991.35481004
delta logL = 0.431660363455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4991.35199735
delta logL = 0.434473050086

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .87412       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4403       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1913       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93848       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=   4991.352     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      229 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .87361        8.6080        .75335E-02    .60709E-03
   2  alpha         3.4422        2.9352        .45618        .15844E-04
   3  Normalizat    1.1912        .91399E-01    .63547E-01    .13062E-04
   4  Prefactor     .93859        .80172E-01    .45494E-01    .75950E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.873609
  alpha      = 3.44221
  Normalizat = 1.19116
  Prefactor  = 0.938589
 **********
 **   18 **HESSE 
 **********

 FCN=   4991.352     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .87361        .71421        .33741E-04   -1.5521    
   2  alpha         3.4422        1.0885        .20478E-01    .38643    
   3  Normalizat    1.1912        .27147        .28109E-03   -.86876    
   4  Prefactor     .93859        .21632        .25333E-03   -.94805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.66723e-10
Minuit parameter uncertainties:
  1  0.714217
  2  1.13319
  3  0.271791
  4  0.216518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/710963': 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) = 4991.35199546
delta logL = 0.434474944032

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  8.736e-01  7.142e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  3.442e+00  1.133e+00  0.000e+00  5.000e+00 ( 1.000e+00)
337         beta:  9.652e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  3.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.386e-01  2.165e-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.191e+00  2.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.30
Ra Dec: 187.268 2.045
Photon Index (Free Index): 3.44 +/- 1.13
Photon Flux (Free Index): 1.60e-07 +/- 9.10e-08
Energy Flux (Free Index): 2.71e-05 +/- 1.50e-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/710963/cmap_HighResolution_493084801_493344001_4FGL_J1229.0+0202_daily_bin979.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='2.71e-05', photon_flux_error='7.00e-08', dlogl='4.34e-01', energy_flux='2.70e-05', photon_flux2='1.60e-07', job_status='DONE', time_completed='2021-09-05 19:21:01.654701', photon_index_error2='1.13', photon_index2='3.44', ts='4.23', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.50e-05', EG='1.25', time_epoch_completed='1630894861.65', return_code='0', job_id='710963', GAL2='0.94', EG2='1.19', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='9.10e-08', ts2='5.30', photon_index='2.61' WHERE bin_id='979' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:21:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 710963: <4FGL_J1229.0+0202_daily_bin979> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin979> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep  5 19:05:24 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 19:05:27 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:05:27 2021
Terminated at Sun Sep  5 19:21:02 2021
Results reported at Sun Sep  5 19:21:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin979 187.268 2.0454 493084801 493344001 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 :                                   712.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            938 sec.

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

