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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin558
RA = 187.268, Dec = 2.0454
tmin = 383961601, tmax = 384220801
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='706759', job_status='RUN', time_executed='2021-09-05 18:54:44.700399', time_epoch_executed='1630893284.7' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='558'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706759

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706759/ft1_4FGL_J1229.0+0202_daily_bin558.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706759/ft2_4FGL_J1229.0+0202_daily_bin558.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706759/ft1_4FGL_J1229.0+0202_daily_bin558.fits outfile=/scratch/kocevski/706759/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin558.fits ra=187.268 dec=2.0454 rad=12.0 tmin=383961601.0 tmax=384220801.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 8.65
user 8.22
sys 0.32

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706759/ft1_filtered_4FGL_J1229.0+0202_daily_bin558.fits evtable="EVENTS" scfile=/scratch/kocevski/706759/ft2_4FGL_J1229.0+0202_daily_bin558.fits sctable="SC_DATA" expcube=/scratch/kocevski/706759/ltcube_383961601_384220801_4FGL_J1229.0+0202_daily_bin558.fits outfile=/scratch/kocevski/706759/expmap_383961601_384220801_4FGL_J1229.0+0202_daily_bin558.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/706759/ltcube_383961601_384220801_4FGL_J1229.0+0202_daily_bin558.fits
.....................!
real 190.34
user 185.16
sys 4.51

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/706759/ft1_filtered_4FGL_J1229.0+0202_daily_bin558.fits scfile=/scratch/kocevski/706759/ft2_4FGL_J1229.0+0202_daily_bin558.fits outfile=/scratch/kocevski/706759/cmap_383961601_384220801_4FGL_J1229.0+0202_daily_bin558.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706759/ft1_filtered_4FGL_J1229.0+0202_daily_bin558.fits scfile=/scratch/kocevski/706759/ft2_4FGL_J1229.0+0202_daily_bin558.fits outfile=/scratch/kocevski/706759/cmap_HighResolution_383961601_384220801_4FGL_J1229.0+0202_daily_bin558.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/706759/ft1_filtered_4FGL_J1229.0+0202_daily_bin558.fits evtable="EVENTS" scfile=/scratch/kocevski/706759/ft2_4FGL_J1229.0+0202_daily_bin558.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/706759/Model_4FGL_J1229.0+0202_daily_bin558.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/706759/ft1_filtered_4FGL_J1229.0+0202_daily_bin558.fits.....................!
real 42.74
user 41.41
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.350       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.675       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.268       1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.428       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.458       1.0000         .10000E-03   10000.    
    13 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.0489       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.9488       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.572       1.0000         .10000E-03   10000.    
    20 'Prefactor '    49.135       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    13.679       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.7803       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    83.694       1.0000         .10000E-03   10000.    
    27 'norm      '    7.0793       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.3302       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.6192       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .31251       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=   4286.262     FROM MIGRAD    STATUS=CONVERGED    824 CALLS     4374 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.477       -.84557E-07** at limit **
   2  Prefactor     51.488        123.05        .55253E-05    .12856E-03
   3  Prefactor     .10000E-03    6.9681        .57885E-06** at limit **
   4  Prefactor     .10000E-03    42.520       -.67209E-06** at limit **
   5  Prefactor     11.677        10.868        .16446E-06   -.25265E-04
   6  Prefactor     .10000E-03    14.174       -.10687E-06** at limit **
   7  Prefactor     .10000E-03    93.767        .12378E-05** at limit **
   8  Prefactor     .10000E-03    34.033       -.21890E-07** at limit **
   9  Prefactor     .10000E-03    52.853        .27800E-06** at limit **
  10  Prefactor     34.280        29.048        .32656E-06    .39597E-05
  11  Prefactor     27.430        29.341        .14655E-06   -.34305E-05
  12  Prefactor     14.456        15.543        .17227E-06   -.16490E-04
  13  norm          .10000E-03    4.0009       -.69732E-07** at limit **
  14  norm          6.0500        4.7285        .11566E-06   -.52390E-04
  15  Prefactor     .10000E-03    28.622        .47299E-06** at limit **
  16  norm          .10000E-03    23.309       -.25799E-06** at limit **
  17  Prefactor     .10001E-03    140.91       -.21722E-05** at limit **
  18  norm          1.9491        .91218       -.28431E-07   -.33064E-03
  19  Prefactor     27.581        22.439        .42182E-06   -.45472E-05
  20  Prefactor     49.102        61.298       -.31775E-06   -.10673E-03
  21  Prefactor     .10000E-03    13.763       -.51155E-06** at limit **
  22  norm          13.679        3.3080        .33018E-07   -.11481E-03
  23  Prefactor     3.7811        10.170        .93464E-05   -.24643E-03
  24  Prefactor     .10000E-03    34.405       -.30464E-06** at limit **
  25  Prefactor     .10000E-03    97.569        .47011E-06** at limit **
  26  Prefactor     83.694        56.107        .26902E-06   -.14085E-04
  27  norm          7.0792        20.067       -.51222E-07   -.58562E-04
  28  Prefactor     .10000E-03    6.1406       -.74649E-07** at limit **
  29  norm          1.3303        .39959       -.41549E-10   -.52526E-03
  30  Prefactor     .10000E-03    67.306        .24447E-06** at limit **
  31  Normalizat    1.6188        .28979       -.28555E-05    .42131E-04
  32  Prefactor     .31273        .20848        .12982E-05   -.64873E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 51.4883
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.6774
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 34.2798
  Prefactor  = 27.4304
  Prefactor  = 14.4564
  norm       = 0.0001
  norm       = 6.05
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.00010001
  norm       = 1.94908
  Prefactor  = 27.5812
  Prefactor  = 49.1024
  Prefactor  = 0.0001
  norm       = 13.6795
  Prefactor  = 3.78108
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 83.6939
  norm       = 7.07922
  Prefactor  = 0.0001
  norm       = 1.33027
  Prefactor  = 0.0001
  Normalizat = 1.6188
  Prefactor  = 0.312727
 **********
 **   18 **HESSE 
 **********

 FCN=   4286.262     FROM HESSE     STATUS=OK           643 CALLS     5017 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     51.488        123.22        .27983E-03   -1.4272    
   3  Prefactor     .10000E-03    6.9953        .16878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    42.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.677        10.859        .11724E-03   -1.5024    
   6  Prefactor     .10000E-03    14.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    93.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    34.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    53.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     34.280        29.105        .68455E-04   -1.4536    
  11  Prefactor     27.430        29.342        .76495E-04   -1.4660    
  12  Prefactor     14.456        15.280        .10534E-03   -1.4947    
  13  norm          .10000E-03    4.0465        .25116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.0500        4.7298        .11552E-03   -1.5216    
  15  Prefactor     .10000E-03    28.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    23.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    141.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.9491        .90726        .38618E-04   -1.5429    
  19  Prefactor     27.581        22.439        .76296E-04   -1.4657    
  20  Prefactor     49.102        61.483        .57208E-04   -1.4305    
  21  Prefactor     .10000E-03    13.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.679        3.3102        .55246E-04   -1.4968    
  23  Prefactor     3.7811        10.200        .10381E-02   -1.5319    
  24  Prefactor     .10000E-03    34.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    97.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     83.694        56.050        .43908E-04   -1.3876    
  27  norm          7.0792        20.026        .75385E-03   -1.5176    
  28  Prefactor     .10000E-03    6.1464        .15842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.3303        .39990        .21770E-04   -1.5477    
  30  Prefactor     .10000E-03    67.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.6188        .31795        .25485E-03   -.74493    
  32  Prefactor     .31273        .22245        .39756E-03   -1.2152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00705e-09
