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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin480
RA = 187.268, Dec = 2.0454
tmin = 363744001, tmax = 364003201
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='706649', job_status='RUN', time_executed='2021-09-05 18:54:26.425573', time_epoch_executed='1630893266.43' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706649

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706649/ft1_4FGL_J1229.0+0202_daily_bin480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706649/ft2_4FGL_J1229.0+0202_daily_bin480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706649/ft1_4FGL_J1229.0+0202_daily_bin480.fits outfile=/scratch/kocevski/706649/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin480.fits ra=187.268 dec=2.0454 rad=12.0 tmin=363744001.0 tmax=364003201.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.29
user 3.07
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706649/ft1_filtered_4FGL_J1229.0+0202_daily_bin480.fits evtable="EVENTS" scfile=/scratch/kocevski/706649/ft2_4FGL_J1229.0+0202_daily_bin480.fits sctable="SC_DATA" expcube=/scratch/kocevski/706649/ltcube_363744001_364003201_4FGL_J1229.0+0202_daily_bin480.fits outfile=/scratch/kocevski/706649/expmap_363744001_364003201_4FGL_J1229.0+0202_daily_bin480.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/706649/ltcube_363744001_364003201_4FGL_J1229.0+0202_daily_bin480.fits
.....................!
real 189.36
user 184.49
sys 4.14

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/706649/ft1_filtered_4FGL_J1229.0+0202_daily_bin480.fits scfile=/scratch/kocevski/706649/ft2_4FGL_J1229.0+0202_daily_bin480.fits outfile=/scratch/kocevski/706649/cmap_363744001_364003201_4FGL_J1229.0+0202_daily_bin480.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/706649/ft1_filtered_4FGL_J1229.0+0202_daily_bin480.fits scfile=/scratch/kocevski/706649/ft2_4FGL_J1229.0+0202_daily_bin480.fits outfile=/scratch/kocevski/706649/cmap_HighResolution_363744001_364003201_4FGL_J1229.0+0202_daily_bin480.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/706649/ft1_filtered_4FGL_J1229.0+0202_daily_bin480.fits evtable="EVENTS" scfile=/scratch/kocevski/706649/ft2_4FGL_J1229.0+0202_daily_bin480.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/706649/Model_4FGL_J1229.0+0202_daily_bin480.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/706649/ft1_filtered_4FGL_J1229.0+0202_daily_bin480.fits.....................!
real 48.70
user 47.38
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4354       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9525       1.0000         .10000E-03   10000.    
     7 'Prefactor '    46.845       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.630       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    45.729       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.013       1.0000         .10000E-03   10000.    
    13 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.5899       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5435       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.8779       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.356       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.949       1.0000         .10000E-03   10000.    
    22 'norm      '    3.5912       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.2573       1.0000         .10000E-03   10000.    
    24 'Prefactor '    49.920       1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.360       1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.450       1.0000         .10000E-03   10000.    
    27 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    19.872       1.0000         .10000E-03   10000.    
    29 'norm      '    .20809       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3265       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .64842       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=   5435.603     FROM MIGRAD    STATUS=CONVERGED    818 CALLS     4290 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.2766        .69997E-06** at limit **
   2  Prefactor     .10000E-03    42.111        .12311E-04** at limit **
   3  Prefactor     4.4353        6.4159       -.24305E-06   -.64115E-04
   4  Prefactor     .10000E-03    36.532        .58026E-06** at limit **
   5  Prefactor     .10000E-03    2.8284        .22827E-06** at limit **
   6  Prefactor     5.9521        12.907       -.84674E-06   -.68625E-04
   7  Prefactor     46.843        72.451       -.33050E-05    .29119E-05
   8  Prefactor     17.630        27.163       -.20355E-06   -.94150E-06
   9  Prefactor     .10000E-03    54.587       -.59024E-05** at limit **
  10  Prefactor     45.728        27.777       -.10766E-05   -.18803E-04
  11  Prefactor     .10000E-03    6.8441        .28512E-06** at limit **
  12  Prefactor     13.013        14.249       -.49441E-06   -.15710E-03
  13  norm          .10000E-03    1.6524        .31438E-06** at limit **
  14  norm          4.5895        3.5962        .46584E-07   -.17611E-03
  15  Prefactor     6.5250        28.582       -.24344E-04   -.15268E-04
  16  norm          .10000E-03    17.323        .33634E-05** at limit **
  17  Prefactor     .10000E-03    40.641        .10407E-04** at limit **
  18  norm          1.8779        .79879       -.11717E-06   -.46814E-03
  19  Prefactor     13.358        11.826       -.63213E-06   -.56441E-03
  20  Prefactor     .10000E-03    16.050       -.28457E-05** at limit **
  21  Prefactor     17.952        14.585       -.38747E-06   -.40376E-04
  22  norm          3.5911        1.7712       -.83225E-07   -.33958E-04
  23  Prefactor     3.2553        10.134       -.32867E-06   -.21270E-03
  24  Prefactor     49.922        44.240        .21011E-05    .32651E-06
  25  Prefactor     14.339        35.005       -.29434E-04   -.52884E-05
  26  Prefactor     19.448        28.024       -.21628E-05    .90825E-06
  27  norm          .10000E-03    17.522        .33887E-05** at limit **
  28  Prefactor     19.872        14.298       -.12517E-06    .63835E-06
  29  norm          .20820        .18815        .33973E-06    .52105E-03
  30  Prefactor     .10000E-03    32.358       -.13446E-04** at limit **
  31  Normalizat    1.3266        .22079        .10272E-05    .28833E-05
  32  Prefactor     .64841        .16772        .24392E-05   -.27701E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.43527
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.95205
  Prefactor  = 46.843
  Prefactor  = 17.6301
  Prefactor  = 0.0001
  Prefactor  = 45.7276
  Prefactor  = 0.0001
  Prefactor  = 13.0126
  norm       = 0.0001
  norm       = 4.58949
  Prefactor  = 6.52502
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.87786
  Prefactor  = 13.3582
  Prefactor  = 0.0001
  Prefactor  = 17.9516
  norm       = 3.59112
  Prefactor  = 3.25529
  Prefactor  = 49.9222
  Prefactor  = 14.3394
  Prefactor  = 19.448
  norm       = 0.0001
  Prefactor  = 19.8723
  norm       = 0.208203
  Prefactor  = 0.0001
  Normalizat = 1.32656
  Prefactor  = 0.648411
 **********
 **   18 **HESSE 
 **********

 FCN=   5435.603     FROM HESSE     STATUS=OK           665 CALLS     4955 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.2816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    42.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.4353        6.4091        .19121E-03   -1.5287    
   4  Prefactor     .10000E-03    36.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8347        .12108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.9521        12.912        .16459E-03   -1.5220    
   7  Prefactor     46.843        72.467        .58583E-04   -1.4338    
   8  Prefactor     17.630        27.154        .95388E-04   -1.4868    
   9  Prefactor     .10000E-03    54.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     45.728        27.782        .59291E-04   -1.4354    
  11  Prefactor     .10000E-03    6.8448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.013        13.436        .11104E-03   -1.4986    
  13  norm          .10000E-03    2.9774        .17307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.5895        3.5950        .11386E-03   -1.5279    
  15  Prefactor     6.5250        28.651        .15688E-03   -1.5197    
  16  norm          .10000E-03    17.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    40.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8779        .79450        .37649E-04   -1.5434    
  19  Prefactor     13.358        11.863        .54801E-03   -1.4977    
  20  Prefactor     .10000E-03    16.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.952        14.510        .94537E-04   -1.4860    
  22  norm          3.5911        1.7683        .65620E-04   -1.5329    
  23  Prefactor     3.2553        10.059        .22439E-03   -1.5347    
  24  Prefactor     49.922        44.218        .56759E-04   -1.4294    
  25  Prefactor     14.339        34.906        .10569E-03   -1.4950    
  26  Prefactor     19.448        28.019        .90816E-04   -1.4826    
  27  norm          .10000E-03    17.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     19.872        14.315        .89847E-04   -1.4816    
  29  norm          .20820        .18483        .28080E-04   -1.5617    
  30  Prefactor     .10000E-03    32.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.3266        .25954        .26102E-03   -.82777    
  32  Prefactor     .64841        .19493        .27944E-03   -1.0558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.992e-10
