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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin666
RA = 187.268, Dec = 2.0454
tmin = 411955201, tmax = 412214401
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='708267', job_status='RUN', time_executed='2021-09-05 18:57:46.694067', time_epoch_executed='1630893466.69' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708267

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708267/ft1_4FGL_J1229.0+0202_daily_bin666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708267/ft2_4FGL_J1229.0+0202_daily_bin666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708267/ft1_4FGL_J1229.0+0202_daily_bin666.fits outfile=/scratch/kocevski/708267/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin666.fits ra=187.268 dec=2.0454 rad=12.0 tmin=411955201.0 tmax=412214401.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 5.65
user 5.33
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708267/ft1_filtered_4FGL_J1229.0+0202_daily_bin666.fits" evtable="EVENTS" scfile=/scratch/kocevski/708267/ft2_4FGL_J1229.0+0202_daily_bin666.fits sctable="SC_DATA" outfile=/scratch/kocevski/708267/ltcube_411955201_412214401_4FGL_J1229.0+0202_daily_bin666.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/708267/ft2_4FGL_J1229.0+0202_daily_bin666.fits
.....................!
real 11.89
user 11.40
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708267/ft1_filtered_4FGL_J1229.0+0202_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/708267/ft2_4FGL_J1229.0+0202_daily_bin666.fits sctable="SC_DATA" expcube=/scratch/kocevski/708267/ltcube_411955201_412214401_4FGL_J1229.0+0202_daily_bin666.fits outfile=/scratch/kocevski/708267/expmap_411955201_412214401_4FGL_J1229.0+0202_daily_bin666.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/708267/ltcube_411955201_412214401_4FGL_J1229.0+0202_daily_bin666.fits
.....................!
real 190.28
user 185.14
sys 4.69

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/708267/ft1_filtered_4FGL_J1229.0+0202_daily_bin666.fits scfile=/scratch/kocevski/708267/ft2_4FGL_J1229.0+0202_daily_bin666.fits outfile=/scratch/kocevski/708267/cmap_411955201_412214401_4FGL_J1229.0+0202_daily_bin666.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708267/ft1_filtered_4FGL_J1229.0+0202_daily_bin666.fits scfile=/scratch/kocevski/708267/ft2_4FGL_J1229.0+0202_daily_bin666.fits outfile=/scratch/kocevski/708267/cmap_HighResolution_411955201_412214401_4FGL_J1229.0+0202_daily_bin666.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/708267/ft1_filtered_4FGL_J1229.0+0202_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/708267/ft2_4FGL_J1229.0+0202_daily_bin666.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/708267/Model_4FGL_J1229.0+0202_daily_bin666.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/708267/ft1_filtered_4FGL_J1229.0+0202_daily_bin666.fits.....................!
real 50.41
user 48.82
sys 1.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31009E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    77.177       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.833       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .33717E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    90.938       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.623       1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.422       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .97124E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    3.9915       1.0000         .10000E-03   10000.    
    14 'norm      '    7.3340       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12067E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.0890       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.448       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10650E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.600       1.0000         .10000E-03   10000.    
    22 'norm      '    7.6916       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.360       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    27.498       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    3.6039       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0889       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0424       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=   5534.792     FROM MIGRAD    STATUS=CONVERGED    920 CALLS     5203 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27131        20.888        .51505E-06    .20053E-04
   2  Prefactor     77.247        153.58        .97048E-05    .84282E-05
   3  Prefactor     .10000E-03    6.7366        .16123E-06** at limit **
   4  Prefactor     41.134        654.75       -.52951E-05   -.69592E-04
   5  Prefactor     .10000E-03    5.8922        .73661E-08** at limit **
   6  Prefactor     .10311E-03    22.069        .40947E-05** at limit **
   7  Prefactor     90.914        88.307        .25593E-06   -.12832E-04
   8  Prefactor     17.488        575.72       -.51049E-06   -.65955E-04
   9  Prefactor     34.397        36.580       -.12541E-05   -.97580E-04
  10  Prefactor     .10000E-03    35.769        .45311E-06** at limit **
  11  Prefactor     .10000E-03    20.324        .19814E-08** at limit **
  12  Prefactor     .10437E-03    20.738        .21197E-05** at limit **
  13  norm          3.9951        3.7844       -.47865E-08   -.97676E-03
  14  norm          7.3345        5.7746        .41795E-06   -.24353E-03
  15  Prefactor     .10000E-03    125.18       -.83464E-07** at limit **
  16  norm          .10000E-03    21.465        .95903E-08** at limit **
  17  Prefactor     .10000E-03    63.569       -.76860E-07** at limit **
  18  norm          3.0894        1.0129        .66805E-07   -.14800E-02
  19  Prefactor     11.451        12.745        .62471E-06   -.10813E-04
  20  Prefactor     .10000E-03    50.215       -.81811E-07** at limit **
  21  Prefactor     10.601        10.225        .34744E-07   -.10039E-03
  22  norm          7.6918        2.6774        .12807E-06   -.15502E-03
  23  Prefactor     .10000E-03    4.9486       -.18957E-07** at limit **
  24  Prefactor     .10000E-03    10.283        .55620E-08** at limit **
  25  Prefactor     14.368        73.261        .22529E-05    .34667E-05
  26  Prefactor     .10000E-03    33.493       -.14083E-05** at limit **
  27  norm          27.501        31.316       -.13047E-06   -.17555E-04
  28  Prefactor     .10000E-03    13.421       -.45328E-07** at limit **
  29  norm          3.6039        .54995        .24401E-07   -.41171E-03
  30  Prefactor     .10000E-03    32.897        .10864E-05** at limit **
  31  Normalizat    1.0889        .29231       -.72659E-05   -.30477E-03
  32  Prefactor     1.0423        .20751        .21830E-05   -.65714E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.271315
  Prefactor  = 77.2471
  Prefactor  = 0.0001
  Prefactor  = 41.1345
  Prefactor  = 0.0001
  Prefactor  = 0.000103108
  Prefactor  = 90.9136
  Prefactor  = 17.4875
  Prefactor  = 34.3966
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000104366
  norm       = 3.99512
  norm       = 7.33453
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.08939
  Prefactor  = 11.4515
  Prefactor  = 0.0001
  Prefactor  = 10.6008
  norm       = 7.69177
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3675
  Prefactor  = 0.0001
  norm       = 27.5015
  Prefactor  = 0.0001
  norm       = 3.60395
  Prefactor  = 0.0001
  Normalizat = 1.0889
  Prefactor  = 1.04231
 **********
 **   18 **HESSE 
 **********

 FCN=   5534.792     FROM HESSE     STATUS=OK           671 CALLS     5874 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27131        23.158        .11511       -1.5604    
   2  Prefactor     77.247        153.43        .45710E-04   -1.3948    
   3  Prefactor     .10000E-03    6.7601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     41.134        717.80        .62730E-04   -1.4424    
   5  Prefactor     .10000E-03    5.9725        .17635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10311E-03    30.236        .86591E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     90.914        88.388        .42138E-04   -1.3798    
   8  Prefactor     17.488        617.40        .95407E-04   -1.4871    
   9  Prefactor     34.397        36.797        .68303E-04   -1.4534    
  10  Prefactor     .10000E-03    35.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10437E-03    32.780        .77579E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.9951        3.8695        .12155E-03   -1.5308    
  14  norm          7.3345        5.7752        .14250E-03   -1.5166    
  15  Prefactor     .10000E-03    126.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    21.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    63.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.0894        1.0112        .37892E-04   -1.5356    
  19  Prefactor     11.451        12.757        .11840E-03   -1.5031    
  20  Prefactor     .10000E-03    50.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.601        10.225        .12306E-03   -1.5057    
  22  norm          7.6918        2.6812        .68017E-04   -1.5153    
  23  Prefactor     .10000E-03    4.9678        .16159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     14.368        74.521        .10570E-03   -1.4950    
  26  Prefactor     .10000E-03    33.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          27.501        31.342        .76397E-04   -1.4659    
  28  Prefactor     .10000E-03    13.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          3.6039        .55511        .19712E-04   -1.5328    
  30  Prefactor     .10000E-03    32.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0889        .32823        .34110E-03   -.90109    
  32  Prefactor     1.0423        .24138        .27403E-03   -.91332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6478e-09