Minuit parameter uncertainties:
  1  1.87374e-05
  2  123.833
  3  3.76849e-06
  4  0.000381557
  5  10.8608
  6  2.8086e-05
  7  0.000946072
  8  6.49017e-05
  9  0.000326015
  10  29.1168
  11  29.3579
  12  15.2842
  13  3.8108e-07
  14  4.73014
  15  0.00028486
  16  0.000121938
  17  0.00241516
  18  0.907268
  19  22.446
  20  61.5624
  21  2.97983e-05
  22  3.31028
  23  10.2042
  24  1.63122e-05
  25  0.000733544
  26  56.085
  27  20.0451
  28  3.98143e-06
  29  0.399899
  30  0.000358389
  31  0.31835
  32  0.223062
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.949e+00  9.073e-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:  3.127e-01  2.231e-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.619e+00  3.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.05
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 2.14e-07 +/- 9.96e-08
Energy Flux (Fixed Index): 5.09e-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) = 4286.2573313
delta logL = 0.0044278060459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4286.25694171
delta logL = 0.00481738894814

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9659       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6681       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6114       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .31658       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=   4286.257     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      204 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9659        1.0087        .73947E-02   -.31185E-02
   2  alpha         2.6681        .56887        .30426       -.58291E-04
   3  Normalizat    1.6114        .28131        .57734E-01    .18153E-05
   4  Prefactor     .31659        .20532        .89165E-01    .42156E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.96589
  alpha      = 2.66812
  Normalizat = 1.61138
  Prefactor  = 0.316592
 **********
 **   18 **HESSE 
 **********

 FCN=   4286.257     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9659        .88245        .38479E-04   -1.5428    
   2  alpha         2.6681        .53947        .12469E-01    .67300E-01
   3  Normalizat    1.6114        .31149        .25527E-03   -.74695    
   4  Prefactor     .31659        .22255        .39528E-03   -1.2130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.94274e-10
Minuit parameter uncertainties:
  1  0.882459
  2  0.543764
  3  0.311864
  4  0.223154
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706759': 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) = 4286.25694171
delta logL = 0.00481739203224

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.966e+00  8.825e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.668e+00  5.438e-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:  3.166e-01  2.232e-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.611e+00  3.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.18
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.67 +/- 0.54
Photon Flux (Free Index): 2.22e-07 +/- 1.25e-07
Energy Flux (Free Index): 5.11e-05 +/- 2.28e-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/706759/cmap_HighResolution_383961601_384220801_4FGL_J1229.0+0202_daily_bin558.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.14e-07', energy_flux2='5.11e-05', photon_flux_error='9.96e-08', dlogl='4.82e-03', energy_flux='5.09e-05', photon_flux2='2.22e-07', job_status='DONE', time_completed='2021-09-05 19:05:59.223857', photon_index_error2='0.54', photon_index2='2.67', ts='9.05', fit_tolerance='1e-08', GAL='0.31', photon_index_error='0.00', energy_flux_error2='2.28e-05', EG='1.62', time_epoch_completed='1630893959.22', return_code='0', job_id='706759', GAL2='0.32', EG2='1.61', return_code2='0', energy_flux_error='2.37e-05', photon_flux_error2='1.25e-07', ts2='9.18', photon_index='2.61' WHERE bin_id='558' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:05:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 706759: <4FGL_J1229.0+0202_daily_bin558> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin558 187.268 2.0454 383961601 384220801 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 :                                   671.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             235.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            918 sec.

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

