/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 71 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 = 7485
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1229.0+0202_daily_bin271
RA = 187.268, Dec = 2.0454
tmin = 309571201, tmax = 309830401
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='705295', job_status='RUN', time_executed='2021-09-05 18:47:53.318818', time_epoch_executed='1630892873.32' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='271'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705295

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705295/ft1_4FGL_J1229.0+0202_daily_bin271.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705295/ft2_4FGL_J1229.0+0202_daily_bin271.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705295/ft1_4FGL_J1229.0+0202_daily_bin271.fits outfile=/scratch/kocevski/705295/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin271.fits ra=187.268 dec=2.0454 rad=12.0 tmin=309571201.0 tmax=309830401.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.25
user 5.95
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705295/ft1_filtered_4FGL_J1229.0+0202_daily_bin271.fits evtable="EVENTS" scfile=/scratch/kocevski/705295/ft2_4FGL_J1229.0+0202_daily_bin271.fits sctable="SC_DATA" expcube=/scratch/kocevski/705295/ltcube_309571201_309830401_4FGL_J1229.0+0202_daily_bin271.fits outfile=/scratch/kocevski/705295/expmap_309571201_309830401_4FGL_J1229.0+0202_daily_bin271.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/705295/ltcube_309571201_309830401_4FGL_J1229.0+0202_daily_bin271.fits
.....................!
real 190.44
user 184.97
sys 5.09

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/705295/ft1_filtered_4FGL_J1229.0+0202_daily_bin271.fits scfile=/scratch/kocevski/705295/ft2_4FGL_J1229.0+0202_daily_bin271.fits outfile=/scratch/kocevski/705295/cmap_309571201_309830401_4FGL_J1229.0+0202_daily_bin271.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/705295/ft1_filtered_4FGL_J1229.0+0202_daily_bin271.fits scfile=/scratch/kocevski/705295/ft2_4FGL_J1229.0+0202_daily_bin271.fits outfile=/scratch/kocevski/705295/cmap_HighResolution_309571201_309830401_4FGL_J1229.0+0202_daily_bin271.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    13.035       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.426       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7739       1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.770       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10651E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.6862       1.0000         .10000E-03   10000.    
    13 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.3080       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.8407       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .91402       1.0000         .10000E-03   10000.    
    22 'norm      '    2.4480       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.902       1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.523       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.3076       1.0000         .10000E-03   10000.    
    29 'norm      '    1.4320       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.8634       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .42903       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=   5248.008     FROM MIGRAD    STATUS=CONVERGED    829 CALLS     4399 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.258       -.64474E-06** at limit **
   2  Prefactor     13.044        144.81        .22826E-05    .28276E-04
   3  Prefactor     17.427        13.432        .16438E-06    .62595E-04
   4  Prefactor     .10001E-03    40.646       -.22141E-05** at limit **
   5  Prefactor     .10000E-03    3.7760        .18785E-06** at limit **
   6  Prefactor     .10000E-03    12.362       -.30049E-06** at limit **
   7  Prefactor     .10000E-03    88.932        .10315E-05** at limit **
   8  Prefactor     6.7473        56.123       -.12674E-05   -.81584E-04
   9  Prefactor     35.776        36.776        .45681E-06    .77412E-04
  10  Prefactor     .10000E-03    53.569        .15889E-05** at limit **
  11  Prefactor     .10000E-03    12.666       -.22728E-06** at limit **
  12  Prefactor     7.6912        9.3187        .89733E-06    .50475E-03
  13  norm          .10000E-03    1.1531       -.51854E-06** at limit **
  14  norm          5.3076        3.8717        .43795E-07    .36345E-04
  15  Prefactor     .10000E-03    97.998       -.72342E-06** at limit **
  16  norm          .10000E-03    45.464       -.21799E-06** at limit **
  17  Prefactor     .10001E-03    71.621        .23071E-05** at limit **
  18  norm          3.8405        .91599       -.25146E-07   -.82942E-03
  19  Prefactor     .10000E-03    2.6363        .33233E-07** at limit **
  20  Prefactor     .10000E-03    7.4697        .27405E-07** at limit **
  21  Prefactor     .97171        31.841       -.13252E-04    .17731E-03
  22  norm          2.4486        2.3672        .32205E-06    .62066E-03
  23  Prefactor     .10000E-03    6.2983       -.32406E-06** at limit **
  24  Prefactor     10.894        73.359       -.24999E-05   -.72332E-04
  25  Prefactor     11.525        32.723        .13204E-06   -.90775E-06
  26  Prefactor     .10000E-03    14.849        .47167E-06** at limit **
  27  norm          .10001E-03    100.63       -.30331E-05** at limit **
  28  Prefactor     6.3097        14.237        .86167E-06    .13236E-03
  29  norm          1.4320        .38384       -.19039E-07   -.18385E-02
  30  Prefactor     .10000E-03    45.229       -.35478E-06** at limit **
  31  Normalizat    1.8634        .26405       -.14978E-05   -.24475E-03
  32  Prefactor     .42896        .19703        .13323E-05   -.12812E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 13.0444
  Prefactor  = 17.4266
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.74727
  Prefactor  = 35.7764
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 7.69123
  norm       = 0.0001
  norm       = 5.30761
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100013
  norm       = 3.84055
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.971714
  norm       = 2.4486
  Prefactor  = 0.0001
  Prefactor  = 10.8939
  Prefactor  = 11.5246
  Prefactor  = 0.000100001
  norm       = 0.000100015
  Prefactor  = 6.30972
  norm       = 1.43196
  Prefactor  = 0.0001
  Normalizat = 1.86337
  Prefactor  = 0.428961
 **********
 **   18 **HESSE 
 **********

 FCN=   5248.008     FROM HESSE     STATUS=OK           651 CALLS     5050 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.044        145.74        .11094E-03   -1.4985    
   3  Prefactor     17.427        13.462        .95944E-04   -1.4873    
   4  Prefactor     .10001E-03    40.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.7963        .13751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    89.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.7473        57.218        .15416E-03   -1.5188    
   9  Prefactor     35.776        36.928        .67007E-04   -1.4511    
  10  Prefactor     .10000E-03    54.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.6912        9.1327        .14464E-03   -1.5153    
  13  norm          .10000E-03    1.7793        .14582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.3076        3.8740        .11382E-03   -1.5247    
  15  Prefactor     .10000E-03    99.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    45.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    72.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.8405        .91624        .30564E-04   -1.5316    
  19  Prefactor     .10000E-03    2.6375        .11488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.4718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .97171        33.144        .45144E-02   -1.5511    
  22  norm          2.4486        2.3746        .10157E-03   -1.5395    
  23  Prefactor     .10000E-03    6.3275        .17736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.894        73.437        .12134E-03   -1.5048    
  25  Prefactor     11.525        32.777        .11801E-03   -1.5029    
  26  Prefactor     .10000E-03    14.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10001E-03    102.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     6.3097        14.319        .15983E-03   -1.5206    
  29  norm          1.4320        .38542        .21957E-04   -1.5469    
  30  Prefactor     .10000E-03    45.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.8634        .30684        .24949E-03   -.68021    
  32  Prefactor     .42896        .22154        .36561E-03   -1.1535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6978e-09
