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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin736
RA = 187.268, Dec = 2.0454
tmin = 430099201, tmax = 430358401
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='708376', job_status='RUN', time_executed='2021-09-05 18:58:55.571494', time_epoch_executed='1630893535.57' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='736'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708376

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708376/ft1_4FGL_J1229.0+0202_daily_bin736.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708376/ft2_4FGL_J1229.0+0202_daily_bin736.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708376/ft1_4FGL_J1229.0+0202_daily_bin736.fits outfile=/scratch/kocevski/708376/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin736.fits ra=187.268 dec=2.0454 rad=12.0 tmin=430099201.0 tmax=430358401.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 11.29
user 10.92
sys 0.32

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708376/ft1_filtered_4FGL_J1229.0+0202_daily_bin736.fits evtable="EVENTS" scfile=/scratch/kocevski/708376/ft2_4FGL_J1229.0+0202_daily_bin736.fits sctable="SC_DATA" expcube=/scratch/kocevski/708376/ltcube_430099201_430358401_4FGL_J1229.0+0202_daily_bin736.fits outfile=/scratch/kocevski/708376/expmap_430099201_430358401_4FGL_J1229.0+0202_daily_bin736.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/708376/ltcube_430099201_430358401_4FGL_J1229.0+0202_daily_bin736.fits
.....................!
real 190.79
user 185.90
sys 4.47

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/708376/ft1_filtered_4FGL_J1229.0+0202_daily_bin736.fits scfile=/scratch/kocevski/708376/ft2_4FGL_J1229.0+0202_daily_bin736.fits outfile=/scratch/kocevski/708376/cmap_430099201_430358401_4FGL_J1229.0+0202_daily_bin736.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.56
user 0.39
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10652E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.193       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10689E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    123.76       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9948       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.657       1.0000         .10000E-03   10000.    
    13 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10273E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11182E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.8121       1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.500       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11360E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.7492       1.0000         .10000E-03   10000.    
    22 'norm      '    3.5922       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10829E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.6686       1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.439       1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.409       1.0000         .10000E-03   10000.    
    27 'norm      '    39.511       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.0215       1.0000         .10000E-03   10000.    
    30 'Prefactor '    45.492       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1067       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .96746       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=   3318.300     FROM MIGRAD    STATUS=CONVERGED    816 CALLS     4289 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.176        .15473E-06** at limit **
   2  Prefactor     .10000E-03    116.89       -.23844E-06** at limit **
   3  Prefactor     16.203        23.682       -.39254E-06    .88754E-05
   4  Prefactor     .10000E-03    60.299        .78852E-07** at limit **
   5  Prefactor     .10000E-03    11.696       -.25021E-06** at limit **
   6  Prefactor     .10000E-03    14.813        .24954E-06** at limit **
   7  Prefactor     .10000E-03    118.46        .15833E-06** at limit **
   8  Prefactor     .10000E-03    36.734        .11266E-06** at limit **
   9  Prefactor     123.72        76.758       -.61170E-06   -.10014E-05
  10  Prefactor     8.9977        33.811        .22833E-06    .43310E-06
  11  Prefactor     .10000E-03    14.603       -.98335E-07** at limit **
  12  Prefactor     21.665        27.468       -.20862E-06   -.92194E-06
  13  norm          .10000E-03    3.1706        .32160E-07** at limit **
  14  norm          .10000E-03    3.8769       -.15043E-06** at limit **
  15  Prefactor     .10000E-03    35.072        .25777E-06** at limit **
  16  norm          .10000E-03    22.711       -.30020E-07** at limit **
  17  Prefactor     .10000E-03    119.15        .15275E-06** at limit **
  18  norm          4.8124        1.4282       -.65520E-07    .82373E-05
  19  Prefactor     30.456        19.627       -.18172E-05   -.20182E-03
  20  Prefactor     .10001E-03    329.39        .41249E-06** at limit **
  21  Prefactor     7.7484        12.212        .17398E-06    .29799E-05
  22  norm          3.5925        2.6562       -.52389E-07   -.87421E-05
  23  Prefactor     .10000E-03    8.7995        .13519E-07** at limit **
  24  Prefactor     9.6305        35.062        .30843E-06   -.43611E-05
  25  Prefactor     14.592        168.68        .32734E-05   -.33321E-05
  26  Prefactor     11.383        45.852        .19629E-06    .41227E-06
  27  norm          39.446        47.537        .16220E-06   -.96903E-05
  28  Prefactor     .10000E-03    18.422       -.39758E-06** at limit **
  29  norm          1.0210        .47160       -.20743E-06   -.13178E-02
  30  Prefactor     45.295        102.73        .34850E-06   -.13004E-04
  31  Normalizat    1.1062        .38670        .64277E-05   -.74446E-04
  32  Prefactor     .96778        .28872       -.47879E-05    .32440E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.2027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 123.719
  Prefactor  = 8.99768
  Prefactor  = 0.0001
  Prefactor  = 21.665
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.81242
  Prefactor  = 30.4564
  Prefactor  = 0.000100006
  Prefactor  = 7.74835
  norm       = 3.59248
  Prefactor  = 0.0001
  Prefactor  = 9.63051
  Prefactor  = 14.5924
  Prefactor  = 11.3825
  norm       = 39.4457
  Prefactor  = 0.0001
  norm       = 1.02101
  Prefactor  = 45.2953
  Normalizat = 1.10623
  Prefactor  = 0.967779
 **********
 **   18 **HESSE 
 **********

 FCN=   3318.300     FROM HESSE     STATUS=OK           655 CALLS     4944 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    116.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.203        23.723        .99531E-04   -1.4903    
   4  Prefactor     .10000E-03    60.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    118.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    36.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     123.72        76.835        .18090E-03   -1.3479    
  10  Prefactor     8.9977        33.758        .13364E-03   -1.5108    
  11  Prefactor     .10000E-03    14.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.665        27.382        .86070E-04   -1.4777    
  13  norm          .10000E-03    3.1791        .99837E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.9378        .11061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    35.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    22.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    119.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.8124        1.4290        .33564E-04   -1.5269    
  19  Prefactor     30.456        19.986        .72549E-04   -1.4604    
  20  Prefactor     .10001E-03    338.00        .41353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.7484        12.205        .14405E-03   -1.5151    
  22  norm          3.5925        2.6522        .76163E-04   -1.5329    
  23  Prefactor     .10000E-03    8.8287        .16683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.6305        35.086        .12888E-03   -1.5087    
  25  Prefactor     14.592        170.00        .10541E-03   -1.4944    
  26  Prefactor     11.383        45.896        .11860E-03   -1.5033    
  27  norm          39.446        47.532        .63767E-04   -1.4451    
  28  Prefactor     .10000E-03    18.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.0210        .47971        .23020E-04   -1.5506    
  30  Prefactor     45.295        103.17        .29722E-03   -1.4361    
  31  Normalizat    1.1062        .40821        .32707E-03   -.89552    
  32  Prefactor     .96778        .30614        .27101E-03   -.93811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51909e-10
