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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin700
RA = 187.268, Dec = 2.0454
tmin = 420768001, tmax = 421027201
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='708319', job_status='RUN', time_executed='2021-09-05 18:58:39.376182', time_epoch_executed='1630893519.38' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='700'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708319

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708319/ft1_4FGL_J1229.0+0202_daily_bin700.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708319/ft2_4FGL_J1229.0+0202_daily_bin700.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708319/ft1_4FGL_J1229.0+0202_daily_bin700.fits outfile=/scratch/kocevski/708319/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin700.fits ra=187.268 dec=2.0454 rad=12.0 tmin=420768001.0 tmax=421027201.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.46
user 3.26
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708319/ft1_filtered_4FGL_J1229.0+0202_daily_bin700.fits" evtable="EVENTS" scfile=/scratch/kocevski/708319/ft2_4FGL_J1229.0+0202_daily_bin700.fits sctable="SC_DATA" outfile=/scratch/kocevski/708319/ltcube_420768001_421027201_4FGL_J1229.0+0202_daily_bin700.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/708319/ft2_4FGL_J1229.0+0202_daily_bin700.fits
.....................!
real 11.78
user 11.47
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708319/ft1_filtered_4FGL_J1229.0+0202_daily_bin700.fits evtable="EVENTS" scfile=/scratch/kocevski/708319/ft2_4FGL_J1229.0+0202_daily_bin700.fits sctable="SC_DATA" expcube=/scratch/kocevski/708319/ltcube_420768001_421027201_4FGL_J1229.0+0202_daily_bin700.fits outfile=/scratch/kocevski/708319/expmap_420768001_421027201_4FGL_J1229.0+0202_daily_bin700.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/708319/ltcube_420768001_421027201_4FGL_J1229.0+0202_daily_bin700.fits
.....................!
real 190.13
user 185.96
sys 3.82

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/708319/ft1_filtered_4FGL_J1229.0+0202_daily_bin700.fits scfile=/scratch/kocevski/708319/ft2_4FGL_J1229.0+0202_daily_bin700.fits outfile=/scratch/kocevski/708319/cmap_420768001_421027201_4FGL_J1229.0+0202_daily_bin700.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.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708319/ft1_filtered_4FGL_J1229.0+0202_daily_bin700.fits scfile=/scratch/kocevski/708319/ft2_4FGL_J1229.0+0202_daily_bin700.fits outfile=/scratch/kocevski/708319/cmap_HighResolution_420768001_421027201_4FGL_J1229.0+0202_daily_bin700.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .12593E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2964       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.197       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.4067       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.0642       1.0000         .10000E-03   10000.    
    18 'norm      '    1.6909       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.551       1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.256       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .77031       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    32.924       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    57.410       1.0000         .10000E-03   10000.    
    29 'norm      '    2.3093       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2758       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .84160       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=   6506.579     FROM MIGRAD    STATUS=CONVERGED    829 CALLS     3643 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.486        .19024E-05** at limit **
   2  Prefactor     .10000E-03    229.65       -.45849E-05** at limit **
   3  Prefactor     .10000E-03    2.7587       -.16190E-08** at limit **
   4  Prefactor     .10000E-03    29.114       -.92385E-06** at limit **
   5  Prefactor     .10000E-03    3.7231       -.79302E-08** at limit **
   6  Prefactor     7.2941        19.286        .14272E-05   -.34246E-04
   7  Prefactor     .10000E-03    21.027        .43598E-05** at limit **
   8  Prefactor     .10000E-03    13.292       -.52523E-05** at limit **
   9  Prefactor     .10000E-03    38.475        .86535E-05** at limit **
  10  Prefactor     .10000E-03    12.399        .38029E-05** at limit **
  11  Prefactor     10.195        16.700        .46493E-06   -.16043E-04
  12  Prefactor     .10000E-03    4.6878       -.44291E-08** at limit **
  13  norm          .10000E-03    .84960       -.15977E-08** at limit **
  14  norm          5.4075        3.7659       -.16576E-06   -.24797E-03
  15  Prefactor     .10000E-03    20.056       -.12141E-05** at limit **
  16  norm          .10000E-03    36.312       -.16410E-05** at limit **
  17  Prefactor     7.0761        273.55        .34897E-04   -.60715E-06
  18  norm          1.6909        .65600        .77782E-08   -.95123E-04
  19  Prefactor     10.551        9.2339       -.39270E-06   -.48790E-03
  20  Prefactor     25.256        24.497        .46563E-06    .67694E-06
  21  Prefactor     .10000E-03    7.5658       -.40912E-05** at limit **
  22  norm          .76994        1.2134       -.17956E-06   -.12391E-02
  23  Prefactor     .10000E-03    5.5315        .36058E-07** at limit **
  24  Prefactor     .10000E-03    8.9574       -.32153E-05** at limit **
  25  Prefactor     32.926        39.106        .59900E-06    .14753E-05
  26  Prefactor     .10000E-03    28.888       -.15009E-06** at limit **
  27  norm          .10000E-03    7.8345        .57870E-05** at limit **
  28  Prefactor     57.414        22.014       -.12280E-05    .72324E-05
  29  norm          2.3091        .38378       -.21113E-08    .29270E-03
  30  Prefactor     .10000E-03    33.427       -.74169E-05** at limit **
  31  Normalizat    1.2761        .22219        .23630E-06   -.96248E-05
  32  Prefactor     .84136        .16570       -.41727E-06    .30639E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.29411
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1949
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.40753
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.07612
  norm       = 1.6909
  Prefactor  = 10.5506
  Prefactor  = 25.2556
  Prefactor  = 0.0001
  norm       = 0.769944
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.9261
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 57.4139
  norm       = 2.30908
  Prefactor  = 0.0001
  Normalizat = 1.27606
  Prefactor  = 0.84136
 **********
 **   18 **HESSE 
 **********

 FCN=   6506.579     FROM HESSE     STATUS=OK           651 CALLS     4294 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    230.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.7603        .13084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.7344        .15199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.2941        19.352        .14849E-03   -1.5168    
   7  Prefactor     .10000E-03    21.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    38.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.195        16.695        .12548E-03   -1.5069    
  12  Prefactor     .10000E-03    4.6978        .17054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .85442        .72588E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.4075        3.7673        .12023E-03   -1.5243    
  15  Prefactor     .10000E-03    20.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    36.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.0761        272.67        .15093E-03   -1.5176    
  18  norm          1.6909        .65200        .37181E-04   -1.5448    
  19  Prefactor     10.551        9.2817        .61675E-03   -1.5058    
  20  Prefactor     25.256        24.510        .79710E-04   -1.4702    
  21  Prefactor     .10000E-03    7.6172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .76994        1.0478        .10707E-02   -1.5532    
  23  Prefactor     .10000E-03    5.6236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.9503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     32.926        39.241        .69835E-04   -1.4560    
  26  Prefactor     .10000E-03    28.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    7.8143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     57.414        22.057        .52946E-04   -1.4191    
  29  norm          2.3091        .38578        .19114E-04   -1.5404    
  30  Prefactor     .10000E-03    33.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2761        .26270        .28722E-03   -.84284    
  32  Prefactor     .84136        .19476        .26860E-03   -.98221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02961e-10