Minuit parameter uncertainties:
  1  0.000258779
  2  87.4737
  3  13.4646
  4  0.000919214
  5  2.29943e-05
  6  1.02536e-05
  7  0.000874984
  8  39.3478
  9  36.9513
  10  0.000978887
  11  9.65321e-05
  12  9.13438
  13  1.48041e-05
  14  3.87418
  15  0.00090247
  16  0.000188075
  17  0.00195089
  18  0.916247
  19  3.52306e-06
  20  4.94569e-06
  21  11.3564
  22  2.37467
  23  8.7213e-06
  24  56.6693
  25  32.8281
  26  0.00017533
  27  0.00248839
  28  14.3267
  29  0.385425
  30  0.000248131
  31  0.307156
  32  0.221989
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  3.841e+00  9.162e-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:  4.290e-01  2.220e-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.863e+00  3.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 46.77
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 4.22e-07 +/- 1.01e-07
Energy Flux (Fixed Index): 1.00e-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) = 5247.88990609
delta logL = 0.118422619355

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5247.88620114
delta logL = 0.122127567227

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7518       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7632       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8354       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .44664       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=   5247.886     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7520        1.1527        .52111E-02    .69479E-04
   2  alpha         2.7631        .39125        .18325        .19777E-05
   3  Normalizat    1.8353        .25597        .56723E-01   -.26819E-05
   4  Prefactor     .44668        .19416        .81018E-01    .34485E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.75205
  alpha      = 2.76314
  Normalizat = 1.83534
  Prefactor  = 0.446677
 **********
 **   18 **HESSE 
 **********

 FCN=   5247.886     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .10E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7520        .88233        .29787E-04   -1.5321    
   2  alpha         2.7631        .30544        .79764E-03    .10545    
   3  Normalizat    1.8353        .29594        .25078E-03   -.68745    
   4  Prefactor     .44668        .22135        .35893E-03   -1.1449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00735e-16
Minuit parameter uncertainties:
  1  0.882328
  2  0.30621
  3  0.29623
  4  0.221774
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705295': 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) = 5247.88620109
delta logL = 0.122127609858

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  3.752e+00  8.823e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.763e+00  3.062e-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:  4.467e-01  2.218e-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.835e+00  2.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 47.38
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.76 +/- 0.31
Photon Flux (Free Index): 4.46e-07 +/- 1.10e-07
Energy Flux (Free Index): 9.74e-05 +/- 2.27e-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/705295/cmap_HighResolution_309571201_309830401_4FGL_J1229.0+0202_daily_bin271.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.22e-07', energy_flux2='9.74e-05', photon_flux_error='1.01e-07', dlogl='1.22e-01', energy_flux='1.00e-04', photon_flux2='4.46e-07', job_status='DONE', time_completed='2021-09-05 19:00:54.800631', photon_index_error2='0.31', photon_index2='2.76', ts='46.77', fit_tolerance='1e-08', GAL='0.43', photon_index_error='0.00', energy_flux_error2='2.27e-05', EG='1.86', time_epoch_completed='1630893654.8', return_code='0', job_id='705295', GAL2='0.45', EG2='1.84', return_code2='0', energy_flux_error='2.39e-05', photon_flux_error2='1.10e-07', ts2='47.38', photon_index='2.61' WHERE bin_id='271' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:00:54 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin271 187.268 2.0454 309571201 309830401 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 :                                   761.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            886 sec.

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

