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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin615
RA = 187.268, Dec = 2.0454
tmin = 398736001, tmax = 398995201
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='706838', job_status='RUN', time_executed='2021-09-05 18:51:01.726882', time_epoch_executed='1630893061.73' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706838

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706838/ft1_4FGL_J1229.0+0202_daily_bin615.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706838/ft2_4FGL_J1229.0+0202_daily_bin615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706838/ft1_4FGL_J1229.0+0202_daily_bin615.fits outfile=/scratch/kocevski/706838/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin615.fits ra=187.268 dec=2.0454 rad=12.0 tmin=398736001.0 tmax=398995201.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 6.16
user 5.90
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/706838/ft2_4FGL_J1229.0+0202_daily_bin615.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/706838/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin615.fits evtable="EVENTS" outfile="/scratch/kocevski/706838/ft1_filtered_4FGL_J1229.0+0202_daily_bin615.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/706838/ft1_filtered_4FGL_J1229.0+0202_daily_bin615.fits" evtable="EVENTS" scfile=/scratch/kocevski/706838/ft2_4FGL_J1229.0+0202_daily_bin615.fits sctable="SC_DATA" outfile=/scratch/kocevski/706838/ltcube_398736001_398995201_4FGL_J1229.0+0202_daily_bin615.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/706838/ft2_4FGL_J1229.0+0202_daily_bin615.fits
.....................!
real 11.89
user 11.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706838/ft1_filtered_4FGL_J1229.0+0202_daily_bin615.fits evtable="EVENTS" scfile=/scratch/kocevski/706838/ft2_4FGL_J1229.0+0202_daily_bin615.fits sctable="SC_DATA" expcube=/scratch/kocevski/706838/ltcube_398736001_398995201_4FGL_J1229.0+0202_daily_bin615.fits outfile=/scratch/kocevski/706838/expmap_398736001_398995201_4FGL_J1229.0+0202_daily_bin615.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/706838/ltcube_398736001_398995201_4FGL_J1229.0+0202_daily_bin615.fits
.....................!
real 190.24
user 185.58
sys 4.29

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/706838/ft1_filtered_4FGL_J1229.0+0202_daily_bin615.fits scfile=/scratch/kocevski/706838/ft2_4FGL_J1229.0+0202_daily_bin615.fits outfile=/scratch/kocevski/706838/cmap_398736001_398995201_4FGL_J1229.0+0202_daily_bin615.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.59
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706838/ft1_filtered_4FGL_J1229.0+0202_daily_bin615.fits scfile=/scratch/kocevski/706838/ft2_4FGL_J1229.0+0202_daily_bin615.fits outfile=/scratch/kocevski/706838/cmap_HighResolution_398736001_398995201_4FGL_J1229.0+0202_daily_bin615.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.65
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.2436       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.8374       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.780       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.333       1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.115       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10451E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.855       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.094       1.0000         .10000E-03   10000.    
    13 'norm      '    .41617       1.0000         .10000E-03   10000.    
    14 'norm      '    .11269E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    83.952       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.3409       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .34264E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    5.3043       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.3481       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10576E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    35.668       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.9470       1.0000         .10000E-03   10000.    
    29 'norm      '    .64078       1.0000         .10000E-03   10000.    
    30 'Prefactor '    55.366       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3865       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .84704       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=   6069.576     FROM MIGRAD    STATUS=CONVERGED   1522 CALLS     5069 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.790        .18142E-02** at limit **
   2  Prefactor     .10000E-03    45.630        .18142E-02** at limit **
   3  Prefactor     7.2408        11.697        .14903E-03    .67891E-05
   4  Prefactor     6.6719        161.74        .15344E-03    .19264E-06
   5  Prefactor     .10000E-03    3.2851        .13771E-02** at limit **
   6  Prefactor     20.782        14.720        .87865E-04   -.95747E-05
   7  Prefactor     11.419        139.20        .11901E-03   -.23883E-05
   8  Prefactor     32.149        38.416        .70706E-04   -.80394E-05
   9  Prefactor     .10000E-03    169.75        .18142E-02** at limit **
  10  Prefactor     .10000E-03    10.858        .18142E-02** at limit **
  11  Prefactor     11.873        26.236        .11635E-03    .42995E-05
  12  Prefactor     10.094        9.6959        .63062E-03    .21615E-04
  13  norm          .41611        2.5224        .21895E-03    .78144E-04
  14  norm          .10000E-03    3.9621        .29755E-03** at limit **
  15  Prefactor     .10000E-03    8.9133        .18142E-02** at limit **
  16  norm          84.003        60.477        .21921E-03    .16077E-05
  17  Prefactor     .10000E-03    50.881        .18142E-02** at limit **
  18  norm          1.3413        .65377        .38868E-04    .59962E-04
  19  Prefactor     .10000E-03    4.1242        .15440E-02** at limit **
  20  Prefactor     .10000E-03    18.481        .18142E-02** at limit **
  21  Prefactor     .10000E-03    11.051        .57416E-01** at limit **
  22  norm          5.3046        2.1091        .67525E-04   -.38050E-04
  23  Prefactor     4.3479        7.6520        .19317E-03   -.27484E-04
  24  Prefactor     .10000E-03    61.061        .18142E-02** at limit **
  25  Prefactor     35.668        30.826        .67103E-04   -.14570E-05
  26  Prefactor     .10000E-03    50.321        .18142E-02** at limit **
  27  norm          .10000E-03    23.754        .18142E-02** at limit **
  28  Prefactor     9.9467        19.552        .12705E-03   -.25949E-05
  29  norm          .64078        .21757        .20102E-04   -.33367E-04
  30  Prefactor     55.358        68.540        .53909E-04   -.75919E-06
  31  Normalizat    1.3865        .27022        .27125E-03   -.28584E-04
  32  Prefactor     .84706        .20712        .26873E-03   -.25975E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.24083
  Prefactor  = 6.67192
  Prefactor  = 0.0001
  Prefactor  = 20.782
  Prefactor  = 11.419
  Prefactor  = 32.1487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8728
  Prefactor  = 10.0935
  norm       = 0.41611
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 84.0027
  Prefactor  = 0.0001
  norm       = 1.3413
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.30458
  Prefactor  = 4.34793
  Prefactor  = 0.0001
  Prefactor  = 35.6679
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.9467
  norm       = 0.640779
  Prefactor  = 55.3584
  Normalizat = 1.38654
  Prefactor  = 0.847064
 **********
 **   18 **HESSE 
 **********

 FCN=   6069.576     FROM HESSE     STATUS=OK           635 CALLS     5704 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.791        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    45.630        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.2408        11.696        .59614E-05   -1.5170    
   4  Prefactor     6.6719        161.65        .30688E-04   -1.5191    
   5  Prefactor     .10000E-03    3.2853        .27542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.782        14.719        .35146E-05   -1.4796    
   7  Prefactor     11.419        138.99        .47602E-05   -1.5032    
   8  Prefactor     32.149        38.408        .14141E-04   -1.4573    
   9  Prefactor     .10000E-03    169.86        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.859        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.873        26.237        .46538E-05   -1.5019    
  12  Prefactor     10.094        9.6879        .25225E-04   -1.5072    
  13  norm          .41611        2.5180        .87582E-05   -1.5579    
  14  norm          .10000E-03    3.9622        .59509E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.9134        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          84.003        60.474        .87683E-05   -1.3872    
  17  Prefactor     .10000E-03    50.881        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.3413        .65378        .15547E-05   -1.5476    
  19  Prefactor     .10000E-03    4.1244        .30879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.482        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.8001        .66708E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.3046        2.1091        .27010E-05   -1.5247    
  23  Prefactor     4.3479        7.6524        .77268E-05   -1.5291    
  24  Prefactor     .10000E-03    61.085        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     35.668        30.826        .13421E-04   -1.4513    
  26  Prefactor     .10000E-03    50.323        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    23.757        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     9.9467        19.553        .50821E-05   -1.5077    
  29  norm          .64078        .21758        .80408E-06   -1.5548    
  30  Prefactor     55.358        68.539        .10782E-04   -1.4219    
  31  Normalizat    1.3865        .27049        .10850E-04   -.81019    
  32  Prefactor     .84706        .20726        .10749E-04   -.98016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61023e-11