Minuit parameter uncertainties:
  1  1.36988e-05
  2  1.43092e-05
  3  23.7371
  4  2.78308e-05
  5  1.08892e-05
  6  8.34585e-06
  7  4.69691e-05
  8  7.48467e-06
  9  76.8973
  10  33.8295
  11  8.59182e-06
  12  27.3983
  13  3.35636e-06
  14  6.53913e-06
  15  2.90669e-05
  16  9.47511e-06
  17  6.9509e-05
  18  1.42898
  19  19.9907
  20  0.00287782
  21  12.2089
  22  2.65224
  23  3.11319e-07
  24  35.1616
  25  99.9714
  26  45.7737
  27  47.5778
  28  1.15044e-05
  29  0.479715
  30  103.575
  31  0.409386
  32  0.306687
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  4.812e+00  1.429e+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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.678e-01  3.067e-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.106e+00  4.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.59
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 5.29e-07 +/- 1.57e-07
Energy Flux (Fixed Index): 1.26e-04 +/- 3.73e-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) = 3317.62463788
delta logL = 0.675066005492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3317.57269497
delta logL = 0.72700891728

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3308       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1250       1.0000          .0000       5.0000    
     3 'Normalizat'    .98239       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0520       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=   3317.573     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      203 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3304        10.487        .48391E-02    .57605E-04
   2  alpha         3.1251        3.9458        .19273        .65108E-05
   3  Normalizat    .98237        .37015        .77600E-01    .96528E-05
   4  Prefactor     1.0520        .37348        .59219E-01    .42285E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.33043
  alpha      = 3.12508
  Normalizat = 0.982369
  Prefactor  = 1.05204
 **********
 **   18 **HESSE 
 **********

 FCN=   3317.573     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .72E-16    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3304        1.4360        .30507E-04   -1.5292    
   2  alpha         3.1251        .46580        .84425E-03    .25271    
   3  Normalizat    .98237        .40013        .34343E-03   -.93623    
   4  Prefactor     1.0520        .31031        .26187E-03   -.91014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.23791e-17
Minuit parameter uncertainties:
  1  1.43605
  2  0.468722
  3  0.401359
  4  0.310845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708376': 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) = 3317.57269491
delta logL = 0.727008981096

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  4.330e+00  1.436e+00  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  3.125e+00  4.687e-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.052e+00  3.108e-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.824e-01  4.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.77
Ra Dec: 187.268 2.045
Photon Index (Free Index): 3.13 +/- 0.47
Photon Flux (Free Index): 6.40e-07 +/- 1.89e-07
Energy Flux (Free Index): 1.20e-04 +/- 3.33e-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/708376/cmap_HighResolution_430099201_430358401_4FGL_J1229.0+0202_daily_bin736.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.29e-07', energy_flux2='1.20e-04', photon_flux_error='1.57e-07', dlogl='7.27e-01', energy_flux='1.26e-04', photon_flux2='6.40e-07', job_status='DONE', time_completed='2021-09-05 19:09:13.118948', photon_index_error2='0.47', photon_index2='3.13', ts='25.59', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='3.33e-05', EG='1.11', time_epoch_completed='1630894153.12', return_code='0', job_id='708376', GAL2='1.05', EG2='0.98', return_code2='0', energy_flux_error='3.73e-05', photon_flux_error2='1.89e-07', ts2='27.77', photon_index='2.61' WHERE bin_id='736' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:09:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 708376: <4FGL_J1229.0+0202_daily_bin736> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin736> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 18:55:55 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:55:58 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:58 2021
Terminated at Sun Sep  5 19:09:13 2021
Results reported at Sun Sep  5 19:09:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin736 187.268 2.0454 430099201 430358401 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 :                                   612.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             243.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            798 sec.

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

