/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 121 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7383
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1229.0+0202_daily_bin588
RA = 187.268, Dec = 2.0454
tmin = 391737601, tmax = 391996801
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='706800', job_status='RUN', time_executed='2021-09-05 18:52:59.106579', time_epoch_executed='1630893179.11' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706800

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706800/ft1_4FGL_J1229.0+0202_daily_bin588.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706800/ft2_4FGL_J1229.0+0202_daily_bin588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706800/ft1_4FGL_J1229.0+0202_daily_bin588.fits outfile=/scratch/kocevski/706800/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin588.fits ra=187.268 dec=2.0454 rad=12.0 tmin=391737601.0 tmax=391996801.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.34
user 3.08
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706800/ft1_filtered_4FGL_J1229.0+0202_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/706800/ft2_4FGL_J1229.0+0202_daily_bin588.fits sctable="SC_DATA" expcube=/scratch/kocevski/706800/ltcube_391737601_391996801_4FGL_J1229.0+0202_daily_bin588.fits outfile=/scratch/kocevski/706800/expmap_391737601_391996801_4FGL_J1229.0+0202_daily_bin588.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/706800/ltcube_391737601_391996801_4FGL_J1229.0+0202_daily_bin588.fits
.....................!
real 190.73
user 186.09
sys 4.26

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/706800/ft1_filtered_4FGL_J1229.0+0202_daily_bin588.fits scfile=/scratch/kocevski/706800/ft2_4FGL_J1229.0+0202_daily_bin588.fits outfile=/scratch/kocevski/706800/cmap_391737601_391996801_4FGL_J1229.0+0202_daily_bin588.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/706800/ft1_filtered_4FGL_J1229.0+0202_daily_bin588.fits scfile=/scratch/kocevski/706800/ft2_4FGL_J1229.0+0202_daily_bin588.fits outfile=/scratch/kocevski/706800/cmap_HighResolution_391737601_391996801_4FGL_J1229.0+0202_daily_bin588.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.284       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.302       1.0000         .10000E-03   10000.    
     4 'Prefactor '    48.229       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5413       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1829       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.909       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.951       1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .71917       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    63.010       1.0000         .10000E-03   10000.    
    18 'norm      '    1.5515       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.397       1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.480       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.772       1.0000         .10000E-03   10000.    
    22 'norm      '    .10551E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.6177       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    23.078       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .80237       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1589       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .80327       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=   5979.227     FROM MIGRAD    STATUS=CONVERGED    825 CALLS     4325 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.283        15.611       -.93713E-07   -.13263E-04
   2  Prefactor     .10000E-03    25.268        .54886E-06** at limit **
   3  Prefactor     15.301        10.798        .93280E-08    .74188E-04
   4  Prefactor     48.227        49.413       -.11036E-07   -.21335E-04
   5  Prefactor     3.5421        9.1099        .59291E-07   -.28128E-04
   6  Prefactor     4.1841        15.920       -.36288E-06   -.34395E-04
   7  Prefactor     .10000E-03    62.230       -.50256E-06** at limit **
   8  Prefactor     .10000E-03    13.681        .20454E-06** at limit **
   9  Prefactor     .10000E-03    28.016        .37877E-06** at limit **
  10  Prefactor     13.907        20.512       -.77908E-07   -.25147E-05
  11  Prefactor     .10000E-03    8.1341       -.72223E-07** at limit **
  12  Prefactor     17.950        12.824        .20141E-07    .84595E-04
  13  norm          .10000E-03    1.8086        .12762E-07** at limit **
  14  norm          .71633        2.5593       -.13939E-05   -.11348E-02
  15  Prefactor     .10000E-03    15.885       -.13876E-05** at limit **
  16  norm          .10000E-03    28.886        .29356E-06** at limit **
  17  Prefactor     62.956        128.53        .45934E-05    .36516E-04
  18  norm          1.5521        .60804        .60389E-07    .21859E-02
  19  Prefactor     15.398        13.456       -.58885E-07    .20970E-04
  20  Prefactor     39.471        40.336        .15765E-06    .13042E-04
  21  Prefactor     22.772        11.353       -.46414E-06    .36369E-04
  22  norm          .10000E-03    .85463       -.12440E-06** at limit **
  23  Prefactor     1.6154        5.5730        .74572E-05   -.37263E-03
  24  Prefactor     .10000E-03    9.0820        .13058E-07** at limit **
  25  Prefactor     .10000E-03    66.441        .28485E-06** at limit **
  26  Prefactor     .10000E-03    68.667        .75054E-06** at limit **
  27  norm          23.079        18.123       -.51122E-06    .77009E-05
  28  Prefactor     .10000E-03    16.781       -.62669E-07** at limit **
  29  norm          .80233        .26042       -.29416E-07   -.26803E-03
  30  Prefactor     .10000E-03    33.916       -.66650E-06** at limit **
  31  Normalizat    1.1588        .20608        .26066E-05    .48187E-03
  32  Prefactor     .80338        .16096       -.24626E-05    .20856E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2834
  Prefactor  = 0.0001
  Prefactor  = 15.3009
  Prefactor  = 48.227
  Prefactor  = 3.54212
  Prefactor  = 4.18406
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9072
  Prefactor  = 0.0001
  Prefactor  = 17.9498
  norm       = 0.0001
  norm       = 0.716331
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 62.9562
  norm       = 1.55211
  Prefactor  = 15.3984
  Prefactor  = 39.471
  Prefactor  = 22.7724
  norm       = 0.0001
  Prefactor  = 1.61545
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.0793
  Prefactor  = 0.0001
  norm       = 0.802327
  Prefactor  = 0.0001
  Normalizat = 1.15882
  Prefactor  = 0.803376
 **********
 **   18 **HESSE 
 **********

 FCN=   5979.227     FROM HESSE     STATUS=OK           659 CALLS     4984 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.283        15.606        .10990E-03   -1.4979    
   2  Prefactor     .10000E-03    25.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.301        10.816        .10239E-03   -1.4925    
   4  Prefactor     48.227        49.304        .57740E-04   -1.4318    
   5  Prefactor     3.5421        9.0897        .21480E-03   -1.5332    
   6  Prefactor     4.1841        15.891        .19706E-03   -1.5299    
   7  Prefactor     .10000E-03    62.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.907        20.494        .10740E-03   -1.4962    
  11  Prefactor     .10000E-03    8.1370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.950        12.731        .94533E-04   -1.4860    
  13  norm          .10000E-03    1.8619        .20157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .71633        2.5932        .21746E-03   -1.5539    
  15  Prefactor     .10000E-03    15.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    28.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     62.956        128.78        .25276E-03   -1.4119    
  18  norm          1.5521        .59830        .33904E-04   -1.5459    
  19  Prefactor     15.398        13.447        .10207E-03   -1.4923    
  20  Prefactor     39.471        40.395        .63792E-04   -1.4451    
  21  Prefactor     22.772        11.355        .83938E-04   -1.4753    
  22  norm          .10000E-03    3.1774        .13743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.6154        5.6201        .16410E-02   -1.5454    
  24  Prefactor     .10000E-03    9.0859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    66.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    69.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          23.079        18.127        .83380E-04   -1.4747    
  28  Prefactor     .10000E-03    17.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .80233        .26028        .21505E-04   -1.5529    
  30  Prefactor     .10000E-03    33.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1588        .24216        .26470E-03   -.87885    
  32  Prefactor     .80338        .18563        .25281E-03   -.99604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81612e-09
