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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin854
RA = 187.268, Dec = 2.0454
tmin = 460684801, tmax = 460944001
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='709574', job_status='RUN', time_executed='2021-09-05 19:02:38.779947', time_epoch_executed='1630893758.78' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/709574

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/709574/ft1_4FGL_J1229.0+0202_daily_bin854.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/709574/ft2_4FGL_J1229.0+0202_daily_bin854.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/709574/ft1_4FGL_J1229.0+0202_daily_bin854.fits outfile=/scratch/kocevski/709574/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin854.fits ra=187.268 dec=2.0454 rad=12.0 tmin=460684801.0 tmax=460944001.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.37
user 3.11
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/709574/ft1_filtered_4FGL_J1229.0+0202_daily_bin854.fits" evtable="EVENTS" scfile=/scratch/kocevski/709574/ft2_4FGL_J1229.0+0202_daily_bin854.fits sctable="SC_DATA" outfile=/scratch/kocevski/709574/ltcube_460684801_460944001_4FGL_J1229.0+0202_daily_bin854.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/709574/ft2_4FGL_J1229.0+0202_daily_bin854.fits
.....................!
real 12.39
user 11.96
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/709574/ft1_filtered_4FGL_J1229.0+0202_daily_bin854.fits evtable="EVENTS" scfile=/scratch/kocevski/709574/ft2_4FGL_J1229.0+0202_daily_bin854.fits sctable="SC_DATA" expcube=/scratch/kocevski/709574/ltcube_460684801_460944001_4FGL_J1229.0+0202_daily_bin854.fits outfile=/scratch/kocevski/709574/expmap_460684801_460944001_4FGL_J1229.0+0202_daily_bin854.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/709574/ltcube_460684801_460944001_4FGL_J1229.0+0202_daily_bin854.fits
.....................!
real 193.51
user 187.61
sys 5.40

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/709574/ft1_filtered_4FGL_J1229.0+0202_daily_bin854.fits scfile=/scratch/kocevski/709574/ft2_4FGL_J1229.0+0202_daily_bin854.fits outfile=/scratch/kocevski/709574/cmap_460684801_460944001_4FGL_J1229.0+0202_daily_bin854.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.83
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/709574/ft1_filtered_4FGL_J1229.0+0202_daily_bin854.fits scfile=/scratch/kocevski/709574/ft2_4FGL_J1229.0+0202_daily_bin854.fits outfile=/scratch/kocevski/709574/cmap_HighResolution_460684801_460944001_4FGL_J1229.0+0202_daily_bin854.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 1.43
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10236E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.299       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11945E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.787       1.0000         .10000E-03   10000.    
     9 'Prefactor '    56.847       1.0000         .10000E-03   10000.    
    10 'Prefactor '    66.080       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7503       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0230       1.0000         .10000E-03   10000.    
    14 'norm      '    .43907E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.281       1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.0702       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14084E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.4810       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.744       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12629E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.917       1.0000         .10000E-03   10000.    
    29 'norm      '    1.6262       1.0000         .10000E-03   10000.    
    30 'Prefactor '    57.502       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3783       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .79855       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=   5699.706     FROM MIGRAD    STATUS=CONVERGED    878 CALLS     4490 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3829        .80190E-08** at limit **
   2  Prefactor     .10000E-03    197.10        .59038E-04** at limit **
   3  Prefactor     .10000E-03    6.4327        .12784E-08** at limit **
   4  Prefactor     30.292        44.372       -.15279E-05    .19300E-05
   5  Prefactor     .10000E-03    32.798        .19806E-06** at limit **
   6  Prefactor     .10000E-03    4.1800        .13688E-08** at limit **
   7  Prefactor     .10000E-03    34.095       -.33796E-06** at limit **
   8  Prefactor     48.786        40.842        .16681E-06    .40584E-05
   9  Prefactor     56.813        48.009       -.64537E-05    .17246E-03
  10  Prefactor     66.073        28.999        .29944E-06    .13014E-03
  11  Prefactor     1.7536        52.368        .21190E-04    .32466E-04
  12  Prefactor     .10000E-03    9.6625        .71042E-07** at limit **
  13  norm          1.0239        1.9818       -.14878E-06   -.53609E-03
  14  norm          .31360E-01    1.7206       -.30152E-05   -.11344E-03
  15  Prefactor     19.288        27.784        .20322E-06    .11453E-03
  16  norm          .10000E-03    28.081        .56362E-06** at limit **
  17  Prefactor     .10000E-03    77.949       -.29726E-06** at limit **
  18  norm          1.0710        .60766        .15881E-06    .56065E-02
  19  Prefactor     .10000E-03    5.4636        .75150E-07** at limit **
  20  Prefactor     .10315E-03    25.930       -.35690E-05** at limit **
  21  Prefactor     .10000E-03    14.823       -.47785E-07** at limit **
  22  norm          4.4818        2.0374        .32189E-07    .14400E-02
  23  Prefactor     .10000E-03    5.2876       -.12789E-07** at limit **
  24  Prefactor     .10000E-03    11.866        .56516E-07** at limit **
  25  Prefactor     19.745        48.584       -.45444E-06   -.15002E-06
  26  Prefactor     .10000E-03    139.08       -.22601E-04** at limit **
  27  norm          .10000E-03    10.870       -.68510E-07** at limit **
  28  Prefactor     15.907        14.205        .20437E-05    .22332E-03
  29  norm          1.6262        .40666       -.34133E-07    .34714E-03
  30  Prefactor     57.508        91.137        .41743E-05    .32752E-05
  31  Normalizat    1.3783        .22931        .13995E-05    .74774E-03
  32  Prefactor     .79845        .17616       -.85551E-06    .57830E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.2918
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.7865
  Prefactor  = 56.8134
  Prefactor  = 66.0729
  Prefactor  = 1.7536
  Prefactor  = 0.0001
  norm       = 1.02391
  norm       = 0.0313598
  Prefactor  = 19.2876
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.07102
  Prefactor  = 0.0001
  Prefactor  = 0.000103147
  Prefactor  = 0.0001
  norm       = 4.48177
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.7451
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 15.9068
  norm       = 1.62625
  Prefactor  = 57.5077
  Normalizat = 1.3783
  Prefactor  = 0.798451
 **********
 **   18 **HESSE 
 **********

 FCN=   5699.706     FROM HESSE     STATUS=OK           661 CALLS     5151 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    194.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.4767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     30.292        44.372        .72789E-04   -1.4607    
   5  Prefactor     .10000E-03    34.130        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.1832        .15074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    34.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     48.786        40.845        .57411E-04   -1.4310    
   9  Prefactor     56.813        47.767        .53206E-04   -1.4199    
  10  Prefactor     66.073        28.915        .49372E-04   -1.4080    
  11  Prefactor     1.7536        52.281        .31692E-03   -1.5443    
  12  Prefactor     .10000E-03    9.8458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0239        1.5916        .14213E-02   -1.5506    
  14  norm          .31360E-01    1.8120        .64440E-01   -1.5673    
  15  Prefactor     19.288        27.792        .91214E-04   -1.4829    
  16  norm          .10000E-03    28.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    77.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0710        .60123        .40363E-04   -1.5501    
  19  Prefactor     .10000E-03    5.4881        .17212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10315E-03    28.805        .11092       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.4818        2.0360        .68426E-04   -1.5285    
  23  Prefactor     .10000E-03    5.3187        .16950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     19.745        48.925        .90139E-04   -1.4819    
  26  Prefactor     .10000E-03    140.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    10.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     15.907        14.237        .10039E-03   -1.4910    
  29  norm          1.6262        .41112        .21524E-04   -1.5453    
  30  Prefactor     57.508        91.417        .52904E-04   -1.4190    
  31  Normalizat    1.3783        .27510        .27061E-03   -.81258    
  32  Prefactor     .79845        .20807        .27666E-03   -.99785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46517e-09
