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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin634
RA = 187.268, Dec = 2.0454
tmin = 403660801, tmax = 403920001
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='706864', job_status='RUN', time_executed='2021-09-05 18:53:03.274641', time_epoch_executed='1630893183.27' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='634'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706864

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706864/ft1_4FGL_J1229.0+0202_daily_bin634.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706864/ft2_4FGL_J1229.0+0202_daily_bin634.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706864/ft1_4FGL_J1229.0+0202_daily_bin634.fits outfile=/scratch/kocevski/706864/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin634.fits ra=187.268 dec=2.0454 rad=12.0 tmin=403660801.0 tmax=403920001.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 7.61
user 7.34
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/706864/ft2_4FGL_J1229.0+0202_daily_bin634.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/706864/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin634.fits evtable="EVENTS" outfile="/scratch/kocevski/706864/ft1_filtered_4FGL_J1229.0+0202_daily_bin634.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706864/ft1_filtered_4FGL_J1229.0+0202_daily_bin634.fits evtable="EVENTS" scfile=/scratch/kocevski/706864/ft2_4FGL_J1229.0+0202_daily_bin634.fits sctable="SC_DATA" expcube=/scratch/kocevski/706864/ltcube_403660801_403920001_4FGL_J1229.0+0202_daily_bin634.fits outfile=/scratch/kocevski/706864/expmap_403660801_403920001_4FGL_J1229.0+0202_daily_bin634.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/706864/ltcube_403660801_403920001_4FGL_J1229.0+0202_daily_bin634.fits
.....................!
real 191.47
user 185.73
sys 5.32

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/706864/ft1_filtered_4FGL_J1229.0+0202_daily_bin634.fits scfile=/scratch/kocevski/706864/ft2_4FGL_J1229.0+0202_daily_bin634.fits outfile=/scratch/kocevski/706864/cmap_403660801_403920001_4FGL_J1229.0+0202_daily_bin634.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.35
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18298E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10117E-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 '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.110       1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.367       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.5960       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12386E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.0961       1.0000         .10000E-03   10000.    
    17 'Prefactor '    75.065       1.0000         .10000E-03   10000.    
    18 'norm      '    2.2821       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18060E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.4739       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10387E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.6857       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.1188       1.0000         .10000E-03   10000.    
    30 'Prefactor '    53.321       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.4757       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .98177       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=   5288.026     FROM MIGRAD    STATUS=CONVERGED    832 CALLS     4335 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    127.39        .73729E-04** at limit **
   2  Prefactor     .10000E-03    178.19       -.15538E-04** at limit **
   3  Prefactor     .10000E-03    8.7447       -.21446E-06** at limit **
   4  Prefactor     .10000E-03    33.533        .56007E-05** at limit **
   5  Prefactor     .10000E-03    2.2622        .22445E-06** at limit **
   6  Prefactor     .10000E-03    25.875        .11179E-04** at limit **
   7  Prefactor     25.089        119.27       -.36426E-04    .98617E-05
   8  Prefactor     35.355        37.684       -.45380E-05   -.61164E-04
   9  Prefactor     .10000E-03    11.047        .77437E-05** at limit **
  10  Prefactor     .10000E-03    7.4813        .23328E-05** at limit **
  11  Prefactor     .10000E-03    14.184        .11467E-04** at limit **
  12  Prefactor     .10000E-03    7.4409       -.22510E-05** at limit **
  13  norm          1.5972        2.2937       -.23573E-06   -.26368E-03
  14  norm          .10000E-03    2.0414        .34390E-06** at limit **
  15  Prefactor     .10003E-03    204.36       -.91757E-04** at limit **
  16  norm          3.0978        116.36        .17703E-05   -.10100E-04
  17  Prefactor     75.039        168.62       -.27178E-04    .68591E-04
  18  norm          2.2822        .81769        .81986E-08    .11727E-02
  19  Prefactor     .10000E-03    21.717       -.23062E-04** at limit **
  20  Prefactor     7.4202        31.296       -.17272E-05    .23650E-03
  21  Prefactor     .10000E-03    35.782       -.18282E-04** at limit **
  22  norm          5.6862        2.4200        .35624E-07    .37694E-03
  23  Prefactor     .10000E-03    16.108       -.60971E-06** at limit **
  24  Prefactor     .10000E-03    11.416       -.44845E-05** at limit **
  25  Prefactor     .10000E-03    27.360        .17128E-04** at limit **
  26  Prefactor     .10000E-03    25.536        .66932E-05** at limit **
  27  norm          .10000E-03    35.342       -.94308E-05** at limit **
  28  Prefactor     .10000E-03    12.328       -.10459E-04** at limit **
  29  norm          1.1189        .31829       -.40735E-07    .56400E-04
  30  Prefactor     53.326        64.245        .33218E-05    .54438E-05
  31  Normalizat    1.4755        .25396        .15950E-05    .21363E-03
  32  Prefactor     .98173        .19933        .44296E-06    .23792E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100033
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.089
  Prefactor  = 35.3551
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.59715
  norm       = 0.0001
  Prefactor  = 0.000100028
  norm       = 3.09778
  Prefactor  = 75.0393
  norm       = 2.28223
  Prefactor  = 0.000100001
  Prefactor  = 7.42025
  Prefactor  = 0.0001
  norm       = 5.68622
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.11888
  Prefactor  = 53.3261
  Normalizat = 1.47546
  Prefactor  = 0.981731
 **********
 **   18 **HESSE 
 **********

 FCN=   5288.026     FROM HESSE     STATUS=OK           637 CALLS     4972 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    130.77        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    179.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.7818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    33.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.2636        .10681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.089        119.74        .79941E-04   -1.4706    
   8  Prefactor     35.355        37.701        .33693E-03   -1.4518    
   9  Prefactor     .10000E-03    11.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.4871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.4683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5972        2.2653        .12745E-03   -1.5455    
  14  norm          .10000E-03    2.0618        .10109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10003E-03    206.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.0978        116.18        .23048E-03   -1.5356    
  17  Prefactor     75.039        168.00        .46343E-04   -1.3973    
  18  norm          2.2822        .81967        .35337E-04   -1.5406    
  19  Prefactor     .10000E-03    21.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.4202        30.951        .14670E-03   -1.5163    
  21  Prefactor     .10000E-03    36.779        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.6862        2.4206        .70075E-04   -1.5231    
  23  Prefactor     .10000E-03    16.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    27.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    25.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    35.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    12.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.1189        .31829        .20841E-04   -1.5496    
  30  Prefactor     53.326        64.285        .54928E-04   -1.4246    
  31  Normalizat    1.4755        .30048        .28417E-03   -.78470    
  32  Prefactor     .98173        .23485        .27096E-03   -.93341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39774e-09
