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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin727
RA = 187.268, Dec = 2.0454
tmin = 427766401, tmax = 428025601
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='708362', job_status='RUN', time_executed='2021-09-05 18:56:21.585896', time_epoch_executed='1630893381.59' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='727'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708362

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708362/ft1_4FGL_J1229.0+0202_daily_bin727.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708362/ft2_4FGL_J1229.0+0202_daily_bin727.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708362/ft1_4FGL_J1229.0+0202_daily_bin727.fits outfile=/scratch/kocevski/708362/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin727.fits ra=187.268 dec=2.0454 rad=12.0 tmin=427766401.0 tmax=428025601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.45
user 5.16
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708362/ft1_filtered_4FGL_J1229.0+0202_daily_bin727.fits" evtable="EVENTS" scfile=/scratch/kocevski/708362/ft2_4FGL_J1229.0+0202_daily_bin727.fits sctable="SC_DATA" outfile=/scratch/kocevski/708362/ltcube_427766401_428025601_4FGL_J1229.0+0202_daily_bin727.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/708362/ft2_4FGL_J1229.0+0202_daily_bin727.fits
.....................!
real 11.90
user 11.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708362/ft1_filtered_4FGL_J1229.0+0202_daily_bin727.fits evtable="EVENTS" scfile=/scratch/kocevski/708362/ft2_4FGL_J1229.0+0202_daily_bin727.fits sctable="SC_DATA" expcube=/scratch/kocevski/708362/ltcube_427766401_428025601_4FGL_J1229.0+0202_daily_bin727.fits outfile=/scratch/kocevski/708362/expmap_427766401_428025601_4FGL_J1229.0+0202_daily_bin727.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/708362/ltcube_427766401_428025601_4FGL_J1229.0+0202_daily_bin727.fits
.....................!
real 191.29
user 185.81
sys 5.10

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708362/ft1_filtered_4FGL_J1229.0+0202_daily_bin727.fits scfile=/scratch/kocevski/708362/ft2_4FGL_J1229.0+0202_daily_bin727.fits outfile=/scratch/kocevski/708362/cmap_HighResolution_427766401_428025601_4FGL_J1229.0+0202_daily_bin727.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3159       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    73.829       1.0000         .10000E-03   10000.    
    10 'Prefactor '    60.553       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.2864       1.0000         .10000E-03   10000.    
    14 'norm      '    5.4276       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4294       1.0000         .10000E-03   10000.    
    16 'norm      '    .11415E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.7944       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.079       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.3441       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    40.848       1.0000         .10000E-03   10000.    
    25 'Prefactor '    23.021       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.8517       1.0000         .10000E-03   10000.    
    29 'norm      '    4.1750       1.0000         .10000E-03   10000.    
    30 'Prefactor '    67.169       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0078       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .95289       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=   5786.828     FROM MIGRAD    STATUS=CONVERGED    845 CALLS     4346 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.293       -.10046E-06** at limit **
   2  Prefactor     .10000E-03    88.730       -.23036E-05** at limit **
   3  Prefactor     1.3144        10.247        .10406E-04   -.45970E-03
   4  Prefactor     .10000E-03    23.196       -.25990E-07** at limit **
   5  Prefactor     .10000E-03    5.1219       -.58459E-06** at limit **
   6  Prefactor     .10000E-03    8.0630        .72050E-07** at limit **
   7  Prefactor     .10000E-03    60.009        .67351E-06** at limit **
   8  Prefactor     .10000E-03    14.867       -.23013E-06** at limit **
   9  Prefactor     73.812        60.996        .66528E-06    .12509E-04
  10  Prefactor     60.549        31.776       -.25030E-06   -.19582E-03
  11  Prefactor     .10000E-03    10.026       -.10137E-06** at limit **
  12  Prefactor     .10000E-03    14.381        .22196E-07** at limit **
  13  norm          3.2860        2.5504       -.30876E-06   -.14090E-02
  14  norm          5.4159        4.1188       -.11147E-05   -.28610E-02
  15  Prefactor     6.4264        40.579       -.17394E-06   -.29644E-04
  16  norm          .10001E-03    201.82        .39190E-05** at limit **
  17  Prefactor     .10000E-03    60.552        .73430E-06** at limit **
  18  norm          2.7940        .87428       -.70312E-07   -.47228E-02
  19  Prefactor     .10000E-03    3.8682        .23967E-07** at limit **
  20  Prefactor     17.077        19.242       -.52908E-07   -.13426E-04
  21  Prefactor     .10000E-03    4.0941        .50226E-07** at limit **
  22  norm          2.3440        2.0062        .45845E-07   -.41535E-03
  23  Prefactor     .10000E-03    2.9168        .35792E-07** at limit **
  24  Prefactor     40.840        41.567        .29441E-06   -.17542E-04
  25  Prefactor     23.029        49.530        .51768E-06    .25033E-04
  26  Prefactor     .10000E-03    21.717        .11822E-06** at limit **
  27  norm          .10000E-03    41.725        .82518E-07** at limit **
  28  Prefactor     9.8426        14.759       -.29625E-06   -.63451E-04
  29  norm          4.1749        .55734       -.13579E-07   -.11911E-02
  30  Prefactor     67.175        102.53        .81046E-06    .23380E-04
  31  Normalizat    1.0083        .26123        .25584E-05   -.36612E-04
  32  Prefactor     .95246        .19567       -.23956E-05   -.27576E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.31441
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.812
  Prefactor  = 60.5493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.28605
  norm       = 5.41586
  Prefactor  = 6.42644
  norm       = 0.000100007
  Prefactor  = 0.0001
  norm       = 2.79403
  Prefactor  = 0.0001
  Prefactor  = 17.0769
  Prefactor  = 0.0001
  norm       = 2.34396
  Prefactor  = 0.0001
  Prefactor  = 40.8402
  Prefactor  = 23.0291
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.84262
  norm       = 4.17486
  Prefactor  = 67.1751
  Normalizat = 1.0083
  Prefactor  = 0.95246
 **********
 **   18 **HESSE 
 **********

 FCN=   5786.828     FROM HESSE     STATUS=OK           643 CALLS     4989 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    88.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3144        10.728        .19197E-02   -1.5479    
   4  Prefactor     .10000E-03    23.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.1523        .16835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.0798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    60.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     73.812        61.400        .46727E-04   -1.3988    
  10  Prefactor     60.549        31.845        .51562E-04   -1.4150    
  11  Prefactor     .10000E-03    10.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2860        2.5584        .10346E-03   -1.5345    
  14  norm          5.4159        4.2793        .12892E-03   -1.5242    
  15  Prefactor     6.4264        40.636        .15829E-03   -1.5201    
  16  norm          .10001E-03    204.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    60.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.7940        .87869        .35950E-04   -1.5374    
  19  Prefactor     .10000E-03    3.8721        .14611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.077        19.249        .96914E-04   -1.4881    
  21  Prefactor     .10000E-03    4.1048        .15032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.3440        1.9941        .93861E-04   -1.5402    
  23  Prefactor     .10000E-03    2.9207        .12687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     40.840        41.568        .62719E-04   -1.4429    
  25  Prefactor     23.029        49.780        .83484E-04   -1.4748    
  26  Prefactor     .10000E-03    21.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    41.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     9.8426        14.883        .12767E-03   -1.5080    
  29  norm          4.1749        .56268        .18970E-04   -1.5299    
  30  Prefactor     67.175        102.79        .48972E-04   -1.4067    
  31  Normalizat    1.0083        .31318        .34110E-03   -.92753    
  32  Prefactor     .95246        .23151        .27438E-03   -.94331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71104e-09
