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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin859
RA = 187.268, Dec = 2.0454
tmin = 461980801, tmax = 462240001
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='709581', job_status='RUN', time_executed='2021-09-05 19:02:26.212778', time_epoch_executed='1630893746.21' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='859'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/709581

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/709581/ft1_4FGL_J1229.0+0202_daily_bin859.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/709581/ft2_4FGL_J1229.0+0202_daily_bin859.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/709581/ft1_4FGL_J1229.0+0202_daily_bin859.fits outfile=/scratch/kocevski/709581/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin859.fits ra=187.268 dec=2.0454 rad=12.0 tmin=461980801.0 tmax=462240001.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.58
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/709581/ft1_filtered_4FGL_J1229.0+0202_daily_bin859.fits" evtable="EVENTS" scfile=/scratch/kocevski/709581/ft2_4FGL_J1229.0+0202_daily_bin859.fits sctable="SC_DATA" outfile=/scratch/kocevski/709581/ltcube_461980801_462240001_4FGL_J1229.0+0202_daily_bin859.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/709581/ft2_4FGL_J1229.0+0202_daily_bin859.fits
.....................!
real 12.28
user 11.91
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/709581/ft1_filtered_4FGL_J1229.0+0202_daily_bin859.fits evtable="EVENTS" scfile=/scratch/kocevski/709581/ft2_4FGL_J1229.0+0202_daily_bin859.fits sctable="SC_DATA" expcube=/scratch/kocevski/709581/ltcube_461980801_462240001_4FGL_J1229.0+0202_daily_bin859.fits outfile=/scratch/kocevski/709581/expmap_461980801_462240001_4FGL_J1229.0+0202_daily_bin859.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/709581/ltcube_461980801_462240001_4FGL_J1229.0+0202_daily_bin859.fits
.....................!
real 191.39
user 185.68
sys 5.23

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/709581/ft1_filtered_4FGL_J1229.0+0202_daily_bin859.fits scfile=/scratch/kocevski/709581/ft2_4FGL_J1229.0+0202_daily_bin859.fits outfile=/scratch/kocevski/709581/cmap_461980801_462240001_4FGL_J1229.0+0202_daily_bin859.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.60
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/709581/ft1_filtered_4FGL_J1229.0+0202_daily_bin859.fits scfile=/scratch/kocevski/709581/ft2_4FGL_J1229.0+0202_daily_bin859.fits outfile=/scratch/kocevski/709581/cmap_HighResolution_461980801_462240001_4FGL_J1229.0+0202_daily_bin859.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.60
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.351       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15303E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1678       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.370       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.003       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.211       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.2557       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.6289       1.0000         .10000E-03   10000.    
    14 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.6304       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.8592       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.460       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.7716       1.0000         .10000E-03   10000.    
    22 'norm      '    .10166E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13113E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    67.079       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    13.232       1.0000         .10000E-03   10000.    
    29 'norm      '    .90044       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3606       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .81003       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=   6469.513     FROM MIGRAD    STATUS=CONVERGED    839 CALLS     4438 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.351        21.334       -.43558E-07   -.36722E-05
   2  Prefactor     .10000E-03    117.47        .43581E-04** at limit **
   3  Prefactor     .10000E-03    19.145       -.17701E-05** at limit **
   4  Prefactor     .10002E-03    171.08       -.11070E-03** at limit **
   5  Prefactor     6.1661        7.5657        .87584E-06   -.12891E-03
   6  Prefactor     14.366        16.645       -.20645E-06    .16826E-03
   7  Prefactor     25.010        53.969        .70618E-05    .22900E-05
   8  Prefactor     .10000E-03    12.862        .14130E-06** at limit **
   9  Prefactor     .10000E-03    74.750        .12366E-04** at limit **
  10  Prefactor     30.197        31.083       -.28984E-05    .13228E-04
  11  Prefactor     6.2575        19.055       -.89779E-06   -.39293E-04
  12  Prefactor     .10000E-03    5.0035        .18179E-06** at limit **
  13  norm          3.6280        2.8894       -.63532E-06   -.31424E-02
  14  norm          .10000E-03    1.7298       -.12827E-06** at limit **
  15  Prefactor     .10000E-03    36.884        .12043E-04** at limit **
  16  norm          .10000E-03    37.109        .11273E-04** at limit **
  17  Prefactor     .10000E-03    50.988       -.53249E-04** at limit **
  18  norm          3.6305        .81956        .97518E-07   -.30443E-03
  19  Prefactor     9.8594        9.4999       -.12593E-06   -.11204E-04
  20  Prefactor     18.457        29.428       -.13015E-05   -.53369E-05
  21  Prefactor     7.7719        7.7413        .17550E-05    .80716E-04
  22  norm          .10000E-03    .70287        .14140E-06** at limit **
  23  Prefactor     .10000E-03    18.683       -.50083E-05** at limit **
  24  Prefactor     67.057        51.121       -.14027E-04    .12069E-04
  25  Prefactor     .10000E-03    90.832        .49197E-04** at limit **
  26  Prefactor     .10000E-03    14.927       -.33755E-05** at limit **
  27  norm          .10000E-03    16.475        .42876E-05** at limit **
  28  Prefactor     13.231        15.183       -.56121E-06   -.65209E-05
  29  norm          .90036        .27897       -.39538E-07   -.26926E-02
  30  Prefactor     .10000E-03    16.629        .35959E-05** at limit **
  31  Normalizat    1.3608        .22851        .13797E-05   -.10131E-03
  32  Prefactor     .80989        .16849        .72447E-06    .46204E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.351
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 6.16606
  Prefactor  = 14.3659
  Prefactor  = 25.0099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.1966
  Prefactor  = 6.2575
  Prefactor  = 0.0001
  norm       = 3.628
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.63047
  Prefactor  = 9.85942
  Prefactor  = 18.4571
  Prefactor  = 7.7719
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 67.0569
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.231
  norm       = 0.900363
  Prefactor  = 0.0001
  Normalizat = 1.36076
  Prefactor  = 0.809893
 **********
 **   18 **HESSE 
 **********

 FCN=   6469.513     FROM HESSE     STATUS=OK           659 CALLS     5097 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.351        21.329        .96151E-04   -1.4875    
   2  Prefactor     .10000E-03    117.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.922        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    172.80        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.1661        7.5598        .16165E-03   -1.5211    
   6  Prefactor     14.366        16.647        .10566E-03   -1.4950    
   7  Prefactor     25.010        53.959        .80111E-04   -1.4707    
   8  Prefactor     .10000E-03    12.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    75.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     30.197        31.051        .72895E-04   -1.4608    
  11  Prefactor     6.2575        18.992        .16049E-03   -1.5208    
  12  Prefactor     .10000E-03    5.0085        .17564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.6280        2.8960        .57798E-03   -1.5327    
  14  norm          .10000E-03    2.8846        .20094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    37.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    37.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    51.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.6305        .81184        .31703E-04   -1.5327    
  19  Prefactor     9.8594        9.4935        .12762E-03   -1.5080    
  20  Prefactor     18.457        29.424        .93219E-04   -1.4848    
  21  Prefactor     7.7719        7.7399        .14384E-03   -1.5150    
  22  norm          .10000E-03    1.2173        .13033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.257        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     67.057        51.147        .49005E-04   -1.4068    
  25  Prefactor     .10000E-03    91.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    14.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    16.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     13.231        15.240        .11011E-03   -1.4980    
  29  norm          .90036        .27836        .22607E-04   -1.5518    
  30  Prefactor     .10000E-03    16.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.3608        .26734        .28446E-03   -.81770    
  32  Prefactor     .80989        .19553        .27622E-03   -.99365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84845e-09
