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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin533
RA = 187.268, Dec = 2.0454
tmin = 377481601, tmax = 377740801
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='706724', job_status='RUN', time_executed='2021-09-05 18:53:02.732981', time_epoch_executed='1630893182.73' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='533'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706724

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706724/ft1_4FGL_J1229.0+0202_daily_bin533.fits


Retrieving the FT1 file...

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

Retrieving 40 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706724/ft2_4FGL_J1229.0+0202_daily_bin533.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706724/ft1_4FGL_J1229.0+0202_daily_bin533.fits outfile=/scratch/kocevski/706724/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin533.fits ra=187.268 dec=2.0454 rad=12.0 tmin=377481601.0 tmax=377740801.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.20
user 2.97
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/706724/ft1_filtered_4FGL_J1229.0+0202_daily_bin533.fits" evtable="EVENTS" scfile=/scratch/kocevski/706724/ft2_4FGL_J1229.0+0202_daily_bin533.fits sctable="SC_DATA" outfile=/scratch/kocevski/706724/ltcube_377481601_377740801_4FGL_J1229.0+0202_daily_bin533.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/706724/ft2_4FGL_J1229.0+0202_daily_bin533.fits
.....................!
real 10.14
user 9.83
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706724/ft1_filtered_4FGL_J1229.0+0202_daily_bin533.fits evtable="EVENTS" scfile=/scratch/kocevski/706724/ft2_4FGL_J1229.0+0202_daily_bin533.fits sctable="SC_DATA" expcube=/scratch/kocevski/706724/ltcube_377481601_377740801_4FGL_J1229.0+0202_daily_bin533.fits outfile=/scratch/kocevski/706724/expmap_377481601_377740801_4FGL_J1229.0+0202_daily_bin533.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/706724/ltcube_377481601_377740801_4FGL_J1229.0+0202_daily_bin533.fits
.....................!
real 190.49
user 185.95
sys 4.13

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/706724/ft1_filtered_4FGL_J1229.0+0202_daily_bin533.fits scfile=/scratch/kocevski/706724/ft2_4FGL_J1229.0+0202_daily_bin533.fits outfile=/scratch/kocevski/706724/cmap_377481601_377740801_4FGL_J1229.0+0202_daily_bin533.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.047       1.0000         .10000E-03   10000.    
     9 'Prefactor '    58.800       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.455       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.675       1.0000         .10000E-03   10000.    
    13 'norm      '    4.7289       1.0000         .10000E-03   10000.    
    14 'norm      '    3.2690       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.179       1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.1335       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.8025       1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.952       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    23.294       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.153       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    51.764       1.0000         .10000E-03   10000.    
    27 'norm      '    43.557       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.1770       1.0000         .10000E-03   10000.    
    29 'norm      '    .10408E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    75.437       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1450       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .78254       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=   5613.291     FROM MIGRAD    STATUS=CONVERGED    839 CALLS     4340 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.9213        .81066E-07** at limit **
   2  Prefactor     .10000E-03    87.008        .50119E-06** at limit **
   3  Prefactor     .10000E-03    8.4779        .39161E-06** at limit **
   4  Prefactor     .10000E-03    23.817       -.27204E-06** at limit **
   5  Prefactor     .10000E-03    4.1635        .31758E-06** at limit **
   6  Prefactor     .10000E-03    12.244       -.17527E-06** at limit **
   7  Prefactor     .10000E-03    29.836        .62918E-07** at limit **
   8  Prefactor     10.023        34.111       -.12030E-05   -.47062E-05
   9  Prefactor     58.812        54.889       -.13992E-05    .16770E-04
  10  Prefactor     .10000E-03    18.035        .36939E-06** at limit **
  11  Prefactor     16.445        33.399       -.69557E-06    .71968E-06
  12  Prefactor     17.677        15.194       -.21154E-06    .19508E-04
  13  norm          4.7292        3.5714       -.24579E-07    .27215E-04
  14  norm          3.2696        3.7919        .37138E-07    .18743E-04
  15  Prefactor     19.176        25.725       -.37261E-06    .18500E-05
  16  norm          .10000E-03    20.307        .23523E-07** at limit **
  17  Prefactor     .10000E-03    85.698       -.12807E-07** at limit **
  18  norm          3.1335        .93652       -.40822E-07    .23770E-03
  19  Prefactor     6.8026        8.0520       -.11473E-06    .29827E-05
  20  Prefactor     30.953        28.583       -.36688E-06    .42776E-05
  21  Prefactor     .10000E-03    4.5022        .80563E-08** at limit **
  22  norm          23.294        3.9441       -.10601E-06    .10416E-03
  23  Prefactor     .10000E-03    3.8194       -.26514E-06** at limit **
  24  Prefactor     25.124        41.506       -.62784E-06    .31739E-05
  25  Prefactor     .10000E-03    67.561        .95432E-06** at limit **
  26  Prefactor     51.792        49.519       -.10763E-05    .17376E-04
  27  norm          43.543        36.667        .50808E-06    .94228E-04
  28  Prefactor     3.1637        16.583        .87063E-06    .64931E-05
  29  norm          .10001E-03    .20036       -.52571E-06** at limit **
  30  Prefactor     75.304        80.318        .64177E-05    .15223E-03
  31  Normalizat    1.1450        .24271        .27126E-05    .31360E-03
  32  Prefactor     .78255        .17644        .29990E-06    .42045E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0233
  Prefactor  = 58.812
  Prefactor  = 0.0001
  Prefactor  = 16.4451
  Prefactor  = 17.6767
  norm       = 4.72924
  norm       = 3.26958
  Prefactor  = 19.1759
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.13349
  Prefactor  = 6.80256
  Prefactor  = 30.9532
  Prefactor  = 0.0001
  norm       = 23.2945
  Prefactor  = 0.0001
  Prefactor  = 25.124
  Prefactor  = 0.0001
  Prefactor  = 51.7917
  norm       = 43.5432
  Prefactor  = 3.16374
  norm       = 0.000100008
  Prefactor  = 75.3038
  Normalizat = 1.14496
  Prefactor  = 0.782545
 **********
 **   18 **HESSE 
 **********

 FCN=   5613.291     FROM HESSE     STATUS=OK           657 CALLS     4997 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    87.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.5436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.1705        .14917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.023        34.135        .12641E-03   -1.5075    
   9  Prefactor     58.812        55.360        .52320E-04   -1.4173    
  10  Prefactor     .10000E-03    18.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.445        33.346        .98736E-04   -1.4897    
  12  Prefactor     17.677        15.238        .95265E-04   -1.4867    
  13  norm          4.7292        3.5748        .10975E-03   -1.5273    
  14  norm          3.2696        3.7707        .14397E-03   -1.5346    
  15  Prefactor     19.176        25.723        .91456E-04   -1.4832    
  16  norm          .10000E-03    20.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    85.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.1335        .93519        .35436E-04   -1.5354    
  19  Prefactor     6.8026        8.0480        .15384E-03   -1.5186    
  20  Prefactor     30.953        28.573        .72019E-04   -1.4595    
  21  Prefactor     .10000E-03    4.5152        .15524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          23.294        3.9493        .56151E-04   -1.4742    
  23  Prefactor     .10000E-03    3.8396        .14304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     25.124        41.481        .79873E-04   -1.4705    
  25  Prefactor     .10000E-03    67.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     51.792        49.170        .27872E-03   -1.4267    
  27  norm          43.543        36.673        .60744E-04   -1.4387    
  28  Prefactor     3.1637        16.344        .22736E-03   -1.5352    
  29  norm          .10001E-03    1.1717        .56913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     75.304        80.882        .23115E-03   -1.3970    
  31  Normalizat    1.1450        .28766        .30034E-03   -.88321    
  32  Prefactor     .78255        .21109        .27860E-03   -1.0037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.69868e-09