Minuit parameter uncertainties:
  1  9.92513e-07
  2  1.0323e-05
  3  11.6995
  4  65.8822
  5  3.87462e-09
  6  14.7219
  7  79.9086
  8  38.4372
  9  0.000152292
  10  1.19033e-06
  11  26.2627
  12  9.68943
  13  2.04708
  14  3.26566e-05
  15  8.64653e-07
  16  60.5182
  17  5.22925e-07
  18  0.653785
  19  3.83098e-07
  20  8.67042e-07
  21  2.52167e-05
  22  2.10911
  23  7.65408
  24  8.04711e-07
  25  30.8398
  26  1.84239e-06
  27  2.78375e-05
  28  19.5659
  29  0.217575
  30  68.637
  31  0.27077
  32  0.207451
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.341e+00  6.538e-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.471e-01  2.075e-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.387e+00  2.708e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.86
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.47e-07 +/- 7.18e-08
Energy Flux (Fixed Index): 3.50e-05 +/- 1.71e-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) = 6069.53309987
delta logL = 0.0432185369391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6069.52997706
delta logL = 0.0463413463067

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3044       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7803       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3727       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85610       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=   6069.530     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3048        12.094        .84446E-02    .45261E-03
   2  alpha         2.7802        3.2978        .35872        .38901E-05
   3  Normalizat    1.3730        .13598        .61568E-01    .97127E-05
   4  Prefactor     .85588        .14122        .44443E-01    .15805E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.30478
  alpha      = 2.78024
  Normalizat = 1.37301
  Prefactor  = 0.855885
 **********
 **   18 **HESSE 
 **********

 FCN=   6069.530     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .72E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3048        .61440        .37641E-04   -1.5480    
   2  alpha         2.7802        .55650        .14757E-01    .11233    
   3  Normalizat    1.3730        .26112        .27230E-03   -.81412    
   4  Prefactor     .85588        .20545        .26753E-03   -.97700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.20622e-14
