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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin926
RA = 187.268, Dec = 2.0454
tmin = 479347201, tmax = 479606401
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='709689', job_status='RUN', time_executed='2021-09-05 19:03:03.081614', time_epoch_executed='1630893783.08' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='926'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/709689

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/709689/ft1_4FGL_J1229.0+0202_daily_bin926.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/709689/ft2_4FGL_J1229.0+0202_daily_bin926.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/709689/ft1_4FGL_J1229.0+0202_daily_bin926.fits outfile=/scratch/kocevski/709689/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin926.fits ra=187.268 dec=2.0454 rad=12.0 tmin=479347201.0 tmax=479606401.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.46
user 3.23
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/709689/ft2_4FGL_J1229.0+0202_daily_bin926.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/709689/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin926.fits evtable="EVENTS" outfile="/scratch/kocevski/709689/ft1_filtered_4FGL_J1229.0+0202_daily_bin926.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/709689/ft1_filtered_4FGL_J1229.0+0202_daily_bin926.fits" evtable="EVENTS" scfile=/scratch/kocevski/709689/ft2_4FGL_J1229.0+0202_daily_bin926.fits sctable="SC_DATA" outfile=/scratch/kocevski/709689/ltcube_479347201_479606401_4FGL_J1229.0+0202_daily_bin926.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/709689/ft2_4FGL_J1229.0+0202_daily_bin926.fits
.....................!
real 11.88
user 11.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/709689/ft1_filtered_4FGL_J1229.0+0202_daily_bin926.fits evtable="EVENTS" scfile=/scratch/kocevski/709689/ft2_4FGL_J1229.0+0202_daily_bin926.fits sctable="SC_DATA" expcube=/scratch/kocevski/709689/ltcube_479347201_479606401_4FGL_J1229.0+0202_daily_bin926.fits outfile=/scratch/kocevski/709689/expmap_479347201_479606401_4FGL_J1229.0+0202_daily_bin926.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/709689/ltcube_479347201_479606401_4FGL_J1229.0+0202_daily_bin926.fits
.....................!
real 195.13
user 190.52
sys 4.12

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/709689/ft1_filtered_4FGL_J1229.0+0202_daily_bin926.fits scfile=/scratch/kocevski/709689/ft2_4FGL_J1229.0+0202_daily_bin926.fits outfile=/scratch/kocevski/709689/cmap_479347201_479606401_4FGL_J1229.0+0202_daily_bin926.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.86
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/709689/ft1_filtered_4FGL_J1229.0+0202_daily_bin926.fits scfile=/scratch/kocevski/709689/ft2_4FGL_J1229.0+0202_daily_bin926.fits outfile=/scratch/kocevski/709689/cmap_HighResolution_479347201_479606401_4FGL_J1229.0+0202_daily_bin926.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.85
user 0.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10779E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .44370E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.862       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6473       1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.562       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.2148       1.0000         .10000E-03   10000.    
    14 'norm      '    2.9935       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .36408E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.7379       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.260       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .24024E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.9398       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    27.716       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    31.771       1.0000         .10000E-03   10000.    
    27 'norm      '    3.5953       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.0308       1.0000         .10000E-03   10000.    
    29 'norm      '    1.1274       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.5662       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .58329       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=   5590.924     FROM MIGRAD    STATUS=CONVERGED    872 CALLS     4348 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.7553       -.13320E-07** at limit **
   2  Prefactor     .10000E-03    28.197       -.20480E-05** at limit **
   3  Prefactor     .10000E-03    2.9611        .15998E-07** at limit **
   4  Prefactor     .10000E-03    47.881       -.76904E-05** at limit **
   5  Prefactor     .10001E-03    6.0326        .39946E-06** at limit **
   6  Prefactor     12.860        19.953       -.83370E-06   -.10524E-04
   7  Prefactor     4.4242        217.11       -.25127E-04   -.34828E-05
   8  Prefactor     29.554        43.833        .43351E-05    .12402E-04
   9  Prefactor     .10000E-03    13.945       -.78754E-07** at limit **
  10  Prefactor     .10000E-03    10.470        .11306E-07** at limit **
  11  Prefactor     .10000E-03    10.948        .47166E-08** at limit **
  12  Prefactor     .10000E-03    3.6201       -.46474E-08** at limit **
  13  norm          4.2148        2.5899        .77892E-08    .27747E-04
  14  norm          2.9931        2.7633       -.16232E-06   -.68058E-03
  15  Prefactor     .10000E-03    14.256        .50314E-07** at limit **
  16  norm          .10000E-03    57.801        .16885E-04** at limit **
  17  Prefactor     .10000E-03    206.29        .75415E-04** at limit **
  18  norm          4.7376        .87374        .16974E-08   -.46049E-03
  19  Prefactor     16.250        13.500       -.98984E-06    .55202E-04
  20  Prefactor     .10000E-03    90.902       -.62699E-05** at limit **
  21  Prefactor     .10000E-03    2.7588       -.29532E-08** at limit **
  22  norm          4.9388        2.1050       -.15353E-07   -.18300E-03
  23  Prefactor     .10000E-03    2.8990        .27143E-08** at limit **
  24  Prefactor     27.712        40.342       -.15949E-05   -.17218E-05
  25  Prefactor     .10000E-03    29.985        .12828E-05** at limit **
  26  Prefactor     31.745        46.180        .13594E-04    .15000E-04
  27  norm          3.5951        40.081       -.71497E-06   -.31157E-04
  28  Prefactor     5.0332        15.175       -.50367E-05   -.99229E-04
  29  norm          1.1274        .32347        .28058E-09    .32987E-04
  30  Prefactor     .10000E-03    68.202       -.83362E-05** at limit **
  31  Normalizat    1.5665        .23621        .84096E-06   -.84157E-04
  32  Prefactor     .58312        .17950       -.77824E-06   -.31615E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 12.8602
  Prefactor  = 4.42422
  Prefactor  = 29.5544
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.21478
  norm       = 2.99314
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.73762
  Prefactor  = 16.2496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.93878
  Prefactor  = 0.0001
  Prefactor  = 27.7119
  Prefactor  = 0.0001
  Prefactor  = 31.7449
  norm       = 3.5951
  Prefactor  = 5.03325
  norm       = 1.12738
  Prefactor  = 0.0001
  Normalizat = 1.56653
  Prefactor  = 0.58312
 **********
 **   18 **HESSE 
 **********

 FCN=   5590.924     FROM HESSE     STATUS=OK           653 CALLS     5001 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.7560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    28.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.9630        .12566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    47.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    32.875        .35465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.860        20.036        .11169E-03   -1.4991    
   7  Prefactor     4.4242        218.00        .18669E-03   -1.5287    
   8  Prefactor     29.554        43.892        .73688E-04   -1.4620    
   9  Prefactor     .10000E-03    13.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.6231        .13893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.2148        2.5906        .91422E-04   -1.5297    
  14  norm          2.9931        2.7552        .11424E-03   -1.5362    
  15  Prefactor     .10000E-03    14.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    58.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    205.57        .21306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.7376        .87756        .28126E-04   -1.5273    
  19  Prefactor     16.250        13.465        .99324E-04   -1.4902    
  20  Prefactor     .10000E-03    91.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.7608        .12129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.9388        2.1047        .67389E-04   -1.5263    
  23  Prefactor     .10000E-03    2.9046        .12432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     27.712        40.334        .76098E-04   -1.4655    
  25  Prefactor     .10000E-03    30.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     31.745        46.134        .71087E-04   -1.4581    
  27  norm          3.5951        40.064        .21311E-03   -1.5329    
  28  Prefactor     5.0332        15.209        .17928E-03   -1.5259    
  29  norm          1.1274        .32315        .21811E-04   -1.5496    
  30  Prefactor     .10000E-03    68.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.5665        .27722        .26090E-03   -.75926    
  32  Prefactor     .58312        .20814        .31718E-03   -1.0830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.86722e-10
