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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin754
RA = 187.268, Dec = 2.0454
tmin = 434764801, tmax = 435024001
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='708403', job_status='RUN', time_executed='2021-09-05 18:58:01.202622', time_epoch_executed='1630893481.2' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708403

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708403/ft1_4FGL_J1229.0+0202_daily_bin754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708403/ft2_4FGL_J1229.0+0202_daily_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708403/ft1_4FGL_J1229.0+0202_daily_bin754.fits outfile=/scratch/kocevski/708403/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin754.fits ra=187.268 dec=2.0454 rad=12.0 tmin=434764801.0 tmax=435024001.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 5.73
user 5.45
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708403/ft1_filtered_4FGL_J1229.0+0202_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/708403/ft2_4FGL_J1229.0+0202_daily_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/708403/ltcube_434764801_435024001_4FGL_J1229.0+0202_daily_bin754.fits outfile=/scratch/kocevski/708403/expmap_434764801_435024001_4FGL_J1229.0+0202_daily_bin754.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/708403/ltcube_434764801_435024001_4FGL_J1229.0+0202_daily_bin754.fits
.....................!
real 190.10
user 185.90
sys 3.83

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/708403/ft1_filtered_4FGL_J1229.0+0202_daily_bin754.fits scfile=/scratch/kocevski/708403/ft2_4FGL_J1229.0+0202_daily_bin754.fits outfile=/scratch/kocevski/708403/cmap_434764801_435024001_4FGL_J1229.0+0202_daily_bin754.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708403/ft1_filtered_4FGL_J1229.0+0202_daily_bin754.fits scfile=/scratch/kocevski/708403/ft2_4FGL_J1229.0+0202_daily_bin754.fits outfile=/scratch/kocevski/708403/cmap_HighResolution_434764801_435024001_4FGL_J1229.0+0202_daily_bin754.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.752       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5928       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1829       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    50.860       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.229       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .24162E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .53695       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10357E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .26400E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    1.2912       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.704       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .29812       1.0000         .10000E-03   10000.    
    22 'norm      '    4.7766       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.865       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    73.487       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    13.167       1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.544       1.0000         .10000E-03   10000.    
    29 'norm      '    1.7281       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.7131       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .52989       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=   6303.031     FROM MIGRAD    STATUS=CONVERGED    842 CALLS     4339 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.741        26.409       -.54230E-05    .12230E-04
   2  Prefactor     .10000E-03    27.880       -.59533E-06** at limit **
   3  Prefactor     .10000E-03    4.6153       -.10449E-06** at limit **
   4  Prefactor     3.5795        152.76       -.48093E-04   -.53050E-05
   5  Prefactor     6.1836        6.0001        .28818E-05    .14699E-03
   6  Prefactor     .10000E-03    10.382       -.64148E-05** at limit **
   7  Prefactor     .10000E-03    33.660       -.67800E-05** at limit **
   8  Prefactor     .10000E-03    24.504        .74733E-05** at limit **
   9  Prefactor     50.857        40.641       -.52433E-05    .46891E-04
  10  Prefactor     25.208        22.199        .21383E-05    .14382E-03
  11  Prefactor     .10000E-03    11.679        .43551E-05** at limit **
  12  Prefactor     .10000E-03    17.492       -.78093E-05** at limit **
  13  norm          .10012E-03    1.8535       -.19718E-06** at limit **
  14  norm          .52558        2.4776       -.26771E-07    .11613E-03
  15  Prefactor     .10000E-03    32.974       -.69615E-05** at limit **
  16  norm          .10000E-03    30.901       -.62301E-05** at limit **
  17  Prefactor     .10001E-03    586.11       -.55034E-03** at limit **
  18  norm          1.2921        .69650       -.89079E-07    .15709E-02
  19  Prefactor     .10000E-03    9.4015        .26120E-05** at limit **
  20  Prefactor     14.679        33.861       -.24784E-04   -.55999E-05
  21  Prefactor     .13250        7.1258       -.13572E-06   -.53689E-03
  22  norm          4.7764        1.9913       -.51622E-07    .10120E-02
  23  Prefactor     18.897        12.513        .33812E-05    .14009E-03
  24  Prefactor     .10000E-03    11.393        .23037E-05** at limit **
  25  Prefactor     73.509        53.710        .14949E-04   -.37525E-05
  26  Prefactor     .10000E-03    24.714        .65182E-05** at limit **
  27  norm          13.138        35.122       -.42778E-04   -.73849E-05
  28  Prefactor     10.535        15.022        .39303E-07   -.21038E-04
  29  norm          1.7281        .36656       -.14591E-06    .26577E-02
  30  Prefactor     .10000E-03    18.719       -.26906E-05** at limit **
  31  Normalizat    1.7132        .24000        .19908E-05    .63268E-03
  32  Prefactor     .53013        .17125        .40143E-05    .48615E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.7414
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.57952
  Prefactor  = 6.18363
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 50.8572
  Prefactor  = 25.2079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100121
  norm       = 0.525581
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100007
  norm       = 1.29208
  Prefactor  = 0.000100001
  Prefactor  = 14.6787
  Prefactor  = 0.132504
  norm       = 4.77643
  Prefactor  = 18.8973
  Prefactor  = 0.0001
  Prefactor  = 73.509
  Prefactor  = 0.0001
  norm       = 13.1378
  Prefactor  = 10.5349
  norm       = 1.72811
  Prefactor  = 0.0001
  Normalizat = 1.71324
  Prefactor  = 0.530133
 **********
 **   18 **HESSE 
 **********

 FCN=   6303.031     FROM HESSE     STATUS=OK           661 CALLS     5000 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.741        26.413        .83974E-04   -1.4754    
   2  Prefactor     .10000E-03    27.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.6226        .16657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.5795        153.42        .21319E-03   -1.5330    
   5  Prefactor     6.1836        6.0031        .16145E-03   -1.5211    
   6  Prefactor     .10000E-03    10.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    33.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     50.857        40.640        .56234E-04   -1.4280    
  10  Prefactor     25.208        21.929        .79752E-04   -1.4703    
  11  Prefactor     .10000E-03    11.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10012E-03    21.395        .20181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .52558        7.9875        .21598E-02   -1.5563    
  15  Prefactor     .10000E-03    33.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    30.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    584.86        .19963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.2921        .68368        .42513E-04   -1.5481    
  19  Prefactor     .10000E-03    9.4368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.679        33.939        .10445E-03   -1.4942    
  21  Prefactor     .13250        13.925        .65416E-01   -1.5635    
  22  norm          4.7764        1.9884        .68361E-04   -1.5271    
  23  Prefactor     18.897        12.566        .92215E-04   -1.4838    
  24  Prefactor     .10000E-03    11.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     73.509        53.994        .46835E-04   -1.3991    
  26  Prefactor     .10000E-03    24.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          13.138        35.130        .11039E-03   -1.4983    
  28  Prefactor     10.535        15.123        .12339E-03   -1.5059    
  29  norm          1.7281        .36905        .20421E-04   -1.5445    
  30  Prefactor     .10000E-03    18.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.7132        .28320        .26341E-03   -.71950    
  32  Prefactor     .53013        .19778        .33203E-03   -1.1061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.21779e-09