Minuit parameter uncertainties:
  1  0.614403
  2  0.561262
  3  0.261371
  4  0.205637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706838': 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) = 6069.52997589
delta logL = 0.0463425208372

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.305e+00  6.144e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.780e+00  5.613e-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.559e-01  2.056e-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.373e+00  2.614e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.10
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.78 +/- 0.56
Photon Flux (Free Index): 1.57e-07 +/- 7.41e-08
Energy Flux (Free Index): 3.39e-05 +/- 1.57e-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/706838/cmap_HighResolution_398736001_398995201_4FGL_J1229.0+0202_daily_bin615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.47e-07', energy_flux2='3.39e-05', photon_flux_error='7.18e-08', dlogl='4.63e-02', energy_flux='3.50e-05', photon_flux2='1.57e-07', job_status='DONE', time_completed='2021-09-05 19:05:51.429633', photon_index_error2='0.56', photon_index2='2.78', ts='8.86', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.57e-05', EG='1.39', time_epoch_completed='1630893951.43', return_code='0', job_id='706838', GAL2='0.86', EG2='1.37', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='7.41e-08', ts2='9.10', photon_index='2.61' WHERE bin_id='615' 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 <lsf@bullet0289>
Subject: Job 706838: <4FGL_J1229.0+0202_daily_bin615> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin615 187.268 2.0454 398736001 398995201 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 :                                   879.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            904 sec.

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

