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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin576
RA = 187.268, Dec = 2.0454
tmin = 388627201, tmax = 388886401
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='706784', job_status='RUN', time_executed='2021-09-05 18:52:39.852886', time_epoch_executed='1630893159.85' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='576'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706784

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706784/ft1_4FGL_J1229.0+0202_daily_bin576.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706784/ft2_4FGL_J1229.0+0202_daily_bin576.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706784/ft1_4FGL_J1229.0+0202_daily_bin576.fits outfile=/scratch/kocevski/706784/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin576.fits ra=187.268 dec=2.0454 rad=12.0 tmin=388627201.0 tmax=388886401.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.99
user 3.77
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706784/ft1_filtered_4FGL_J1229.0+0202_daily_bin576.fits evtable="EVENTS" scfile=/scratch/kocevski/706784/ft2_4FGL_J1229.0+0202_daily_bin576.fits sctable="SC_DATA" expcube=/scratch/kocevski/706784/ltcube_388627201_388886401_4FGL_J1229.0+0202_daily_bin576.fits outfile=/scratch/kocevski/706784/expmap_388627201_388886401_4FGL_J1229.0+0202_daily_bin576.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/706784/ltcube_388627201_388886401_4FGL_J1229.0+0202_daily_bin576.fits
.....................!
real 190.16
user 184.99
sys 4.76

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/706784/ft1_filtered_4FGL_J1229.0+0202_daily_bin576.fits scfile=/scratch/kocevski/706784/ft2_4FGL_J1229.0+0202_daily_bin576.fits outfile=/scratch/kocevski/706784/cmap_388627201_388886401_4FGL_J1229.0+0202_daily_bin576.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.53
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91997       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    76.955       1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.582       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.5870       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.626       1.0000         .10000E-03   10000.    
    18 'norm      '    .97062       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.472       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.3730       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    75.686       1.0000         .10000E-03   10000.    
    26 'Prefactor '    52.750       1.0000         .10000E-03   10000.    
    27 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.0226       1.0000         .10000E-03   10000.    
    29 'norm      '    .75277       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2759       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .91322       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=   5265.419     FROM MIGRAD    STATUS=CONVERGED    803 CALLS     4903 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .92826        11.797       -.94843E-06   -.97029E-04
   2  Prefactor     .10000E-03    32.024        .17127E-04** at limit **
   3  Prefactor     .10000E-03    4.7339       -.11537E-05** at limit **
   4  Prefactor     .10000E-03    28.635        .11631E-04** at limit **
   5  Prefactor     .10000E-03    3.0802        .77188E-07** at limit **
   6  Prefactor     .10000E-03    18.127       -.61838E-05** at limit **
   7  Prefactor     .10000E-03    40.754        .20991E-05** at limit **
   8  Prefactor     76.954        56.574       -.96318E-06    .23704E-04
   9  Prefactor     37.579        47.526       -.44279E-05    .54756E-05
  10  Prefactor     .10000E-03    6.3258        .76467E-05** at limit **
  11  Prefactor     .10000E-03    15.032        .76212E-05** at limit **
  12  Prefactor     .10000E-03    4.1768        .64438E-06** at limit **
  13  norm          .10000E-03    .66111        .29612E-08** at limit **
  14  norm          1.5860        2.9350       -.21787E-05   -.94634E-03
  15  Prefactor     .10000E-03    25.001        .74160E-06** at limit **
  16  norm          .10000E-03    16.488        .26151E-06** at limit **
  17  Prefactor     26.741        231.35        .21789E-03    .11326E-04
  18  norm          .97054        .61481       -.16734E-07   -.27558E-03
  19  Prefactor     12.468        14.602        .22315E-06    .17238E-03
  20  Prefactor     .10000E-03    45.294       -.21002E-04** at limit **
  21  Prefactor     .10000E-03    3.6637       -.56801E-07** at limit **
  22  norm          4.3729        1.9749       -.26584E-06    .12892E-03
  23  Prefactor     .10000E-03    6.5932       -.76034E-05** at limit **
  24  Prefactor     .10000E-03    21.428       -.75062E-05** at limit **
  25  Prefactor     75.675        51.656       -.10811E-04    .38781E-04
  26  Prefactor     52.771        103.51        .30640E-04    .19951E-03
  27  norm          .10000E-03    10.883        .10248E-05** at limit **
  28  Prefactor     3.0007        67.393       -.40732E-04   -.17202E-03
  29  norm          .75274        .29581        .18544E-06   -.31424E-03
  30  Prefactor     .10000E-03    19.132       -.78401E-05** at limit **
  31  Normalizat    1.2762        .24656        .27941E-05    .20021E-03
  32  Prefactor     .91300        .18488       -.38929E-05    .47722E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.928258
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 76.9535
  Prefactor  = 37.5787
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.586
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 26.7411
  norm       = 0.970544
  Prefactor  = 12.4682
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.37293
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.6746
  Prefactor  = 52.7706
  norm       = 0.0001
  Prefactor  = 3.00069
  norm       = 0.752738
  Prefactor  = 0.0001
  Normalizat = 1.2762
  Prefactor  = 0.913001
 **********
 **   18 **HESSE 
 **********

 FCN=   5265.419     FROM HESSE     STATUS=OK           645 CALLS     5548 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .92826        48.920        .48464E-02   -1.5515    
   2  Prefactor     .10000E-03    32.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.7431        .15419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.0850        .12435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    40.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     76.954        56.569        .45775E-04   -1.3951    
   9  Prefactor     37.579        47.700        .65377E-04   -1.4481    
  10  Prefactor     .10000E-03    6.3246        .17820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.1842        .14482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .66251        .57613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.5860        2.8886        .15821E-03   -1.5456    
  15  Prefactor     .10000E-03    25.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    16.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     26.741        227.55        .77636E-04   -1.4673    
  18  norm          .97054        .60033        .41780E-04   -1.5511    
  19  Prefactor     12.468        14.597        .11343E-03   -1.5002    
  20  Prefactor     .10000E-03    45.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.6686        .13563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.3729        1.9729        .65372E-04   -1.5290    
  23  Prefactor     .10000E-03    6.6471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    21.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     75.675        51.800        .23077E-03   -1.3966    
  26  Prefactor     52.771        98.110        .55223E-04   -1.4254    
  27  norm          .10000E-03    10.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.0007        61.257        .23342E-03   -1.5362    
  29  norm          .75274        .29649        .22954E-04   -1.5534    
  30  Prefactor     .10000E-03    19.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2762        .29382        .28186E-03   -.84280    
  32  Prefactor     .91300        .21963        .25599E-03   -.95688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48e-09