Minuit parameter uncertainties:
  1  4.06219e-06
  2  1.49647e-05
  3  6.41009
  4  1.10993e-05
  5  2.02318e-06
  6  12.9184
  7  72.6033
  8  27.1733
  9  4.9557e-05
  10  27.7903
  11  4.82259e-06
  12  13.4393
  13  3.28992e-05
  14  3.59517
  15  27.3675
  16  5.4122e-06
  17  4.18394e-05
  18  0.794507
  19  11.8651
  20  1.03367e-05
  21  14.5125
  22  1.76833
  23  10.0641
  24  44.2471
  25  34.9559
  26  28.0383
  27  3.18769e-06
  28  14.3172
  29  0.18483
  30  1.21825e-05
  31  0.2598
  32  0.195134
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.878e+00  7.945e-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:  6.484e-01  1.951e-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.327e+00  2.598e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.21
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 2.06e-07 +/- 8.72e-08
Energy Flux (Fixed Index): 4.91e-05 +/- 2.08e-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) = 5435.47534631
delta logL = 0.127791695461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5435.47027645
delta logL = 0.132861559971

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8519       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8476       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3002       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66388       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=   5435.470     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      208 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8519        13.622        .76588E-02    .10053E-02
   2  alpha         2.8476        3.6013        .28935       -.22609E-04
   3  Normalizat    1.3002        .19311        .59478E-01    .64554E-05
   4  Prefactor     .66389        .23137        .62503E-01    .18588E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.85185
  alpha      = 2.84763
  Normalizat = 1.3002
  Prefactor  = 0.663889
 **********
 **   18 **HESSE 
 **********

 FCN=   5435.470     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8519        .73678        .36153E-04   -1.5436    
   2  alpha         2.8476        .46467        .12221E-01    .13950    
   3  Normalizat    1.3002        .25592        .26304E-03   -.83560    
   4  Prefactor     .66389        .19448        .27650E-03   -1.0496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57457e-11