Minuit parameter uncertainties:
  1  4.09646e-07
  2  1.14674e-06
  3  4.3746e-06
  4  7.8565e-05
  5  0.00114592
  6  20.0463
  7  62.3539
  8  43.9403
  9  1.61664e-06
  10  5.39949e-07
  11  7.38698e-08
  12  3.40401e-07
  13  2.59071
  14  2.75529
  15  1.08447e-06
  16  5.41827e-05
  17  0.000179181
  18  0.877564
  19  13.4675
  20  0.00041566
  21  7.94889e-08
  22  2.10472
  23  7.59739e-07
  24  40.3735
  25  3.03668e-08
  26  46.186
  27  24.0228
  28  15.2205
  29  0.323147
  30  1.48531e-05
  31  0.277492
  32  0.20841
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  4.738e+00  8.776e-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:  5.831e-01  2.084e-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.567e+00  2.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 92.42
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 5.20e-07 +/- 9.63e-08
Energy Flux (Fixed Index): 1.24e-04 +/- 2.29e-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) = 5590.92417489
delta logL = 6.61195008433e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5590.92417125
delta logL = 6.9764509135e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7379       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6121       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5672       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58275       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=   5590.924     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      187 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7390        .94293        .46214E-02   -.52847E-05
   2  alpha         2.6120        .25469        .15254       -.28793E-05
   3  Normalizat    1.5671        .22889        .58993E-01    .14329E-05
   4  Prefactor     .58280        .17723        .71669E-01    .25866E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.73901
  alpha      = 2.61201
  Normalizat = 1.56711
  Prefactor  = 0.582798
 **********
 **   18 **HESSE 
 **********

 FCN=   5590.924     FROM HESSE     STATUS=OK            29 CALLS      216 TOTAL
                     EDM=   .84E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7390        .87156        .28138E-04   -1.5273    
   2  alpha         2.6120        .23818        .66697E-03    .44821E-01
   3  Normalizat    1.5671        .26847        .26087E-03   -.75910    
   4  Prefactor     .58280        .20616        .31726E-03   -1.0832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.4004e-15