Minuit parameter uncertainties:
  1  21.3386
  2  0.000222969
  3  0.000128942
  4  0.00390269
  5  7.56102
  6  16.6523
  7  54.065
  8  1.39661e-05
  9  0.000273054
  10  31.068
  11  19.0101
  12  1.31229e-05
  13  2.89615
  14  3.81578e-05
  15  0.000115342
  16  7.23479e-05
  17  9.6159e-06
  18  0.811844
  19  9.4949
  20  29.4473
  21  7.74087
  22  1.54146e-05
  23  0.000206897
  24  51.1807
  25  0.000271359
  26  3.2967e-06
  27  3.8857e-05
  28  15.2442
  29  0.278357
  30  8.50961e-07
  31  0.267615
  32  0.195699
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  3.630e+00  8.118e-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:  8.099e-01  1.957e-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.361e+00  2.676e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 44.68
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 3.99e-07 +/- 8.91e-08
Energy Flux (Fixed Index): 9.48e-05 +/- 2.12e-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) = 6469.44730197
delta logL = 0.0654744505655

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6469.44369569
delta logL = 0.0690807351184

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6109       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7206       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3375       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82357       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=   6469.444     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      196 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6114        .92988        .53158E-02    .15489E-03
   2  alpha         2.7206        .32640        .19630       -.42065E-05
   3  Normalizat    1.3380        .22155        .64729E-01    .13177E-04
   4  Prefactor     .82326        .16889        .44023E-01    .18635E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.61141
  alpha      = 2.72061
  Normalizat = 1.33799
  Prefactor  = 0.823257
 **********
 **   18 **HESSE 
 **********

 FCN=   6469.444     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .11E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6114        .79739        .31247E-04   -1.5328    
   2  alpha         2.7206        .28729        .84884E-03    .88357E-01
   3  Normalizat    1.3380        .26260        .28633E-03   -.82439    
   4  Prefactor     .82326        .19790        .27426E-03   -.98877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05017e-13
Minuit parameter uncertainties:
  1  0.797393
  2  0.287926
  3  0.26286
  4  0.198076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/709581': 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) = 6469.44369278
delta logL = 0.0690836450021

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  8.233e-01  1.981e-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.338e+00  2.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 44.66
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.72 +/- 0.29
Photon Flux (Free Index): 4.19e-07 +/- 1.06e-07
Energy Flux (Free Index): 9.37e-05 +/- 2.07e-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/709581/cmap_HighResolution_461980801_462240001_4FGL_J1229.0+0202_daily_bin859.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.99e-07', energy_flux2='9.37e-05', photon_flux_error='8.91e-08', dlogl='6.91e-02', energy_flux='9.48e-05', photon_flux2='4.19e-07', job_status='DONE', time_completed='2021-09-05 19:16:25.838182', photon_index_error2='0.29', photon_index2='2.72', ts='44.68', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='2.07e-05', EG='1.36', time_epoch_completed='1630894585.84', return_code='0', job_id='709581', GAL2='0.82', EG2='1.34', return_code2='0', energy_flux_error='2.12e-05', photon_flux_error2='1.06e-07', ts2='44.66', photon_index='2.61' WHERE bin_id='859' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:16:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 709581: <4FGL_J1229.0+0202_daily_bin859> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin859 187.268 2.0454 461980801 462240001 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 :                                   832.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            961 sec.

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