Minuit parameter uncertainties:
  1  0.736783
  2  0.467445
  3  0.256168
  4  0.194683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706649': 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) = 5435.47027645
delta logL = 0.132861560813

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.852e+00  7.368e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.848e+00  4.674e-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:  6.639e-01  1.947e-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.300e+00  2.562e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.73
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.85 +/- 0.47
Photon Flux (Free Index): 2.31e-07 +/- 9.75e-08
Energy Flux (Free Index): 4.84e-05 +/- 1.88e-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/706649/cmap_HighResolution_363744001_364003201_4FGL_J1229.0+0202_daily_bin480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.06e-07', energy_flux2='4.84e-05', photon_flux_error='8.72e-08', dlogl='1.33e-01', energy_flux='4.91e-05', photon_flux2='2.31e-07', job_status='DONE', time_completed='2021-09-05 19:06:48.597056', photon_index_error2='0.47', photon_index2='2.85', ts='11.21', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='1.88e-05', EG='1.33', time_epoch_completed='1630894008.6', return_code='0', job_id='706649', GAL2='0.66', EG2='1.30', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='9.75e-08', ts2='11.73', photon_index='2.61' WHERE bin_id='480' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:06:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 706649: <4FGL_J1229.0+0202_daily_bin480> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin480> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 18:50:34 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:50:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 18:50:36 2021
Terminated at Sun Sep  5 19:06:49 2021
Results reported at Sun Sep  5 19:06:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin480 187.268 2.0454 363744001 364003201 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 :                                   740.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            975 sec.

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

