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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin289
RA = 187.268, Dec = 2.0454
tmin = 314236801, tmax = 314496001
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='705332', job_status='RUN', time_executed='2021-09-05 18:48:58.892771', time_epoch_executed='1630892938.89' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='289'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705332

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705332/ft1_4FGL_J1229.0+0202_daily_bin289.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705332/ft2_4FGL_J1229.0+0202_daily_bin289.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705332/ft1_4FGL_J1229.0+0202_daily_bin289.fits outfile=/scratch/kocevski/705332/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin289.fits ra=187.268 dec=2.0454 rad=12.0 tmin=314236801.0 tmax=314496001.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.33
user 3.11
sys 0.21

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705332/ft1_filtered_4FGL_J1229.0+0202_daily_bin289.fits evtable="EVENTS" scfile=/scratch/kocevski/705332/ft2_4FGL_J1229.0+0202_daily_bin289.fits sctable="SC_DATA" expcube=/scratch/kocevski/705332/ltcube_314236801_314496001_4FGL_J1229.0+0202_daily_bin289.fits outfile=/scratch/kocevski/705332/expmap_314236801_314496001_4FGL_J1229.0+0202_daily_bin289.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/705332/ltcube_314236801_314496001_4FGL_J1229.0+0202_daily_bin289.fits
.....................!
real 189.57
user 185.03
sys 4.22

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/705332/ft1_filtered_4FGL_J1229.0+0202_daily_bin289.fits scfile=/scratch/kocevski/705332/ft2_4FGL_J1229.0+0202_daily_bin289.fits outfile=/scratch/kocevski/705332/cmap_314236801_314496001_4FGL_J1229.0+0202_daily_bin289.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/705332/ft1_filtered_4FGL_J1229.0+0202_daily_bin289.fits scfile=/scratch/kocevski/705332/ft2_4FGL_J1229.0+0202_daily_bin289.fits outfile=/scratch/kocevski/705332/cmap_HighResolution_314236801_314496001_4FGL_J1229.0+0202_daily_bin289.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .20964E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.986       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.6780       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.999       1.0000         .10000E-03   10000.    
     7 'Prefactor '    109.19       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8090       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1936       1.0000         .10000E-03   10000.    
    13 'norm      '    5.3013       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5767       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.3374       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5125       1.0000         .10000E-03   10000.    
    20 'Prefactor '    60.869       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.024       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.1111       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    105.12       1.0000         .10000E-03   10000.    
    26 'Prefactor '    42.656       1.0000         .10000E-03   10000.    
    27 'norm      '    23.362       1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.155       1.0000         .10000E-03   10000.    
    29 'norm      '    1.6554       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .20046E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .69442       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1509       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=   5682.105     FROM MIGRAD    STATUS=CONVERGED    838 CALLS     4417 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.828        .37440E-06** at limit **
   2  Prefactor     .10000E-03    1283.4       -.28414E-04** at limit **
   3  Prefactor     18.985        13.858       -.44797E-06    .38741E-05
   4  Prefactor     .10000E-03    28.786        .71514E-07** at limit **
   5  Prefactor     8.6762        10.501       -.76720E-07   -.92728E-05
   6  Prefactor     15.995        16.650        .38705E-06   -.79149E-05
   7  Prefactor     109.18        105.62        .16971E-06   -.77482E-05
   8  Prefactor     .10000E-03    14.954       -.16797E-07** at limit **
   9  Prefactor     .10000E-03    43.239       -.13991E-06** at limit **
  10  Prefactor     2.8066        34.606        .15597E-05    .36609E-05
  11  Prefactor     .10000E-03    6.9970       -.97920E-09** at limit **
  12  Prefactor     8.1928        18.181        .30878E-06   -.47857E-05
  13  norm          5.3011        4.0429        .35260E-07   -.92619E-05
  14  norm          1.5761        2.9418        .44543E-06    .62559E-04
  15  Prefactor     .10000E-03    12.129        .46596E-07** at limit **
  16  norm          .10000E-03    26.113       -.10575E-06** at limit **
  17  Prefactor     .10000E-03    64.115        .67931E-07** at limit **
  18  norm          3.3375        .84355        .15858E-08   -.26168E-03
  19  Prefactor     1.5100        8.9008        .24435E-05    .25838E-04
  20  Prefactor     60.857        35.539       -.24388E-06   -.37532E-04
  21  Prefactor     21.024        16.041        .22139E-06   -.60266E-05
  22  norm          .10000E-03    .53648        .65492E-07** at limit **
  23  Prefactor     5.1157        11.398        .63654E-06    .67714E-05
  24  Prefactor     .10000E-03    15.493        .10648E-06** at limit **
  25  Prefactor     105.10        77.777       -.19477E-06   -.13764E-04
  26  Prefactor     42.665        58.379        .12565E-06    .14491E-05
  27  norm          23.355        31.238        .13929E-06   -.21538E-05
  28  Prefactor     14.154        20.714        .53080E-06   -.10806E-04
  29  norm          1.6557        .41723        .51252E-07   -.54254E-04
  30  Prefactor     .10000E-03    155.91        .63681E-06** at limit **
  31  Normalizat    .69436        .24503       -.30202E-05   -.19769E-04
  32  Prefactor     1.1510        .18673       -.62479E-07   -.92862E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 18.9845
  Prefactor  = 0.0001
  Prefactor  = 8.67616
  Prefactor  = 15.9946
  Prefactor  = 109.175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.80658
  Prefactor  = 0.0001
  Prefactor  = 8.19285
  norm       = 5.30111
  norm       = 1.57615
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.33746
  Prefactor  = 1.50996
  Prefactor  = 60.8572
  Prefactor  = 21.0239
  norm       = 0.0001
  Prefactor  = 5.11574
  Prefactor  = 0.0001
  Prefactor  = 105.097
  Prefactor  = 42.665
  norm       = 23.3547
  Prefactor  = 14.1539
  norm       = 1.65574
  Prefactor  = 0.0001
  Normalizat = 0.694357
  Prefactor  = 1.15105
 **********
 **   18 **HESSE 
 **********

 FCN=   5682.105     FROM HESSE     STATUS=OK           659 CALLS     5076 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1286.2        .40372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.985        13.850        .91921E-04   -1.4836    
   4  Prefactor     .10000E-03    28.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.6762        10.493        .13607E-03   -1.5119    
   6  Prefactor     15.995        16.643        .10013E-03   -1.4908    
   7  Prefactor     109.18        105.78        .38491E-04   -1.3614    
   8  Prefactor     .10000E-03    14.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    43.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.8066        34.394        .24271E-03   -1.5373    
  11  Prefactor     .10000E-03    6.9978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.1928        18.059        .14006E-03   -1.5135    
  13  norm          5.3011        4.0246        .11020E-03   -1.5247    
  14  norm          1.5761        2.9121        .16341E-03   -1.5457    
  15  Prefactor     .10000E-03    12.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    26.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    64.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.3375        .84327        .30903E-04   -1.5343    
  19  Prefactor     1.5100        8.9810        .34772E-03   -1.5462    
  20  Prefactor     60.857        35.418        .51428E-04   -1.4146    
  21  Prefactor     21.024        16.006        .87354E-04   -1.4791    
  22  norm          .10000E-03    .54814        .53927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.1157        11.335        .17784E-03   -1.5256    
  24  Prefactor     .10000E-03    15.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     105.10        78.839        .39221E-04   -1.3654    
  26  Prefactor     42.665        58.278        .61380E-04   -1.4401    
  27  norm          23.355        31.243        .82873E-04   -1.4741    
  28  Prefactor     14.154        20.703        .10646E-03   -1.4955    
  29  norm          1.6557        .42206        .21598E-04   -1.5451    
  30  Prefactor     .10000E-03    156.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .69436        .27639        .36313E-03   -1.0412    
  32  Prefactor     1.1510        .21645        .23910E-03   -.87851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.49547e-11
