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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin809
RA = 187.268, Dec = 2.0454
tmin = 449020801, tmax = 449280001
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='709505', job_status='RUN', time_executed='2021-09-05 19:02:30.042405', time_epoch_executed='1630893750.04' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='809'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/709505

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/709505/ft1_4FGL_J1229.0+0202_daily_bin809.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/709505/ft2_4FGL_J1229.0+0202_daily_bin809.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/709505/ft1_4FGL_J1229.0+0202_daily_bin809.fits outfile=/scratch/kocevski/709505/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin809.fits ra=187.268 dec=2.0454 rad=12.0 tmin=449020801.0 tmax=449280001.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.63
user 5.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/709505/ft1_filtered_4FGL_J1229.0+0202_daily_bin809.fits" evtable="EVENTS" scfile=/scratch/kocevski/709505/ft2_4FGL_J1229.0+0202_daily_bin809.fits sctable="SC_DATA" outfile=/scratch/kocevski/709505/ltcube_449020801_449280001_4FGL_J1229.0+0202_daily_bin809.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/709505/ft2_4FGL_J1229.0+0202_daily_bin809.fits
.....................!
real 12.11
user 11.67
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/709505/ft1_filtered_4FGL_J1229.0+0202_daily_bin809.fits evtable="EVENTS" scfile=/scratch/kocevski/709505/ft2_4FGL_J1229.0+0202_daily_bin809.fits sctable="SC_DATA" expcube=/scratch/kocevski/709505/ltcube_449020801_449280001_4FGL_J1229.0+0202_daily_bin809.fits outfile=/scratch/kocevski/709505/expmap_449020801_449280001_4FGL_J1229.0+0202_daily_bin809.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/709505/ltcube_449020801_449280001_4FGL_J1229.0+0202_daily_bin809.fits
.....................!
real 191.15
user 185.42
sys 3.93

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/709505/ft1_filtered_4FGL_J1229.0+0202_daily_bin809.fits scfile=/scratch/kocevski/709505/ft2_4FGL_J1229.0+0202_daily_bin809.fits outfile=/scratch/kocevski/709505/cmap_449020801_449280001_4FGL_J1229.0+0202_daily_bin809.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 1.05
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/709505/ft1_filtered_4FGL_J1229.0+0202_daily_bin809.fits scfile=/scratch/kocevski/709505/ft2_4FGL_J1229.0+0202_daily_bin809.fits outfile=/scratch/kocevski/709505/cmap_HighResolution_449020801_449280001_4FGL_J1229.0+0202_daily_bin809.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.81
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .75523E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.277       1.0000         .10000E-03   10000.    
     7 'Prefactor '    93.715       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16054E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    70.838       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.2940       1.0000         .10000E-03   10000.    
    13 'norm      '    4.1366       1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11449E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    59.753       1.0000         .10000E-03   10000.    
    18 'norm      '    1.7468       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.7148       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .87354       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    23.195       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .30244       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .90589       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .91666       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=   4938.338     FROM MIGRAD    STATUS=CONVERGED    825 CALLS     3700 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.015        .11520E-06** at limit **
   2  Prefactor     .10000E-03    65.135        .55329E-06** at limit **
   3  Prefactor     .10000E-03    5.4752        .20791E-06** at limit **
   4  Prefactor     .10005E-03    592.21       -.16190E-04** at limit **
   5  Prefactor     .10001E-03    6.7649       -.93463E-06** at limit **
   6  Prefactor     21.263        15.375       -.83914E-06    .94337E-04
   7  Prefactor     93.746        103.23        .92667E-06    .51962E-04
   8  Prefactor     .10000E-03    87.542       -.10410E-05** at limit **
   9  Prefactor     70.829        48.533        .86383E-07    .26508E-04
  10  Prefactor     .10000E-03    8.3407       -.13422E-06** at limit **
  11  Prefactor     .10000E-03    13.197       -.24846E-06** at limit **
  12  Prefactor     6.2942        13.254        .56102E-05   -.56424E-04
  13  norm          4.1369        3.3195       -.76696E-06    .24721E-04
  14  norm          .10000E-03    1.1502       -.13226E-06** at limit **
  15  Prefactor     .10000E-03    41.782       -.11691E-05** at limit **
  16  norm          .10000E-03    41.437       -.35290E-06** at limit **
  17  Prefactor     59.705        106.18       -.11961E-05   -.62206E-04
  18  norm          1.7468        .64149       -.84683E-07   -.17281E-03
  19  Prefactor     9.7140        8.2732       -.21913E-06    .12181E-04
  20  Prefactor     .10000E-03    20.546        .89656E-07** at limit **
  21  Prefactor     .10000E-03    8.2012        .78933E-07** at limit **
  22  norm          .87379        1.9612        .49803E-06    .18745E-04
  23  Prefactor     .10000E-03    5.5334        .73779E-07** at limit **
  24  Prefactor     .10000E-03    27.068        .17314E-06** at limit **
  25  Prefactor     .10000E-03    9.6923       -.91754E-07** at limit **
  26  Prefactor     .10000E-03    12.757        .74211E-07** at limit **
  27  norm          23.201        28.260        .18015E-06    .96485E-05
  28  Prefactor     .10000E-03    5.3699        .13064E-08** at limit **
  29  norm          .30248        .20088        .19583E-07   -.56509E-04
  30  Prefactor     .10000E-03    47.277        .79382E-07** at limit **
  31  Normalizat    .90596        .21758        .62334E-07    .30988E-04
  32  Prefactor     .91653        .16786       -.87059E-06    .87225E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100046
  Prefactor  = 0.000100009
  Prefactor  = 21.2632
  Prefactor  = 93.7455
  Prefactor  = 0.0001
  Prefactor  = 70.8286
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.29424
  norm       = 4.13692
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 59.7051
  norm       = 1.74681
  Prefactor  = 9.71405
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.873786
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.2014
  Prefactor  = 0.0001
  norm       = 0.302476
  Prefactor  = 0.0001
  Normalizat = 0.905959
  Prefactor  = 0.916531
 **********
 **   18 **HESSE 
 **********

 FCN=   4938.338     FROM HESSE     STATUS=OK           651 CALLS     4351 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    65.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.4878        .16056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10005E-03    615.16        .41872E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    19.733        .34249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.263        15.277        .43417E-03   -1.4785    
   7  Prefactor     93.746        103.55        .20758E-03   -1.3768    
   8  Prefactor     .10000E-03    87.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     70.829        47.980        .47696E-04   -1.4023    
  10  Prefactor     .10000E-03    8.3523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.2942        13.401        .80000E-03   -1.5206    
  13  norm          4.1369        3.3263        .96847E-04   -1.5301    
  14  norm          .10000E-03    1.1584        .73529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    42.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    41.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     59.705        106.83        .25952E-03   -1.4161    
  18  norm          1.7468        .63564        .31174E-04   -1.5444    
  19  Prefactor     9.7140        8.2737        .64284E-03   -1.5085    
  20  Prefactor     .10000E-03    20.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.3121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .87379        1.9318        .13252E-03   -1.5521    
  23  Prefactor     .10000E-03    5.5632        .16131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    27.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.6965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    12.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          23.201        28.234        .83170E-04   -1.4744    
  28  Prefactor     .10000E-03    5.3767        .15904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .30248        .19606        .24486E-04   -1.5598    
  30  Prefactor     .10000E-03    47.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .90596        .24985        .13725E-02   -.96251    
  32  Prefactor     .91653        .19372        .22223E-03   -.95566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.14132e-10
