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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin322
RA = 187.268, Dec = 2.0454
tmin = 322790401, tmax = 323049601
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='705398', job_status='RUN', time_executed='2021-09-05 18:49:56.154810', time_epoch_executed='1630892996.15' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705398

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705398/ft1_4FGL_J1229.0+0202_daily_bin322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705398/ft2_4FGL_J1229.0+0202_daily_bin322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705398/ft1_4FGL_J1229.0+0202_daily_bin322.fits outfile=/scratch/kocevski/705398/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin322.fits ra=187.268 dec=2.0454 rad=12.0 tmin=322790401.0 tmax=323049601.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 11.95
user 11.56
sys 0.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/705398/ft1_filtered_4FGL_J1229.0+0202_daily_bin322.fits" evtable="EVENTS" scfile=/scratch/kocevski/705398/ft2_4FGL_J1229.0+0202_daily_bin322.fits sctable="SC_DATA" outfile=/scratch/kocevski/705398/ltcube_322790401_323049601_4FGL_J1229.0+0202_daily_bin322.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/705398/ft2_4FGL_J1229.0+0202_daily_bin322.fits
.....................!
real 10.91
user 10.57
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705398/ft1_filtered_4FGL_J1229.0+0202_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/705398/ft2_4FGL_J1229.0+0202_daily_bin322.fits sctable="SC_DATA" expcube=/scratch/kocevski/705398/ltcube_322790401_323049601_4FGL_J1229.0+0202_daily_bin322.fits outfile=/scratch/kocevski/705398/expmap_322790401_323049601_4FGL_J1229.0+0202_daily_bin322.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/705398/ltcube_322790401_323049601_4FGL_J1229.0+0202_daily_bin322.fits
.....................!
real 189.26
user 184.78
sys 4.10

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/705398/ft1_filtered_4FGL_J1229.0+0202_daily_bin322.fits scfile=/scratch/kocevski/705398/ft2_4FGL_J1229.0+0202_daily_bin322.fits outfile=/scratch/kocevski/705398/cmap_322790401_323049601_4FGL_J1229.0+0202_daily_bin322.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/705398/ft1_filtered_4FGL_J1229.0+0202_daily_bin322.fits scfile=/scratch/kocevski/705398/ft2_4FGL_J1229.0+0202_daily_bin322.fits outfile=/scratch/kocevski/705398/cmap_HighResolution_322790401_323049601_4FGL_J1229.0+0202_daily_bin322.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=187.268 yref=2.0454 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    105.87       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17278E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4072       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11329E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8221       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.890       1.0000         .10000E-03   10000.    
    13 'norm      '    .65616       1.0000         .10000E-03   10000.    
    14 'norm      '    9.7161       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    59.978       1.0000         .10000E-03   10000.    
    18 'norm      '    2.3668       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.775       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.3935       1.0000         .10000E-03   10000.    
    22 'norm      '    6.5919       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    43.747       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.102       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.0918       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .85094       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0011       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=   3889.215     FROM MIGRAD    STATUS=CONVERGED    847 CALLS     4315 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.639       -.13725E-07** at limit **
   2  Prefactor     105.85        192.46       -.87373E-06   -.20077E-04
   3  Prefactor     .10000E-03    6.8603        .66390E-08** at limit **
   4  Prefactor     .10000E-03    315.28        .17797E-05** at limit **
   5  Prefactor     4.4079        9.4570        .58899E-05   -.20011E-03
   6  Prefactor     .10000E-03    15.902        .31141E-06** at limit **
   7  Prefactor     .10000E-03    119.68        .17367E-06** at limit **
   8  Prefactor     .10000E-03    28.883        .56544E-07** at limit **
   9  Prefactor     6.7668        159.90       -.59275E-05   -.38285E-04
  10  Prefactor     .10000E-03    33.981        .22395E-06** at limit **
  11  Prefactor     .10000E-03    31.518       -.58542E-06** at limit **
  12  Prefactor     12.890        11.403       -.38281E-06   -.36230E-04
  13  norm          .65621        2.4952        .95183E-06    .38471E-07
  14  norm          9.7170        6.0576        .10255E-06    .20754E-05
  15  Prefactor     .10000E-03    21.611       -.47140E-06** at limit **
  16  norm          .10000E-03    29.196       -.46962E-07** at limit **
  17  Prefactor     59.805        190.81       -.40528E-05   -.74065E-04
  18  norm          2.3667        .90918       -.33952E-07   -.51540E-04
  19  Prefactor     .10000E-03    5.0451       -.74579E-07** at limit **
  20  Prefactor     22.798        34.357        .14496E-07   -.20013E-04
  21  Prefactor     8.3943        14.201        .13408E-06   -.13037E-04
  22  norm          6.5919        2.5317        .25520E-07   -.21216E-04
  23  Prefactor     .10000E-03    6.9728        .19009E-06** at limit **
  24  Prefactor     43.758        47.296        .14673E-06    .10009E-04
  25  Prefactor     10.099        154.22        .12039E-05   -.16599E-06
  26  Prefactor     .10000E-03    44.193        .32205E-06** at limit **
  27  norm          .10000E-03    20.901        .18975E-07** at limit **
  28  Prefactor     .10000E-03    5.4560        .10180E-06** at limit **
  29  norm          1.0918        .40236       -.51386E-08   -.10569E-04
  30  Prefactor     .10000E-03    27.893        .82894E-07** at limit **
  31  Normalizat    .85110        .27680        .12452E-06   -.23984E-04
  32  Prefactor     1.0009        .21237       -.88542E-06    .24256E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 105.849
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.40788
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.76681
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8899
  norm       = 0.656207
  norm       = 9.71695
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 59.8046
  norm       = 2.3667
  Prefactor  = 0.0001
  Prefactor  = 22.7975
  Prefactor  = 8.39428
  norm       = 6.59188
  Prefactor  = 0.0001
  Prefactor  = 43.7578
  Prefactor  = 10.0995
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.0918
  Prefactor  = 0.0001
  Normalizat = 0.8511
  Prefactor  = 1.00095
 **********
 **   18 **HESSE 
 **********

 FCN=   3889.215     FROM HESSE     STATUS=OK           651 CALLS     4966 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     105.85        193.05        .39084E-04   -1.3647    
   3  Prefactor     .10000E-03    6.8788        .15951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    317.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.4079        9.4437        .95918E-03   -1.5288    
   6  Prefactor     .10000E-03    15.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    119.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.7668        157.99        .15361E-03   -1.5188    
  10  Prefactor     .10000E-03    34.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.890        11.291        .11157E-03   -1.4990    
  13  norm          .65621        2.4094        .17743E-03   -1.5546    
  14  norm          9.7170        6.0751        .10490E-03   -1.5084    
  15  Prefactor     .10000E-03    21.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    29.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     59.805        191.41        .25903E-03   -1.4160    
  18  norm          2.3667        .90860        .32689E-04   -1.5400    
  19  Prefactor     .10000E-03    5.0495        .13672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     22.798        34.461        .83932E-04   -1.4753    
  21  Prefactor     8.3943        14.192        .13837E-03   -1.5128    
  22  norm          6.5919        2.5315        .58039E-04   -1.5194    
  23  Prefactor     .10000E-03    7.0019        .16078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     43.758        47.331        .60613E-04   -1.4384    
  25  Prefactor     10.099        157.82        .12607E-03   -1.5072    
  26  Prefactor     .10000E-03    44.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    20.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.4679        .14227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.0918        .40751        .21460E-04   -1.5499    
  30  Prefactor     .10000E-03    27.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .85110        .32782        .31208E-03   -.98200    
  32  Prefactor     1.0009        .25035        .23842E-03   -.92698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25971e-10
