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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin438
RA = 187.268, Dec = 2.0454
tmin = 352857601, tmax = 353116801
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='706591', job_status='RUN', time_executed='2021-09-05 18:54:00.517585', time_epoch_executed='1630893240.52' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706591

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706591/ft1_4FGL_J1229.0+0202_daily_bin438.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706591/ft2_4FGL_J1229.0+0202_daily_bin438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706591/ft1_4FGL_J1229.0+0202_daily_bin438.fits outfile=/scratch/kocevski/706591/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin438.fits ra=187.268 dec=2.0454 rad=12.0 tmin=352857601.0 tmax=353116801.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.43
user 3.16
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706591/ft1_filtered_4FGL_J1229.0+0202_daily_bin438.fits evtable="EVENTS" scfile=/scratch/kocevski/706591/ft2_4FGL_J1229.0+0202_daily_bin438.fits sctable="SC_DATA" expcube=/scratch/kocevski/706591/ltcube_352857601_353116801_4FGL_J1229.0+0202_daily_bin438.fits outfile=/scratch/kocevski/706591/expmap_352857601_353116801_4FGL_J1229.0+0202_daily_bin438.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/706591/ltcube_352857601_353116801_4FGL_J1229.0+0202_daily_bin438.fits
.....................!
real 190.96
user 186.25
sys 4.32

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/706591/ft1_filtered_4FGL_J1229.0+0202_daily_bin438.fits scfile=/scratch/kocevski/706591/ft2_4FGL_J1229.0+0202_daily_bin438.fits outfile=/scratch/kocevski/706591/cmap_352857601_353116801_4FGL_J1229.0+0202_daily_bin438.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706591/ft1_filtered_4FGL_J1229.0+0202_daily_bin438.fits scfile=/scratch/kocevski/706591/ft2_4FGL_J1229.0+0202_daily_bin438.fits outfile=/scratch/kocevski/706591/cmap_HighResolution_352857601_353116801_4FGL_J1229.0+0202_daily_bin438.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/706591/ft1_filtered_4FGL_J1229.0+0202_daily_bin438.fits evtable="EVENTS" scfile=/scratch/kocevski/706591/ft2_4FGL_J1229.0+0202_daily_bin438.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/706591/Model_4FGL_J1229.0+0202_daily_bin438.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/706591/ft1_filtered_4FGL_J1229.0+0202_daily_bin438.fits.....................!
real 30.88
user 29.56
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3995       1.0000         .10000E-03   10000.    
     4 'Prefactor '    84.731       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.7588       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15801E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.324       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5285       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6023       1.0000         .10000E-03   10000.    
    14 'norm      '    5.9413       1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.027       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .21929       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.934       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .72846       1.0000         .10000E-03   10000.    
    22 'norm      '    .10484E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.3082       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    26.982       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10814       1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.9407       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .81757       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1845       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=   2771.812     FROM MIGRAD    STATUS=CONVERGED    854 CALLS     5855 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.364       -.35262E-07** at limit **
   2  Prefactor     .10000E-03    103.05       -.31393E-06** at limit **
   3  Prefactor     9.3992        9.5530        .28086E-07    .55732E-05
   4  Prefactor     84.746        117.40        .21695E-05   -.62160E-05
   5  Prefactor     6.7592        7.4838        .57642E-06    .76238E-04
   6  Prefactor     .10000E-03    36.798        .86395E-06** at limit **
   7  Prefactor     .10000E-03    209.17       -.32511E-05** at limit **
   8  Prefactor     .10000E-03    37.738        .11361E-05** at limit **
   9  Prefactor     34.351        58.875        .29114E-05    .13121E-04
  10  Prefactor     4.5303        64.658        .14264E-05   -.78531E-05
  11  Prefactor     .10000E-03    25.391        .41589E-06** at limit **
  12  Prefactor     .10000E-03    7.3585       -.33591E-07** at limit **
  13  norm          1.6028        2.4842        .46577E-07   -.55422E-04
  14  norm          5.9421        5.0566        .68637E-07   -.30993E-04
  15  Prefactor     36.045        64.052        .25389E-05    .84132E-05
  16  norm          .10000E-03    60.131       -.20724E-05** at limit **
  17  Prefactor     .10000E-03    136.91        .41581E-05** at limit **
  18  norm          .21948        .61103        .14407E-06   -.60033E-04
  19  Prefactor     15.932        14.782        .20727E-06   -.92786E-05
  20  Prefactor     .10000E-03    20.778        .62629E-06** at limit **
  21  Prefactor     .72255        18.102        .57267E-06   -.91902E-04
  22  norm          .10000E-03    1.6670       -.33440E-06** at limit **
  23  Prefactor     .10000E-03    51.797        .16932E-05** at limit **
  24  Prefactor     .10000E-03    30.019       -.17241E-05** at limit **
  25  Prefactor     5.3886        278.00        .14236E-05    .54075E-05
  26  Prefactor     .10000E-03    19.899       -.66222E-06** at limit **
  27  norm          26.976        58.787       -.28211E-05   -.57511E-04
  28  Prefactor     .10000E-03    7.1186       -.89695E-07** at limit **
  29  norm          .10816        .26527        .10160E-05    .27052E-03
  30  Prefactor     3.9834        759.32       -.88733E-05   -.80599E-05
  31  Normalizat    .81693        .33913       -.58000E-05   -.18411E-04
  32  Prefactor     1.1849        .26038        .23995E-05   -.23202E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.3992
  Prefactor  = 84.7465
  Prefactor  = 6.75921
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.3509
  Prefactor  = 4.53034
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.60278
  norm       = 5.94212
  Prefactor  = 36.0454
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.219481
  Prefactor  = 15.9318
  Prefactor  = 0.0001
  Prefactor  = 0.722549
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.38863
  Prefactor  = 0.0001
  norm       = 26.9756
  Prefactor  = 0.0001
  norm       = 0.10816
  Prefactor  = 3.98342
  Normalizat = 0.81693
  Prefactor  = 1.18489
 **********
 **   18 **HESSE 
 **********

 FCN=   2771.812     FROM HESSE     STATUS=OK           661 CALLS     6516 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.366        .18084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    103.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.3992        9.5555        .13072E-03   -1.5095    
   4  Prefactor     84.746        117.10        .43641E-04   -1.3864    
   5  Prefactor     6.7592        7.4898        .14743E-03   -1.5188    
   6  Prefactor     .10000E-03    37.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    209.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.351        58.888        .68400E-04   -1.4535    
  10  Prefactor     4.5303        64.276        .18918E-03   -1.5282    
  11  Prefactor     .10000E-03    25.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.3659        .13945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6028        2.4509        .99945E-04   -1.5455    
  14  norm          5.9421        5.0234        .10066E-03   -1.5220    
  15  Prefactor     36.045        64.052        .66769E-04   -1.4506    
  16  norm          .10000E-03    60.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    137.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .21948        .57513        .62477E-03   -1.5614    
  19  Prefactor     15.932        14.779        .10034E-03   -1.4909    
  20  Prefactor     .10000E-03    20.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .72255        59.451        .41864E-02   -1.5538    
  22  norm          .10000E-03    2.7244        .13057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    52.914        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    30.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.3886        276.29        .17444E-03   -1.5244    
  26  Prefactor     .10000E-03    19.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          26.976        58.911        .77123E-04   -1.4669    
  28  Prefactor     .10000E-03    7.1252        .13719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10816        .26715        .40985E-03   -1.5642    
  30  Prefactor     3.9834        758.13        .20321E-03   -1.5309    
  31  Normalizat    .81693        .38953        .30544E-03   -.99444    
  32  Prefactor     1.1849        .30566        .21439E-03   -.86798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21433e-09