Minuit parameter uncertainties:
  1  9.35894e-05
  2  0.000328458
  3  7.51164
  4  1.92484e-05
  5  0.00010017
  6  1.38177e-05
  7  0.000292612
  8  4.98731e-05
  9  61.4531
  10  31.8544
  11  2.21634e-05
  12  8.81188e-05
  13  2.55851
  14  4.27952
  15  32.3519
  16  0.00244106
  17  0.000224402
  18  0.878697
  19  3.19701e-06
  20  19.2561
  21  7.48221e-06
  22  1.99412
  23  4.97929e-06
  24  41.5976
  25  49.8697
  26  1.82933e-05
  27  0.000260122
  28  14.8884
  29  0.562682
  30  103.066
  31  0.313755
  32  0.231755
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  2.794e+00  8.787e-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.525e-01  2.318e-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.008e+00  3.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.22
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 3.07e-07 +/- 9.64e-08
Energy Flux (Fixed Index): 7.30e-05 +/- 2.30e-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) = 5786.63674715
delta logL = 0.191528120671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5786.63586779
delta logL = 0.192407486908

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7552       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8555       1.0000          .0000       5.0000    
     3 'Normalizat'    .96440       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97849       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=   5786.636     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7553        1.4472        .61308E-02    .18337E-03
   2  alpha         2.8554        .66450        .25267        .73576E-06
   3  Normalizat    .96439        .25175        .78493E-01    .16745E-04
   4  Prefactor     .97849        .19680        .45998E-01    .84658E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.75533
  alpha      = 2.85542
  Normalizat = 0.964387
  Prefactor  = 0.978491
 **********
 **   18 **HESSE 
 **********

 FCN=   5786.636     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .23E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7553        .82936        .34439E-04   -1.5376    
   2  alpha         2.8554        .39812        .10822E-01    .14265    
   3  Normalizat    .96439        .29981        .34741E-03   -.94233    
   4  Prefactor     .97849        .23068        .27116E-03   -.93450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26443e-13
Minuit parameter uncertainties:
  1  0.829359
  2  0.399863
  3  0.300332
  4  0.230908
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708362': 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) = 5786.63586777
delta logL = 0.192407508397

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  2.755e+00  8.294e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.855e+00  3.999e-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:  9.785e-01  2.309e-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.644e-01  3.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.66
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.86 +/- 0.40
Photon Flux (Free Index): 3.45e-07 +/- 1.14e-07
Energy Flux (Free Index): 7.20e-05 +/- 2.11e-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/708362/cmap_HighResolution_427766401_428025601_4FGL_J1229.0+0202_daily_bin727.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.07e-07', energy_flux2='7.20e-05', photon_flux_error='9.64e-08', dlogl='1.92e-01', energy_flux='7.30e-05', photon_flux2='3.45e-07', job_status='DONE', time_completed='2021-09-05 19:09:18.489776', photon_index_error2='0.40', photon_index2='2.86', ts='23.22', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='2.11e-05', EG='1.01', time_epoch_completed='1630894158.49', return_code='0', job_id='708362', GAL2='0.98', EG2='0.96', return_code2='0', energy_flux_error='2.30e-05', photon_flux_error2='1.14e-07', ts2='23.66', photon_index='2.61' WHERE bin_id='727' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:09:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 708362: <4FGL_J1229.0+0202_daily_bin727> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin727> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 18:55:54 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:55:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 18:55:56 2021
Terminated at Sun Sep  5 19:09:19 2021
Results reported at Sun Sep  5 19:09:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin727 187.268 2.0454 427766401 428025601 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 :                                   774.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             365.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            805 sec.

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