Minuit parameter uncertainties:
  1  13.4884
  2  8.0401e-06
  3  3.55891e-07
  4  1.70861e-05
  5  8.27941e-06
  6  9.4516e-05
  7  5.03722e-06
  8  56.6089
  9  47.7487
  10  4.52343e-06
  11  4.1682e-05
  12  6.43782e-06
  13  1.205e-06
  14  2.8889
  15  0.000233852
  16  3.52012e-05
  17  156.822
  18  0.600331
  19  14.6016
  20  6.72932e-05
  21  7.6934e-06
  22  1.97293
  23  5.31802e-05
  24  2.97636e-05
  25  51.8306
  26  98.4119
  27  1.37152e-05
  28  27.1469
  29  0.296489
  30  4.08378e-06
  31  0.294204
  32  0.219845
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  9.705e-01  6.003e-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.130e-01  2.198e-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.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.02
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.07e-07 +/- 6.59e-08
Energy Flux (Fixed Index): 2.54e-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) = 5264.57404692
delta logL = 0.845163783314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5264.56277493
delta logL = 0.856435782848

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85236       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5505       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2051       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95278       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=   5264.563     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      225 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85217        8.4442        .72004E-02    .53800E-03
   2  alpha         3.5502        3.3178        .42133        .11935E-04
   3  Normalizat    1.2055        .10958        .65198E-01    .11395E-04
   4  Prefactor     .95250        .89689E-01    .45674E-01    .97595E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.852168
  alpha      = 3.55018
  Normalizat = 1.2055
  Prefactor  = 0.952505
 **********
 **   18 **HESSE 
 **********

 FCN=   5264.563     FROM HESSE     STATUS=OK            31 CALLS      256 TOTAL
                     EDM=   .52E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85217        .56743        .32290E-04   -1.5523    
   2  alpha         3.5502        .78846        .18633E-02    .43352    
   3  Normalizat    1.2055        .28425        .28842E-03   -.86433    
   4  Prefactor     .95250        .21905        .25124E-03   -.94330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.15952e-14
Minuit parameter uncertainties:
  1  0.567429
  2  0.805262
  3  0.284615
  4  0.219254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706784': 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) = 5264.56277368
delta logL = 0.856437023288

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.525e-01  2.193e-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.206e+00  2.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.92
Ra Dec: 187.268 2.045
Photon Index (Free Index): 3.55 +/- 0.81
Photon Flux (Free Index): 1.68e-07 +/- 8.97e-08
Energy Flux (Free Index): 2.78e-05 +/- 1.43e-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/706784/cmap_HighResolution_388627201_388886401_4FGL_J1229.0+0202_daily_bin576.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.07e-07', energy_flux2='2.78e-05', photon_flux_error='6.59e-08', dlogl='8.56e-01', energy_flux='2.54e-05', photon_flux2='1.68e-07', job_status='DONE', time_completed='2021-09-05 19:05:08.127570', photon_index_error2='0.81', photon_index2='3.55', ts='4.02', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.43e-05', EG='1.28', time_epoch_completed='1630893908.13', return_code='0', job_id='706784', GAL2='0.95', EG2='1.21', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='8.97e-08', ts2='5.92', photon_index='2.61' WHERE bin_id='576' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:05:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 706784: <4FGL_J1229.0+0202_daily_bin576> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin576 187.268 2.0454 388627201 388886401 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 :                                   745.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            864 sec.

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