Minuit parameter uncertainties:
  1  6.78698e-06
  2  0.000126953
  3  1.34419e-05
  4  2.29485e-05
  5  3.07395e-06
  6  3.44163e-05
  7  2.2593e-05
  8  34.2014
  9  55.4084
  10  9.00671e-06
  11  33.384
  12  15.2412
  13  3.57496
  14  3.77099
  15  25.7383
  16  1.87542e-07
  17  7.08446e-05
  18  0.93519
  19  8.0493
  20  28.5852
  21  6.16407e-06
  22  3.94934
  23  8.79561e-06
  24  41.5282
  25  0.000162479
  26  49.2089
  27  36.6925
  28  14.3877
  29  0.00019253
  30  81.0003
  31  0.288056
  32  0.211305
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  3.133e+00  9.352e-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:  7.825e-01  2.113e-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.145e+00  2.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.17
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 3.44e-07 +/- 1.03e-07
Energy Flux (Fixed Index): 8.19e-05 +/- 2.44e-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) = 5613.19020861
delta logL = 0.100868027126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5613.18211072
delta logL = 0.108965925115

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1023       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8055       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1079       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80530       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=   5613.182     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      207 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1023        1.6985        .57558E-02    .33454E-02
   2  alpha         2.8055        .74919        .25911        .43687E-04
   3  Normalizat    1.1079        .23685        .68773E-01   -.65161E-05
   4  Prefactor     .80531        .18519        .43786E-01    .22388E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.10232
  alpha      = 2.8055
  Normalizat = 1.10786
  Prefactor  = 0.805314
 **********
 **   18 **HESSE 
 **********

 FCN=   5613.182     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1023        .88571        .34386E-04   -1.5356    
   2  alpha         2.8055        .42021        .10871E-01    .12250    
   3  Normalizat    1.1079        .27908        .30428E-03   -.89500    
   4  Prefactor     .80531        .21307        .27493E-03   -.99533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77715e-10
Minuit parameter uncertainties:
  1  0.885717
  2  0.422248
  3  0.27945
  4  0.213293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706724': 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) = 5613.18211071
delta logL = 0.108965928617

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  3.102e+00  8.857e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.805e+00  4.222e-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:  8.053e-01  2.133e-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.108e+00  2.794e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.48
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.81 +/- 0.42
Photon Flux (Free Index): 3.78e-07 +/- 1.24e-07
Energy Flux (Free Index): 8.07e-05 +/- 2.26e-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/706724/cmap_HighResolution_377481601_377740801_4FGL_J1229.0+0202_daily_bin533.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.44e-07', energy_flux2='8.07e-05', photon_flux_error='1.03e-07', dlogl='1.09e-01', energy_flux='8.19e-05', photon_flux2='3.78e-07', job_status='DONE', time_completed='2021-09-05 19:05:33.328458', photon_index_error2='0.42', photon_index2='2.81', ts='26.17', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='2.26e-05', EG='1.14', time_epoch_completed='1630893933.33', return_code='0', job_id='706724', GAL2='0.81', EG2='1.11', return_code2='0', energy_flux_error='2.44e-05', photon_flux_error2='1.24e-07', ts2='27.48', photon_index='2.61' WHERE bin_id='533' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:05:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 706724: <4FGL_J1229.0+0202_daily_bin533> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin533> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 18:50:39 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:50:41 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:41 2021
Terminated at Sun Sep  5 19:05:34 2021
Results reported at Sun Sep  5 19:05:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin533 187.268 2.0454 377481601 377740801 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 :                                   750.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            895 sec.

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