Minuit parameter uncertainties:
  1  8.12838e-05
  2  0.00362948
  3  13.8523
  4  3.09105e-05
  5  10.4954
  6  16.6476
  7  105.963
  8  8.91919e-06
  9  5.61783e-05
  10  19.6637
  11  1.35718e-06
  12  18.0707
  13  4.02481
  14  2.9124
  15  7.93501e-06
  16  4.5713e-05
  17  3.37766e-05
  18  0.84327
  19  7.36647
  20  35.4307
  21  16.0096
  22  1.71667e-06
  23  11.3396
  24  2.20706e-05
  25  78.9181
  26  58.3559
  27  31.265
  28  20.7138
  29  0.422065
  30  0.000260405
  31  0.276944
  32  0.216616
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  3.337e+00  8.433e-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.151e+00  2.166e-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:  6.944e-01  2.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 36.47
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 3.67e-07 +/- 9.26e-08
Energy Flux (Fixed Index): 8.72e-05 +/- 2.20e-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) = 5681.41799762
delta logL = 0.687276029011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5681.36085631
delta logL = 0.744417337139

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0443       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0210       1.0000          .0000       5.0000    
     3 'Normalizat'    .62585       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1953       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=   5681.361     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0442        9.7620        .58135E-02    .11867E-03
   2  alpha         3.0211        4.0088        .20138        .88283E-05
   3  Normalizat    .62584        .25641        .85886E-01    .30759E-04
   4  Prefactor     1.1953        .28426        .53224E-01    .17490E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.04416
  alpha      = 3.02106
  Normalizat = 0.625843
  Prefactor  = 1.19532
 **********
 **   18 **HESSE 
 **********

 FCN=   5681.361     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .17E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0442        .81933        .28387E-04   -1.5359    
   2  alpha         3.0211        .35822        .88005E-03    .20996    
   3  Normalizat    .62584        .26465        .38044E-03   -1.0690    
   4  Prefactor     1.1953        .21598        .23530E-03   -.86475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6984e-14