Minuit parameter uncertainties:
  1  5.01431
  2  154.229
  3  3.90041e-06
  4  348.672
  5  1.42806e-05
  6  0.0193984
  7  88.5159
  8  210.207
  9  36.8212
  10  6.86234e-05
  11  1.35839e-05
  12  0.0239388
  13  3.86975
  14  5.77563
  15  0.000364114
  16  3.15721e-06
  17  8.78408e-07
  18  1.01117
  19  12.7602
  20  7.63958e-05
  21  10.2266
  22  2.6812
  23  9.60071e-06
  24  4.99681e-06
  25  65.5711
  26  5.3156e-05
  27  31.3611
  28  5.5261e-05
  29  0.555112
  30  9.67002e-05
  31  0.328847
  32  0.241634
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  3.089e+00  1.011e+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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.042e+00  2.416e-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.089e+00  3.288e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.61
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 3.39e-07 +/- 1.11e-07
Energy Flux (Fixed Index): 8.07e-05 +/- 2.64e-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) = 5534.70160769
delta logL = 0.0903138588237

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5534.69830061
delta logL = 0.0936209380625

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0114       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8189       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0506       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0681       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=   5534.698     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0115        13.399        .58470E-02    .19035E-03
   2  alpha         2.8188        3.6172        .29061        .15238E-05
   3  Normalizat    1.0507        .30187        .78200E-01    .14048E-04
   4  Prefactor     1.0681        .36223        .61340E-01    .65026E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.01151
  alpha      = 2.81876
  Normalizat = 1.05066
  Prefactor  = 1.0681
 **********
 **   18 **HESSE 
 **********

 FCN=   5534.698     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0115        .97789        .36710E-04   -1.5361    
   2  alpha         2.8188        .49487        .12045E-01    .12785    
   3  Normalizat    1.0507        .31379        .34614E-03   -.91352    
   4  Prefactor     1.0681        .24366        .27127E-03   -.90493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51922e-12