Minuit parameter uncertainties:
  1  9.86707e-06
  2  194.214
  3  5.10681e-06
  4  0.000750364
  5  9.44686
  6  6.71421e-06
  7  1.3481e-06
  8  2.60784e-05
  9  65.5896
  10  1.17488e-05
  11  2.1677e-05
  12  11.2928
  13  2.40974
  14  6.0755
  15  9.42911e-05
  16  2.83739e-05
  17  193.43
  18  0.908606
  19  1.92858e-06
  20  34.4913
  21  14.1975
  22  2.53156
  23  4.73873e-07
  24  47.3719
  25  80.0993
  26  2.30209e-05
  27  5.85635e-05
  28  6.46153e-07
  29  0.407507
  30  5.58148e-06
  31  0.328587
  32  0.25064
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  2.367e+00  9.086e-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.001e+00  2.506e-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.511e-01  3.286e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.47
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 2.60e-07 +/- 9.97e-08
Energy Flux (Fixed Index): 6.18e-05 +/- 2.37e-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) = 3889.20880291
delta logL = 0.00643613240618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3889.20826754
delta logL = 0.00697150062706

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3531       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6718       1.0000          .0000       5.0000    
     3 'Normalizat'    .84339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0061       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=   3889.208     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      199 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3531        1.3938        .66801E-02   -.20625E-02
   2  alpha         2.6718        .73761        .25631       -.24187E-04
   3  Normalizat    .84339        .25556        .70800E-01    .23559E-04
   4  Prefactor     1.0061        .21048        .43973E-01   -.25548E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.35312
  alpha      = 2.67181
  Normalizat = 0.843389
  Prefactor  = 1.00609
 **********
 **   18 **HESSE 
 **********

 FCN=   3889.208     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3531        .85686        .32431E-04   -1.5401    
   2  alpha         2.6718        .48578        .10760E-01    .68779E-01
   3  Normalizat    .84339        .29824        .31329E-03   -.98479    
   4  Prefactor     1.0061        .24232        .23790E-03   -.92527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57539e-10
Minuit parameter uncertainties:
  1  0.856863
  2  0.48891
  3  0.298823
  4  0.242586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705398': 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) = 3889.20826754
delta logL = 0.0069715013542

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  2.353e+00  8.569e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.672e+00  4.889e-01  0.000e+00  5.000e+00 ( 1.000e+00)
337         beta:  9.652e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  3.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.006e+00  2.426e-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.434e-01  2.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.99
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.67 +/- 0.49
Photon Flux (Free Index): 2.66e-07 +/- 1.07e-07
Energy Flux (Free Index): 6.12e-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/705398/cmap_HighResolution_322790401_323049601_4FGL_J1229.0+0202_daily_bin322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.60e-07', energy_flux2='6.12e-05', photon_flux_error='9.97e-08', dlogl='6.97e-03', energy_flux='6.18e-05', photon_flux2='2.66e-07', job_status='DONE', time_completed='2021-09-05 19:00:56.399853', photon_index_error2='0.49', photon_index2='2.67', ts='14.47', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.27e-05', EG='0.85', time_epoch_completed='1630893656.4', return_code='0', job_id='705398', GAL2='1.01', EG2='0.84', return_code2='0', energy_flux_error='2.37e-05', photon_flux_error2='1.07e-07', ts2='14.99', photon_index='2.61' WHERE bin_id='322' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:00:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 705398: <4FGL_J1229.0+0202_daily_bin322> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin322> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 18:46:15 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:46:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 18:46:17 2021
Terminated at Sun Sep  5 19:00:57 2021
Results reported at Sun Sep  5 19:00:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin322 187.268 2.0454 322790401 323049601 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 :                                   654.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             221.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            882 sec.

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