Minuit parameter uncertainties:
  1  0.81933
  2  0.359511
  3  0.265184
  4  0.216139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705332': 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) = 5681.36085628
delta logL = 0.744417363442

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  3.044e+00  8.193e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  3.021e+00  3.595e-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.195e+00  2.161e-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:  6.258e-01  2.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 38.34
Ra Dec: 187.268 2.045
Photon Index (Free Index): 3.02 +/- 0.36
Photon Flux (Free Index): 4.21e-07 +/- 1.04e-07
Energy Flux (Free Index): 8.18e-05 +/- 1.95e-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/705332/cmap_HighResolution_314236801_314496001_4FGL_J1229.0+0202_daily_bin289.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.67e-07', energy_flux2='8.18e-05', photon_flux_error='9.26e-08', dlogl='7.44e-01', energy_flux='8.72e-05', photon_flux2='4.21e-07', job_status='DONE', time_completed='2021-09-05 19:02:00.753218', photon_index_error2='0.36', photon_index2='3.02', ts='36.47', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='1.95e-05', EG='0.69', time_epoch_completed='1630893720.75', return_code='0', job_id='705332', GAL2='1.20', EG2='0.63', return_code2='0', energy_flux_error='2.20e-05', photon_flux_error2='1.04e-07', ts2='38.34', photon_index='2.61' WHERE bin_id='289' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:02:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 705332: <4FGL_J1229.0+0202_daily_bin289> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin289> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 18:46:11 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:46:12 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:12 2021
Terminated at Sun Sep  5 19:02:01 2021
Results reported at Sun Sep  5 19:02:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin289 187.268 2.0454 314236801 314496001 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 :                                   774.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            950 sec.

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

