/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 18 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 = 7386
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1229.0+0202_daily_bin325
RA = 187.268, Dec = 2.0454
tmin = 323568001, tmax = 323827201
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='705404', job_status='RUN', time_executed='2021-09-05 18:46:54.405838', time_epoch_executed='1630892814.41' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705404

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705404/ft1_4FGL_J1229.0+0202_daily_bin325.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705404/ft2_4FGL_J1229.0+0202_daily_bin325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705404/ft1_4FGL_J1229.0+0202_daily_bin325.fits outfile=/scratch/kocevski/705404/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin325.fits ra=187.268 dec=2.0454 rad=12.0 tmin=323568001.0 tmax=323827201.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.31
user 3.08
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/705404/ft1_filtered_4FGL_J1229.0+0202_daily_bin325.fits" evtable="EVENTS" scfile=/scratch/kocevski/705404/ft2_4FGL_J1229.0+0202_daily_bin325.fits sctable="SC_DATA" outfile=/scratch/kocevski/705404/ltcube_323568001_323827201_4FGL_J1229.0+0202_daily_bin325.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/705404/ft2_4FGL_J1229.0+0202_daily_bin325.fits
.....................!
real 11.96
user 11.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705404/ft1_filtered_4FGL_J1229.0+0202_daily_bin325.fits evtable="EVENTS" scfile=/scratch/kocevski/705404/ft2_4FGL_J1229.0+0202_daily_bin325.fits sctable="SC_DATA" expcube=/scratch/kocevski/705404/ltcube_323568001_323827201_4FGL_J1229.0+0202_daily_bin325.fits outfile=/scratch/kocevski/705404/expmap_323568001_323827201_4FGL_J1229.0+0202_daily_bin325.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/705404/ltcube_323568001_323827201_4FGL_J1229.0+0202_daily_bin325.fits
.....................!
real 192.44
user 185.22
sys 4.03

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/705404/ft1_filtered_4FGL_J1229.0+0202_daily_bin325.fits scfile=/scratch/kocevski/705404/ft2_4FGL_J1229.0+0202_daily_bin325.fits outfile=/scratch/kocevski/705404/cmap_323568001_323827201_4FGL_J1229.0+0202_daily_bin325.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.58
user 0.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.514       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12153E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .72033E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11667E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    67.642       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15921E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    44.597       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19194E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3013       1.0000         .10000E-03   10000.    
    14 'norm      '    2.1424       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11071E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .68585E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    4.0441       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    50.480       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.2430       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    52.883       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.7350       1.0000         .10000E-03   10000.    
    30 'Prefactor '    19.682       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1497       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1859       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=   6623.160     FROM MIGRAD    STATUS=CONVERGED    847 CALLS     4351 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.828        .20827E-04** at limit **
   2  Prefactor     .10000E-03    27.815       -.98237E-05** at limit **
   3  Prefactor     26.515        12.857       -.97550E-07    .33733E-04
   4  Prefactor     .10000E-03    39.718        .13778E-04** at limit **
   5  Prefactor     .10134E-03    5.7388        .26788E-06** at limit **
   6  Prefactor     .10000E-03    19.492        .20626E-05** at limit **
   7  Prefactor     .10000E-03    42.874       -.11901E-04** at limit **
   8  Prefactor     67.643        57.874       -.66397E-06   -.31980E-04
   9  Prefactor     .10000E-03    131.35        .45529E-05** at limit **
  10  Prefactor     .10000E-03    17.891       -.12067E-04** at limit **
  11  Prefactor     44.559        42.840       -.41557E-05    .12777E-04
  12  Prefactor     .10003E-03    6.0725        .13827E-05** at limit **
  13  norm          2.3032        2.3943       -.30654E-06   -.97167E-03
  14  norm          2.1317        4.5735       -.23933E-06   -.75978E-03
  15  Prefactor     .10000E-03    42.769       -.11934E-04** at limit **
  16  norm          .10000E-03    27.933       -.93942E-05** at limit **
  17  Prefactor     .10000E-03    316.35        .14623E-04** at limit **
  18  norm          4.0445        .91745       -.42943E-08   -.31693E-03
  19  Prefactor     .10000E-03    9.6639       -.12875E-06** at limit **
  20  Prefactor     50.460        32.193        .12358E-05    .10757E-04
  21  Prefactor     .10000E-03    6.8383       -.30595E-07** at limit **
  22  norm          5.2404        2.3488       -.84377E-07   -.15653E-03
  23  Prefactor     .10000E-03    4.5556        .79117E-08** at limit **
  24  Prefactor     .10000E-03    19.618        .17477E-05** at limit **
  25  Prefactor     52.874        50.296       -.34133E-05    .17592E-04
  26  Prefactor     .10000E-03    20.919        .63864E-05** at limit **
  27  norm          .10000E-03    15.538        .39364E-05** at limit **
  28  Prefactor     .10000E-03    14.080       -.10805E-05** at limit **
  29  norm          1.7353        .38549        .16985E-06   -.92482E-03
  30  Prefactor     19.604        55.584       -.55549E-04    .25182E-05
  31  Normalizat    1.1501        .23937        .69507E-06   -.45411E-04
  32  Prefactor     1.1855        .19000        .16212E-05   -.15990E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.5146
  Prefactor  = 0.0001
  Prefactor  = 0.000101338
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.6435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.5587
  Prefactor  = 0.000100026
  norm       = 2.30324
  norm       = 2.13166
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.04446
  Prefactor  = 0.0001
  Prefactor  = 50.4604
  Prefactor  = 0.0001
  norm       = 5.24043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.8744
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.73529
  Prefactor  = 19.6041
  Normalizat = 1.15007
  Prefactor  = 1.1855
 **********
 **   18 **HESSE 
 **********

 FCN=   6623.160     FROM HESSE     STATUS=OK           651 CALLS     5002 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.515        12.871        .77800E-04   -1.4678    
   4  Prefactor     .10000E-03    39.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10134E-03    6.3939        .61536E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    42.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     67.643        57.952        .48802E-04   -1.4061    
   9  Prefactor     .10000E-03    134.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     44.559        42.436        .60035E-04   -1.4372    
  12  Prefactor     .10003E-03    20.051        .36429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3032        2.2463        .11694E-03   -1.5404    
  14  norm          2.1317        4.4997        .21722E-03   -1.5416    
  15  Prefactor     .10000E-03    42.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    27.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    316.75        .18733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.0445        .91392        .32963E-04   -1.5306    
  19  Prefactor     .10000E-03    9.8916        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     50.460        32.182        .56445E-04   -1.4286    
  21  Prefactor     .10000E-03    6.8744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.2404        2.3462        .78306E-04   -1.5250    
  23  Prefactor     .10000E-03    4.5745        .16962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     52.874        50.514        .55154E-04   -1.4252    
  26  Prefactor     .10000E-03    20.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    15.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    14.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.7353        .38731        .22186E-04   -1.5445    
  30  Prefactor     19.604        55.640        .90281E-04   -1.4822    
  31  Normalizat    1.1501        .28594        .33283E-03   -.88160    
  32  Prefactor     1.1855        .22738        .26772E-03   -.86779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22061e-09