Minuit parameter uncertainties:
  1  15.6105
  2  4.65829e-05
  3  10.8175
  4  49.3456
  5  9.0932
  6  15.9066
  7  0.000176046
  8  1.92514e-05
  9  3.72942e-05
  10  20.5048
  11  1.79946e-05
  12  12.7327
  13  1.166e-06
  14  2.59363
  15  0.00032962
  16  9.40353e-05
  17  129.357
  18  0.598301
  19  13.4498
  20  40.4233
  21  11.3562
  22  5.70432e-06
  23  5.62192
  24  1.14256e-05
  25  3.97295e-05
  26  0.000127206
  27  18.1309
  28  4.07703e-05
  29  0.260279
  30  0.000161485
  31  0.242391
  32  0.185775
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.552e+00  5.983e-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:  8.034e-01  1.858e-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.159e+00  2.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.28
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.71e-07 +/- 6.57e-08
Energy Flux (Fixed Index): 4.05e-05 +/- 1.56e-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) = 5978.62384099
delta logL = 0.603440611862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5978.62333388
delta logL = 0.603947717808

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4076       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1515       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1060       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83557       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=   5978.623     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      239 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4080        7.5465        .67526E-02    .39749E-03
   2  alpha         3.1513        3.8766        .30706        .12740E-04
   3  Normalizat    1.1057        .11618        .61007E-01    .13926E-04
   4  Prefactor     .83574        .11438        .44178E-01    .15538E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.40795
  alpha      = 3.15127
  Normalizat = 1.10574
  Prefactor  = 0.835736
 **********
 **   18 **HESSE 
 **********

 FCN=   5978.623     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .24E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4080        .57933        .30055E-04   -1.5471    
   2  alpha         3.1513        .52788        .13246E-01    .26355    
   3  Normalizat    1.1057        .23536        .26983E-03   -.89568    
   4  Prefactor     .83574        .18704        .24835E-03   -.98424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37357e-13
Minuit parameter uncertainties:
  1  0.57933
  2  0.532177
  3  0.235588
  4  0.187182
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706800': 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) = 5978.62333269
delta logL = 0.603948908673

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.408e+00  5.793e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  3.151e+00  5.322e-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:  8.357e-01  1.872e-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  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.71
Ra Dec: 187.268 2.045
Photon Index (Free Index): 3.15 +/- 0.53
Photon Flux (Free Index): 2.12e-07 +/- 7.89e-08
Energy Flux (Free Index): 3.92e-05 +/- 1.39e-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/706800/cmap_HighResolution_391737601_391996801_4FGL_J1229.0+0202_daily_bin588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.71e-07', energy_flux2='3.92e-05', photon_flux_error='6.57e-08', dlogl='6.04e-01', energy_flux='4.05e-05', photon_flux2='2.12e-07', job_status='DONE', time_completed='2021-09-05 19:06:05.249370', photon_index_error2='0.53', photon_index2='3.15', ts='12.28', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='1.16', time_epoch_completed='1630893965.25', return_code='0', job_id='706800', GAL2='0.84', EG2='1.11', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='7.89e-08', ts2='13.71', photon_index='2.61' WHERE bin_id='588' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:06:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 706800: <4FGL_J1229.0+0202_daily_bin588> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin588> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 18:50:44 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:50:46 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:50:46 2021
Terminated at Sun Sep  5 19:06:06 2021
Results reported at Sun Sep  5 19:06:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin588 187.268 2.0454 391737601 391996801 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 :                                   783.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            922 sec.

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