Minuit parameter uncertainties:
  1  0.871565
  2  0.238542
  3  0.268712
  4  0.206424
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/709689': 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) = 5590.92417036
delta logL = 7.06532055119e-05

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  4.739e+00  8.716e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.612e+00  2.385e-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.828e-01  2.064e-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.567e+00  2.687e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 92.53
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.61 +/- 0.24
Photon Flux (Free Index): 5.20e-07 +/- 1.07e-07
Energy Flux (Free Index): 1.24e-04 +/- 2.35e-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/709689/cmap_HighResolution_479347201_479606401_4FGL_J1229.0+0202_daily_bin926.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.20e-07', energy_flux2='1.24e-04', photon_flux_error='9.63e-08', dlogl='7.07e-05', energy_flux='1.24e-04', photon_flux2='5.20e-07', job_status='DONE', time_completed='2021-09-05 19:16:07.452243', photon_index_error2='0.24', photon_index2='2.61', ts='92.42', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', energy_flux_error2='2.35e-05', EG='1.57', time_epoch_completed='1630894567.45', return_code='0', job_id='709689', GAL2='0.58', EG2='1.57', return_code2='0', energy_flux_error='2.29e-05', photon_flux_error2='1.07e-07', ts2='92.53', photon_index='2.61' WHERE bin_id='926' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:16:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 709689: <4FGL_J1229.0+0202_daily_bin926> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin926> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 19:00:32 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 19:00:34 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:00:34 2021
Terminated at Sun Sep  5 19:16:08 2021
Results reported at Sun Sep  5 19:16:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin926 187.268 2.0454 479347201 479606401 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 :                                   779.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            936 sec.

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