Minuit parameter uncertainties:
  1  0.97789
  2  0.498217
  3  0.314341
  4  0.243916
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708267': 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) = 5534.69830058
delta logL = 0.0936209665724

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  3.012e+00  9.779e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.819e+00  4.982e-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.068e+00  2.439e-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.051e+00  3.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.14
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.82 +/- 0.50
Photon Flux (Free Index): 3.69e-07 +/- 1.27e-07
Energy Flux (Free Index): 7.84e-05 +/- 2.45e-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/708267/cmap_HighResolution_411955201_412214401_4FGL_J1229.0+0202_daily_bin666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.39e-07', energy_flux2='7.84e-05', photon_flux_error='1.11e-07', dlogl='9.36e-02', energy_flux='8.07e-05', photon_flux2='3.69e-07', job_status='DONE', time_completed='2021-09-05 19:11:25.115332', photon_index_error2='0.50', photon_index2='2.82', ts='19.61', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='2.45e-05', EG='1.09', time_epoch_completed='1630894285.12', return_code='0', job_id='708267', GAL2='1.07', EG2='1.05', return_code2='0', energy_flux_error='2.64e-05', photon_flux_error2='1.27e-07', ts2='20.14', photon_index='2.61' WHERE bin_id='666' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:11:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 708267: <4FGL_J1229.0+0202_daily_bin666> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin666 187.268 2.0454 411955201 412214401 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 :                                   815.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            939 sec.

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