Minuit parameter uncertainties:
  1  26.4266
  2  3.6482e-06
  3  4.45682e-06
  4  46.9972
  5  6.00364
  6  8.39447e-05
  7  4.04369e-06
  8  0.000291754
  9  40.662
  10  21.9358
  11  8.04026e-06
  12  0.000111318
  13  0.00321931
  14  4.0981
  15  7.33271e-05
  16  1.06253e-06
  17  0.00417144
  18  0.683687
  19  0.000235736
  20  33.9836
  21  2.71629
  22  1.98841
  23  12.568
  24  1.46703e-06
  25  54.0298
  26  1.63649e-05
  27  35.185
  28  15.1287
  29  0.369053
  30  1.03496e-05
  31  0.283468
  32  0.198042
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.292e+00  6.837e-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.301e-01  1.980e-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.713e+00  2.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.87
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.42e-07 +/- 7.50e-08
Energy Flux (Fixed Index): 3.38e-05 +/- 1.79e-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) = 6302.53907751
delta logL = 0.49145112279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6302.53799785
delta logL = 0.492530783476

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .89096       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9998       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49799       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=   6302.538     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      208 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .89098        .54232        .91583E-02    .11936E-02
   2  alpha         1.9998        .40655        .29400       -.10512E-03
   3  Normalizat    1.7824        .22802        .58722E-01    .33472E-04
   4  Prefactor     .49804        .16933        .77183E-01    .13015E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.890978
  alpha      = 1.99982
  Normalizat = 1.78243
  Prefactor  = 0.498039
 **********
 **   18 **HESSE 
 **********

 FCN=   6302.538     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .89098        .76586        .40394E-04   -1.5519    
   2  alpha         1.9998        .62367        .11901E-01   -.20143    
   3  Normalizat    1.7824        .26602        .25964E-03   -.70123    
   4  Prefactor     .49804        .19400        .34185E-03   -1.1207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92906e-10
Minuit parameter uncertainties:
  1  0.765865
  2  0.630609
  3  0.266234
  4  0.19426
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708403': 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) = 6302.53799781
delta logL = 0.49253082924

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  8.910e-01  7.659e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.000e+00  6.306e-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:  4.980e-01  1.943e-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.782e+00  2.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.82
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.00 +/- 0.63
Photon Flux (Free Index): 7.76e-08 +/- 7.49e-08
Energy Flux (Free Index): 3.28e-05 +/- 1.85e-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/708403/cmap_HighResolution_434764801_435024001_4FGL_J1229.0+0202_daily_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.42e-07', energy_flux2='3.28e-05', photon_flux_error='7.50e-08', dlogl='4.93e-01', energy_flux='3.38e-05', photon_flux2='7.76e-08', job_status='DONE', time_completed='2021-09-05 19:11:25.969593', photon_index_error2='0.63', photon_index2='2.00', ts='8.87', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', energy_flux_error2='1.85e-05', EG='1.71', time_epoch_completed='1630894285.97', return_code='0', job_id='708403', GAL2='0.50', EG2='1.78', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='7.49e-08', ts2='9.82', photon_index='2.61' WHERE bin_id='754' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:11:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 708403: <4FGL_J1229.0+0202_daily_bin754> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin754> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 18:55:58 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:55:59 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:55:59 2021
Terminated at Sun Sep  5 19:11:26 2021
Results reported at Sun Sep  5 19:11:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin754 187.268 2.0454 434764801 435024001 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 :                                   802.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            928 sec.

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

