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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin1434
RA = 187.268, Dec = 2.0454
tmin = 611020801, tmax = 611280001
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='712924', job_status='RUN', time_executed='2021-09-05 19:11:15.559640', time_epoch_executed='1630894275.56' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='1434'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/712924

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/712924/ft1_4FGL_J1229.0+0202_daily_bin1434.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/712924/ft2_4FGL_J1229.0+0202_daily_bin1434.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/712924/ft1_4FGL_J1229.0+0202_daily_bin1434.fits outfile=/scratch/kocevski/712924/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin1434.fits ra=187.268 dec=2.0454 rad=12.0 tmin=611020801.0 tmax=611280001.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.58
user 3.28
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/712924/ft1_filtered_4FGL_J1229.0+0202_daily_bin1434.fits evtable="EVENTS" scfile=/scratch/kocevski/712924/ft2_4FGL_J1229.0+0202_daily_bin1434.fits sctable="SC_DATA" expcube=/scratch/kocevski/712924/ltcube_611020801_611280001_4FGL_J1229.0+0202_daily_bin1434.fits outfile=/scratch/kocevski/712924/expmap_611020801_611280001_4FGL_J1229.0+0202_daily_bin1434.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/712924/ltcube_611020801_611280001_4FGL_J1229.0+0202_daily_bin1434.fits
.....................!
real 191.11
user 185.07
sys 5.25

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/712924/ft1_filtered_4FGL_J1229.0+0202_daily_bin1434.fits scfile=/scratch/kocevski/712924/ft2_4FGL_J1229.0+0202_daily_bin1434.fits outfile=/scratch/kocevski/712924/cmap_611020801_611280001_4FGL_J1229.0+0202_daily_bin1434.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.59
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.972       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10497E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.222       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10614E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.428       1.0000         .10000E-03   10000.    
    16 'norm      '    66.141       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11594E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4790       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.2795       1.0000         .10000E-03   10000.    
    22 'norm      '    2.5784       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    41.760       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.2501       1.0000         .10000E-03   10000.    
    27 'norm      '    31.242       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    2.1309       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.5659       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .57245       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=   5654.240     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     4325 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.280       -.54394E-05** at limit **
   2  Prefactor     .10000E-03    25.603        .37059E-05** at limit **
   3  Prefactor     15.971        10.852       -.56230E-08    .42087E-05
   4  Prefactor     .10000E-03    80.740        .11317E-04** at limit **
   5  Prefactor     .10000E-03    9.4244        .59378E-05** at limit **
   6  Prefactor     .10000E-03    9.4855       -.20424E-05** at limit **
   7  Prefactor     .10000E-03    41.352        .15348E-05** at limit **
   8  Prefactor     .10000E-03    124.74        .25907E-04** at limit **
   9  Prefactor     .10000E-03    14.093        .24732E-06** at limit **
  10  Prefactor     .10000E-03    47.529       -.23185E-04** at limit **
  11  Prefactor     .10000E-03    9.9702       -.45830E-05** at limit **
  12  Prefactor     25.226        12.243       -.38050E-06    .28662E-03
  13  norm          .10000E-03    1.2002       -.46604E-07** at limit **
  14  norm          .10000E-03    2.3959       -.94424E-06** at limit **
  15  Prefactor     22.430        30.760       -.43034E-07    .16282E-04
  16  norm          66.191        39.768        .17589E-04    .17179E-03
  17  Prefactor     .10000E-03    148.44       -.21143E-04** at limit **
  18  norm          .10000E-03    .20383       -.36290E-06** at limit **
  19  Prefactor     6.4783        7.6327       -.72926E-06   -.90939E-04
  20  Prefactor     .10000E-03    38.542        .13637E-04** at limit **
  21  Prefactor     7.2805        7.9948        .42968E-06    .65245E-04
  22  norm          2.5790        1.6517       -.13508E-06    .20363E-03
  23  Prefactor     .10000E-03    7.3541        .10985E-07** at limit **
  24  Prefactor     .10000E-03    136.99       -.22838E-06** at limit **
  25  Prefactor     41.747        48.410       -.90573E-05    .13145E-04
  26  Prefactor     7.2482        23.407       -.29083E-05   -.42398E-03
  27  norm          31.236        34.815       -.78957E-06    .10056E-04
  28  Prefactor     .10000E-03    5.3983       -.44686E-07** at limit **
  29  norm          2.1309        .41052        .85573E-07   -.71362E-03
  30  Prefactor     .10000E-03    19.305        .11794E-05** at limit **
  31  Normalizat    1.5661        .21552        .28103E-06    .23874E-03
  32  Prefactor     .57241        .16577       -.10758E-05    .11591E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9711
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.226
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 22.4298
  norm       = 66.191
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.47835
  Prefactor  = 0.0001
  Prefactor  = 7.28047
  norm       = 2.57902
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.7467
  Prefactor  = 7.24816
  norm       = 31.2364
  Prefactor  = 0.0001
  norm       = 2.13092
  Prefactor  = 0.0001
  Normalizat = 1.56605
  Prefactor  = 0.57241
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.971        10.857        .10022E-03   -1.4908    
   4  Prefactor     .10000E-03    80.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.8084        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.5126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    41.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    125.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    47.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.9722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.226        12.174        .79764E-04   -1.4703    
  13  norm          .10000E-03    1.2154        .80094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.4907        .22738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.430        30.767        .84579E-04   -1.4760    
  16  norm          66.191        39.771        .24675E-03   -1.4079    
  17  Prefactor     .10000E-03    148.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .30460        .65156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.4783        7.6325        .15767E-03   -1.5199    
  20  Prefactor     .10000E-03    38.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.2805        7.9845        .14866E-03   -1.5168    
  22  norm          2.5790        1.6488        .73681E-04   -1.5387    
  23  Prefactor     .10000E-03    7.4109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    139.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     41.747        48.585        .62033E-04   -1.4415    
  26  Prefactor     7.2482        23.588        .74483E-03   -1.5169    
  27  norm          31.236        34.798        .71685E-04   -1.4590    
  28  Prefactor     .10000E-03    5.4145        .17060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          2.1309        .41287        .19692E-04   -1.5416    
  30  Prefactor     .10000E-03    19.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.5661        .24938        .24848E-03   -.75939    
  32  Prefactor     .57241        .19076        .30140E-03   -1.0876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51708e-09