Minuit parameter uncertainties:
  1  0.000208147
  2  3.23182e-06
  3  12.8722
  4  1.02337e-05
  5  0.00585137
  6  5.66422e-05
  7  6.48117e-06
  8  58.0006
  9  0.00015978
  10  2.42053e-05
  11  42.4649
  12  0.00143167
  13  2.24638
  14  4.50039
  15  3.08825e-05
  16  1.98903e-05
  17  0.000170547
  18  0.913926
  19  4.3611e-05
  20  32.1933
  21  8.74833e-06
  22  2.34628
  23  1.33029e-06
  24  7.62058e-06
  25  50.5546
  26  1.41086e-05
  27  6.87217e-06
  28  3.32008e-05
  29  0.387306
  30  55.7876
  31  0.286329
  32  0.227568
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  4.044e+00  9.139e-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:  1.185e+00  2.276e-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.150e+00  2.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 48.60
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 4.44e-07 +/- 1.00e-07
Energy Flux (Fixed Index): 1.06e-04 +/- 2.39e-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) = 6622.74454121
delta logL = 0.415890646655

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6622.7247349
delta logL = 0.435696958037

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8755       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8852       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0926       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2215       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=   6622.725     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      203 TOTAL
                     EDM=   .98E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8756        1.3294        .51243E-02   -.27419E-04
   2  alpha         2.8852        .44809        .19614       -.51890E-05
   3  Normalizat    1.0926        .23551        .76769E-01    .32153E-04
   4  Prefactor     1.2215        .19064        .59787E-01   -.92346E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.87556
  alpha      = 2.8852
  Normalizat = 1.09262
  Prefactor  = 1.22151
 **********
 **   18 **HESSE 
 **********

 FCN=   6622.725     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .90E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8756        .87095        .31396E-04   -1.5314    
   2  alpha         2.8852        .30022        .85375E-03    .15470    
   3  Normalizat    1.0926        .28429        .33979E-03   -.89989    
   4  Prefactor     1.2215        .22766        .26439E-03   -.85672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.95312e-12
Minuit parameter uncertainties:
  1  0.870952
  2  0.300968
  3  0.284688
  4  0.227841
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705404': 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) = 6622.72473488
delta logL = 0.435696973464

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  3.876e+00  8.710e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.885e+00  3.010e-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.222e+00  2.278e-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.093e+00  2.847e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 49.88
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.89 +/- 0.30
Photon Flux (Free Index): 4.94e-07 +/- 1.14e-07
Energy Flux (Free Index): 1.02e-04 +/- 2.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/705404/cmap_HighResolution_323568001_323827201_4FGL_J1229.0+0202_daily_bin325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.44e-07', energy_flux2='1.02e-04', photon_flux_error='1.00e-07', dlogl='4.36e-01', energy_flux='1.06e-04', photon_flux2='4.94e-07', job_status='DONE', time_completed='2021-09-05 19:01:09.255225', photon_index_error2='0.30', photon_index2='2.89', ts='48.60', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='2.17e-05', EG='1.15', time_epoch_completed='1630893669.26', return_code='0', job_id='705404', GAL2='1.22', EG2='1.09', return_code2='0', energy_flux_error='2.39e-05', photon_flux_error2='1.14e-07', ts2='49.88', photon_index='2.61' WHERE bin_id='325' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:01:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 705404: <4FGL_J1229.0+0202_daily_bin325> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin325> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 18:46:15 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:46:17 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:46:17 2021
Terminated at Sun Sep  5 19:01:09 2021
Results reported at Sun Sep  5 19:01:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin325 187.268 2.0454 323568001 323827201 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 :                                   837.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             317.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            894 sec.

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