Minuit parameter uncertainties:
  1  1.13446e-06
  2  6.3386e-07
  3  9.55702
  4  117.424
  5  7.49088
  6  3.6647e-05
  7  0.000171723
  8  6.562e-05
  9  58.9878
  10  34.1728
  11  1.09738e-05
  12  1.31018e-06
  13  2.45102
  14  5.02373
  15  64.1745
  16  0.000180816
  17  0.000527375
  18  0.575141
  19  14.7819
  20  5.4854e-05
  21  13.1207
  22  7.39326e-05
  23  0.000366665
  24  6.92843e-05
  25  77.5513
  26  1.95068e-05
  27  59.0389
  28  1.17654e-05
  29  0.267154
  30  111.369
  31  0.390874
  32  0.306117
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  2.195e-01  5.751e-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  3.061e-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:  8.169e-01  3.909e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.19
Ra Dec: 187.268 2.045
Photon Flux Upper Limit: 1.94e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.62e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/706591/likelihoodResults_352857601_353116801_4FGL_J1229.0+0202_daily_bin438.txt

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) = 2771.73419188
delta logL = 0.0776896094371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2771.73203757
delta logL = 0.0798439228447

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21255       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4719       1.0000          .0000       5.0000    
     3 'Normalizat'    .79691       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1965       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=   2771.732     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      200 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21253        22.072        .10035E-01    .93307E-03
   2  alpha         3.4737        4.2112        .46002        .38394E-05
   3  Normalizat    .79697        .95035E-01    .69801E-01    .68536E-05
   4  Prefactor     1.1966        .76941E-01    .34714E-01   -.70411E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.212531
  alpha      = 3.47373
  Normalizat = 0.796972
  Prefactor  = 1.19658
 **********
 **   18 **HESSE 
 **********

 FCN=   2771.732     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21253        .52726        .47363E-03   -1.5616    
   2  alpha         3.4737        3.7977        .42712E-02    .40008    
   3  Normalizat    .79697        .36476        .30887E-03   -1.0018    
   4  Prefactor     1.1966        .30079        .21345E-03   -.86437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96469e-09
Minuit parameter uncertainties:
  1  0.52727
  2  2.54644
  3  0.365888
  4  0.301221
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706591': 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) = 2771.73203676
delta logL = 0.0798447311527

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  2.125e-01  5.273e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  3.474e+00  2.546e+00  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.197e+00  3.012e-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:  7.970e-01  3.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
Ra Dec: 187.268 2.045

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/706591/cmap_HighResolution_352857601_353116801_4FGL_J1229.0+0202_daily_bin438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-05', job_status='DONE', photon_flux_upper_limit='1.94e-07', time_completed='2021-09-05 19:04:40.170284', job_id='706591', GAL2='1.20', fit_tolerance='1e-08', EG2='0.80', EG='0.82', time_epoch_completed='1630893880.17', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='7.98e-02', ts2='0.35', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='438' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:04:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 706591: <4FGL_J1229.0+0202_daily_bin438> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin438> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 18:50:29 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:50:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 18:50:31 2021
Terminated at Sun Sep  5 19:04:40 2021
Results reported at Sun Sep  5 19:04:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin438 187.268 2.0454 352857601 353116801 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 :                                   638.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            851 sec.

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