Minuit parameter uncertainties:
  1  3.72172e-05
  2  0.000466462
  3  1.1212e-06
  4  0.0107046
  5  0.000862605
  6  15.2794
  7  103.754
  8  9.29338e-05
  9  48.0059
  10  1.68865e-05
  11  2.92869e-05
  12  13.4077
  13  3.32641
  14  3.65704e-07
  15  6.80945e-05
  16  0.000115307
  17  107.172
  18  0.635639
  19  8.27467
  20  2.48837e-05
  21  9.39502e-06
  22  1.93197
  23  1.13354e-06
  24  6.16152e-05
  25  3.02069e-05
  26  2.61554e-05
  27  28.2498
  28  2.32875e-07
  29  0.196064
  30  2.62012e-05
  31  0.250171
  32  0.193868
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.747e+00  6.356e-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.165e-01  1.939e-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.060e-01  2.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.93
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.92e-07 +/- 6.98e-08
Energy Flux (Fixed Index): 4.56e-05 +/- 1.66e-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) = 4938.33662107
delta logL = 0.0015998438721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4938.33654073
delta logL = 0.00168017950182

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7502       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5912       1.0000          .0000       5.0000    
     3 'Normalizat'    .90832       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91507       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=   4938.337     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      189 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7502        .79070        .70404E-02   -.14473E-02
   2  alpha         2.5912        .49166        .24698        .31718E-04
   3  Normalizat    .90832        .20635        .45008E-01   -.10684E-04
   4  Prefactor     .91507        .16686        .45197E-01    .14312E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.75024
  alpha      = 2.59119
  Normalizat = 0.908321
  Prefactor  = 0.915074
 **********
 **   18 **HESSE 
 **********

 FCN=   4938.337     FROM HESSE     STATUS=OK            33 CALLS      222 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7502        .62568        .31256E-04   -1.5443    
   2  alpha         2.5912        .40575        .10536E-01    .36483E-01
   3  Normalizat    .90832        .24046        .27419E-03   -.96168    
   4  Prefactor     .91507        .19288        .22238E-03   -.95616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17918e-10
Minuit parameter uncertainties:
  1  0.625678
  2  0.407554
  3  0.240744
  4  0.193022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/709505': 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) = 4938.33654073
delta logL = 0.00168017954093

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.750e+00  6.257e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.591e+00  4.076e-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.151e-01  1.930e-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.083e-01  2.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.89
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.59 +/- 0.41
Photon Flux (Free Index): 1.90e-07 +/- 7.47e-08
Energy Flux (Free Index): 4.59e-05 +/- 1.69e-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/709505/cmap_HighResolution_449020801_449280001_4FGL_J1229.0+0202_daily_bin809.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.92e-07', energy_flux2='4.59e-05', photon_flux_error='6.98e-08', dlogl='1.68e-03', energy_flux='4.56e-05', photon_flux2='1.90e-07', job_status='DONE', time_completed='2021-09-05 19:13:41.869283', photon_index_error2='0.41', photon_index2='2.59', ts='15.93', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.69e-05', EG='0.91', time_epoch_completed='1630894421.87', return_code='0', job_id='709505', GAL2='0.92', EG2='0.91', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='7.47e-08', ts2='15.89', photon_index='2.61' WHERE bin_id='809' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:13:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 709505: <4FGL_J1229.0+0202_daily_bin809> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin809 187.268 2.0454 449020801 449280001 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 :                                   663.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            804 sec.

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