Minuit parameter uncertainties:
  1  0.0041688
  2  8.24086e-05
  3  6.89477e-05
  4  5.75846e-06
  5  3.36868e-06
  6  5.77406e-05
  7  109.978
  8  37.726
  9  3.67419e-06
  10  6.90808e-06
  11  1.63259e-05
  12  2.92768e-06
  13  2.26541
  14  5.70928e-06
  15  0.0047811
  16  38.0208
  17  169.078
  18  0.819678
  19  0.000248949
  20  30.3362
  21  0.000199885
  22  2.42065
  23  1.15545e-05
  24  2.10479e-06
  25  2.25299e-05
  26  5.46878e-06
  27  1.00473e-05
  28  6.68313e-06
  29  0.318292
  30  64.3686
  31  0.300846
  32  0.235094
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  2.282e+00  8.197e-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.817e-01  2.351e-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.475e+00  3.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.54
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 2.51e-07 +/- 9.00e-08
Energy Flux (Fixed Index): 5.96e-05 +/- 2.14e-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) = 5286.89988254
delta logL = 1.12598937755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5286.89773665
delta logL = 1.12813526094

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9370       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3197       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3833       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0370       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5286.898     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      271 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9370        .78510        .29896E-04    .91569E-03
   2  alpha         3.3197        .51861        .11663E-02    .20753E-04
   3  Normalizat    1.3835        .30363        .29127E-03   -.11155E-03
   4  Prefactor     1.0369        .23827        .26480E-03   -.18523E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.93704
  alpha      = 3.31965
  Normalizat = 1.38345
  Prefactor  = 1.03686
 **********
 **   18 **HESSE 
 **********

 FCN=   5286.898     FROM HESSE     STATUS=OK            23 CALLS      294 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9370        .78285        .11959E-05   -1.5430    
   2  alpha         3.3197        .51714        .46652E-04    .33404    
   3  Normalizat    1.3835        .30397        .11651E-04   -.81109    
   4  Prefactor     1.0369        .23852        .52961E-04   -.91511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.96924e-11
Minuit parameter uncertainties:
  1  0.782852
  2  0.521367
  3  0.304364
  4  0.238765
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706864': 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) = 5286.89773643
delta logL = 1.12813548201

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.937e+00  7.829e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  3.320e+00  5.214e-01  0.000e+00  5.000e+00 ( 1.000e+00)
337         beta:  9.652e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  3.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.037e+00  2.388e-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.383e+00  3.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.26
Ra Dec: 187.268 2.045
Photon Index (Free Index): 3.32 +/- 0.52
Photon Flux (Free Index): 3.26e-07 +/- 1.09e-07
Energy Flux (Free Index): 5.72e-05 +/- 1.83e-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/706864/cmap_HighResolution_403660801_403920001_4FGL_J1229.0+0202_daily_bin634.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.51e-07', energy_flux2='5.72e-05', photon_flux_error='9.00e-08', dlogl='1.13e+00', energy_flux='5.96e-05', photon_flux2='3.26e-07', job_status='DONE', time_completed='2021-09-05 19:05:51.354175', photon_index_error2='0.52', photon_index2='3.32', ts='15.54', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.83e-05', EG='1.48', time_epoch_completed='1630893951.35', return_code='0', job_id='706864', GAL2='1.04', EG2='1.38', return_code2='0', energy_flux_error='2.14e-05', photon_flux_error2='1.09e-07', ts2='18.26', photon_index='2.61' WHERE bin_id='634' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:05:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 706864: <4FGL_J1229.0+0202_daily_bin634> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin634 187.268 2.0454 403660801 403920001 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 :                                   765.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            903 sec.

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