Minuit parameter uncertainties:
  1  2.12573e-06
  2  4.97148e-06
  3  1.21061e-07
  4  1.4421e-05
  5  1.34806e-06
  6  19.3691
  7  2.64309e-07
  8  3.9168e-06
  9  1.95599e-05
  10  7.73139e-06
  11  16.7027
  12  5.88138e-07
  13  6.11018e-08
  14  3.7675
  15  3.7675e-05
  16  5.82674e-06
  17  88.2859
  18  0.652007
  19  9.283
  20  24.5202
  21  1.368e-05
  22  1.04781
  23  3.48722e-06
  24  1.55407e-06
  25  39.2713
  26  5.03878e-05
  27  3.49284e-07
  28  22.0604
  29  0.385779
  30  4.88616e-06
  31  0.262975
  32  0.194923
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.691e+00  6.520e-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.414e-01  1.949e-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.276e+00  2.630e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.41
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.86e-07 +/- 7.16e-08
Energy Flux (Fixed Index): 4.42e-05 +/- 1.70e-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) = 6506.5023982
delta logL = 0.0764224263939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6506.4986908
delta logL = 0.0801298207471

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6654       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7975       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2549       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85453       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=   6506.499     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      227 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6658        11.541        .81332E-02    .42365E-03
   2  alpha         2.7978        3.5460        .31955       -.17689E-05
   3  Normalizat    1.2556        .20750        .65358E-01    .30301E-04
   4  Prefactor     .85406        .25530        .44423E-01    .23221E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.66577
  alpha      = 2.79779
  Normalizat = 1.25562
  Prefactor  = 0.854062
 **********
 **   18 **HESSE 
 **********

 FCN=   6506.499     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6658        .63122        .36204E-04   -1.5450    
   2  alpha         2.7978        .46856        .13307E-01    .11940    
   3  Normalizat    1.2556        .25625        .28912E-03   -.84901    
   4  Prefactor     .85406        .19609        .26685E-03   -.97765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27844e-12
Minuit parameter uncertainties:
  1  0.631226
  2  0.471385
  3  0.256511
  4  0.19625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708319': 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) = 6506.4986847
delta logL = 0.080135924346

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.666e+00  6.312e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.798e+00  4.714e-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.541e-01  1.962e-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.256e+00  2.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.55
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.80 +/- 0.47
Photon Flux (Free Index): 2.02e-07 +/- 8.24e-08
Energy Flux (Free Index): 4.33e-05 +/- 1.62e-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/708319/cmap_HighResolution_420768001_421027201_4FGL_J1229.0+0202_daily_bin700.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.86e-07', energy_flux2='4.33e-05', photon_flux_error='7.16e-08', dlogl='8.01e-02', energy_flux='4.42e-05', photon_flux2='2.02e-07', job_status='DONE', time_completed='2021-09-05 19:11:13.630414', photon_index_error2='0.47', photon_index2='2.80', ts='13.41', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.62e-05', EG='1.28', time_epoch_completed='1630894273.63', return_code='0', job_id='708319', GAL2='0.85', EG2='1.26', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='8.24e-08', ts2='13.55', photon_index='2.61' WHERE bin_id='700' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:11:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 708319: <4FGL_J1229.0+0202_daily_bin700> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin700 187.268 2.0454 420768001 421027201 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 :                                   754.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            924 sec.

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