Minuit parameter uncertainties:
  1  2.01132e-06
  2  6.22201e-05
  3  2.09446e-07
  4  44.4208
  5  0.000545417
  6  2.67132e-07
  7  1.60686e-07
  8  40.8686
  9  47.7989
  10  28.9209
  11  19.1677
  12  1.72224e-05
  13  1.59168
  14  0.476016
  15  27.8104
  16  9.57332e-05
  17  1.49661e-05
  18  0.601232
  19  1.68479e-05
  20  0.0190498
  21  5.27345e-06
  22  2.03604
  23  3.37838e-06
  24  2.9445e-06
  25  49.0248
  26  0.000600657
  27  3.05648e-06
  28  14.2405
  29  0.411117
  30  91.6412
  31  0.275399
  32  0.208272
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.071e+00  6.012e-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:  7.985e-01  2.083e-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.378e+00  2.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.51
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.18e-07 +/- 6.60e-08
Energy Flux (Fixed Index): 2.80e-05 +/- 1.57e-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) = 5699.68214287
delta logL = 0.0239136931796

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5699.6798013
delta logL = 0.0262552596378

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0700       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4325       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3963       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78630       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=   5699.680     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      195 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0698        1.3577        .90869E-02    .16167E-03
   2  alpha         2.4325        1.2459        .41171       -.64784E-04
   3  Normalizat    1.3962        .22054        .60870E-01    .12466E-04
   4  Prefactor     .78641        .18263        .62956E-01    .13419E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.06982
  alpha      = 2.43252
  Normalizat = 1.39617
  Prefactor  = 0.786414
 **********
 **   18 **HESSE 
 **********

 FCN=   5699.680     FROM HESSE     STATUS=OK            33 CALLS      228 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0698        .58554        .40805E-04   -1.5501    
   2  alpha         2.4325        .73889        .16406E-01   -.26994E-01
   3  Normalizat    1.3962        .26695        .26921E-03   -.80740    
   4  Prefactor     .78641        .21000        .27847E-03   -1.0023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62985e-10
Minuit parameter uncertainties:
  1  0.585542
  2  0.750099
  3  0.26722
  4  0.210213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/709574': 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) = 5699.67980097
delta logL = 0.0262555906602

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.070e+00  5.855e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.433e+00  7.501e-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:  7.864e-01  2.102e-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.396e+00  2.672e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.51
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.43 +/- 0.75
Photon Flux (Free Index): 1.08e-07 +/- 7.26e-08
Energy Flux (Free Index): 2.91e-05 +/- 1.67e-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/709574/cmap_HighResolution_460684801_460944001_4FGL_J1229.0+0202_daily_bin854.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.18e-07', energy_flux2='2.91e-05', photon_flux_error='6.60e-08', dlogl='2.63e-02', energy_flux='2.80e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-05 19:16:08.184182', photon_index_error2='0.75', photon_index2='2.43', ts='5.51', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='1.38', time_epoch_completed='1630894568.18', return_code='0', job_id='709574', GAL2='0.79', EG2='1.40', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='7.26e-08', ts2='5.51', photon_index='2.61' WHERE bin_id='854' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:16:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 709574: <4FGL_J1229.0+0202_daily_bin854> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin854> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 19:00:25 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 19:00:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 19:00:27 2021
Terminated at Sun Sep  5 19:16:09 2021
Results reported at Sun Sep  5 19:16:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin854 187.268 2.0454 460684801 460944001 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 :                                   795.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            944 sec.

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