Minuit parameter uncertainties:
  1  1.94056e-05
  2  1.94471e-06
  3  10.8582
  4  4.13129e-05
  5  7.92746e-05
  6  3.0747e-06
  7  5.03962e-08
  8  0.000133151
  9  1.09348e-05
  10  0.000248302
  11  1.51383e-05
  12  12.1754
  13  3.40494e-06
  14  0.000148958
  15  30.7884
  16  39.7865
  17  3.28368e-05
  18  1.90838e-05
  19  7.63362
  20  7.95782e-06
  21  7.98567
  22  1.64886
  23  1.81386e-05
  24  0.00014658
  25  48.6313
  26  23.6182
  27  34.8208
  28  7.39825e-06
  29  0.412867
  30  2.44455e-06
  31  0.249575
  32  0.190977
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.000e-04  1.908e-05  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:  5.724e-01  1.910e-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.566e+00  2.496e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/712924/likelihoodResults_611020801_611280001_4FGL_J1229.0+0202_daily_bin1434.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) = 5654.2409356
delta logL = -0.000819834674076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5654.24008872
delta logL = 2.70449481832e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10915E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5075       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5661       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57239       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5654.240     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      302 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .40508        .57602E-03** at limit **
   2  alpha         3.3508        3.1470        .18586E-01    .97061E-06
   3  Normalizat    1.5660        .24434        .24848E-03    .22175E-02
   4  Prefactor     .57242        .18965        .30140E-03    .17943E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.35078
  Normalizat = 1.56605
  Prefactor  = 0.572417
 **********
 **   18 **HESSE 
 **********

 FCN=   5654.240     FROM HESSE     STATUS=OK            23 CALLS      325 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .40443        .11520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.3508        3.1047        .37172E-02    .34725    
   3  Normalizat    1.5660        .24449        .49697E-04   -.75939    
   4  Prefactor     .57242        .18978        .60279E-04   -1.0876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.23835e-09
Minuit parameter uncertainties:
  1  8.87472e-06
  2  84.3303
  3  0.244674
  4  0.189989
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/712924': 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) = 5654.24007537
delta logL = 4.0399622776e-05

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.000e-04  8.875e-06  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  3.351e+00  8.433e+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:  5.724e-01  1.900e-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.566e+00  2.447e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/712924/cmap_HighResolution_611020801_611280001_4FGL_J1229.0+0202_daily_bin1434.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.41e-05', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-05 19:26:26.804833', job_id='712924', GAL2='0.57', fit_tolerance='1e-08', EG2='1.57', EG='1.57', time_epoch_completed='1630895186.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='4.04e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1434' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:26:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 712924: <4FGL_J1229.0+0202_daily_bin1434> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin1434> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 19:10:54 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 19:10:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 19:10:55 2021
Terminated at Sun Sep  5 19:26:27 2021
Results reported at Sun Sep  5 19:26:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin1434 187.268 2.0454 611020801 611280001 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 :                                   888.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            933 sec.

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

