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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin539
RA = 187.268, Dec = 2.0454
tmin = 379036801, tmax = 379296001
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='706732', job_status='RUN', time_executed='2021-09-05 18:50:52.592015', time_epoch_executed='1630893052.59' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='539'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706732

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706732/ft1_4FGL_J1229.0+0202_daily_bin539.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706732/ft2_4FGL_J1229.0+0202_daily_bin539.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706732/ft1_4FGL_J1229.0+0202_daily_bin539.fits outfile=/scratch/kocevski/706732/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin539.fits ra=187.268 dec=2.0454 rad=12.0 tmin=379036801.0 tmax=379296001.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.43
user 3.23
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/706732/ft2_4FGL_J1229.0+0202_daily_bin539.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/706732/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin539.fits evtable="EVENTS" outfile="/scratch/kocevski/706732/ft1_filtered_4FGL_J1229.0+0202_daily_bin539.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/706732/ft1_filtered_4FGL_J1229.0+0202_daily_bin539.fits" evtable="EVENTS" scfile=/scratch/kocevski/706732/ft2_4FGL_J1229.0+0202_daily_bin539.fits sctable="SC_DATA" outfile=/scratch/kocevski/706732/ltcube_379036801_379296001_4FGL_J1229.0+0202_daily_bin539.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/706732/ft2_4FGL_J1229.0+0202_daily_bin539.fits
.....................!
real 11.74
user 11.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706732/ft1_filtered_4FGL_J1229.0+0202_daily_bin539.fits evtable="EVENTS" scfile=/scratch/kocevski/706732/ft2_4FGL_J1229.0+0202_daily_bin539.fits sctable="SC_DATA" expcube=/scratch/kocevski/706732/ltcube_379036801_379296001_4FGL_J1229.0+0202_daily_bin539.fits outfile=/scratch/kocevski/706732/expmap_379036801_379296001_4FGL_J1229.0+0202_daily_bin539.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/706732/ltcube_379036801_379296001_4FGL_J1229.0+0202_daily_bin539.fits
.....................!
real 189.90
user 184.89
sys 4.63

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/706732/ft1_filtered_4FGL_J1229.0+0202_daily_bin539.fits scfile=/scratch/kocevski/706732/ft2_4FGL_J1229.0+0202_daily_bin539.fits outfile=/scratch/kocevski/706732/cmap_379036801_379296001_4FGL_J1229.0+0202_daily_bin539.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706732/ft1_filtered_4FGL_J1229.0+0202_daily_bin539.fits scfile=/scratch/kocevski/706732/ft2_4FGL_J1229.0+0202_daily_bin539.fits outfile=/scratch/kocevski/706732/cmap_HighResolution_379036801_379296001_4FGL_J1229.0+0202_daily_bin539.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.55
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.8207       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.495       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    15.965       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.3222       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13447E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.532       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.6350       1.0000         .10000E-03   10000.    
    22 'norm      '    34.857       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .28787       1.0000         .10000E-03   10000.    
    24 'Prefactor '    27.220       1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.235       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    24.475       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .43330       1.0000         .10000E-03   10000.    
    30 'Prefactor '    28.937       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0101       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1117       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=   7798.828     FROM MIGRAD    STATUS=CONVERGED    818 CALLS     4345 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.685        .72813E-05** at limit **
   2  Prefactor     .10000E-03    31.972       -.68735E-05** at limit **
   3  Prefactor     6.8224        7.1416       -.10140E-06   -.68837E-06
   4  Prefactor     .10000E-03    33.727        .38279E-05** at limit **
   5  Prefactor     .10000E-03    2.6771       -.35952E-07** at limit **
   6  Prefactor     .10000E-03    6.0420       -.32136E-05** at limit **
   7  Prefactor     37.489        93.720       -.77676E-05    .28092E-05
   8  Prefactor     .10000E-03    12.591       -.71399E-05** at limit **
   9  Prefactor     .10000E-03    5.7546       -.15838E-05** at limit **
  10  Prefactor     .10000E-03    5.9116        .43987E-05** at limit **
  11  Prefactor     .10000E-03    14.329        .46736E-05** at limit **
  12  Prefactor     .10000E-03    2.2204       -.31746E-07** at limit **
  13  norm          .10000E-03    .63603       -.40122E-07** at limit **
  14  norm          15.967        4.6660        .13592E-05    .13928E-04
  15  Prefactor     .10000E-03    19.405        .48600E-05** at limit **
  16  norm          .10000E-03    21.510       -.76361E-05** at limit **
  17  Prefactor     .10000E-03    94.904       -.13074E-04** at limit **
  18  norm          1.3224        .61173       -.23497E-06   -.81492E-03
  19  Prefactor     .10000E-03    11.219       -.67687E-05** at limit **
  20  Prefactor     37.527        32.032       -.17469E-05    .10069E-03
  21  Prefactor     3.6308        10.265        .10164E-05   -.18389E-03
  22  norm          34.858        3.8631        .36214E-06    .57362E-04
  23  Prefactor     .33954        5.3349        .37350E-06    .10317E-02
  24  Prefactor     27.220        27.339       -.26924E-05   -.41281E-05
  25  Prefactor     16.224        45.144       -.20590E-04   -.12448E-05
  26  Prefactor     .10000E-03    20.826       -.33976E-05** at limit **
  27  norm          24.458        26.456       -.16017E-04   -.23381E-04
  28  Prefactor     .10000E-03    10.176        .56433E-05** at limit **
  29  norm          .43324        .21353        .27349E-06    .10632E-02
  30  Prefactor     28.917        52.154       -.26357E-04   -.27911E-05
  31  Normalizat    1.0093        .22090       -.18565E-06    .44446E-04
  32  Prefactor     1.1123        .17265        .30147E-05   -.16655E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.82237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.4891
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.9674
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.32236
  Prefactor  = 0.0001
  Prefactor  = 37.5271
  Prefactor  = 3.63075
  norm       = 34.8584
  Prefactor  = 0.339538
  Prefactor  = 27.2198
  Prefactor  = 16.2244
  Prefactor  = 0.0001
  norm       = 24.4578
  Prefactor  = 0.0001
  norm       = 0.433242
  Prefactor  = 28.9171
  Normalizat = 1.00932
  Prefactor  = 1.1123
 **********
 **   18 **HESSE 
 **********

 FCN=   7798.828     FROM HESSE     STATUS=OK           649 CALLS     4994 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.8224        7.1371        .15363E-03   -1.5186    
   4  Prefactor     .10000E-03    33.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.6943        .14110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.0658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.489        93.991        .65453E-04   -1.4483    
   8  Prefactor     .10000E-03    12.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.7553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.9131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.2221        .12851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .64945        .68768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          15.967        4.6693        .95816E-04   -1.4909    
  15  Prefactor     .10000E-03    19.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    21.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    94.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.3224        .60351        .43293E-04   -1.5478    
  19  Prefactor     .10000E-03    11.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     37.527        32.025        .65420E-04   -1.4482    
  21  Prefactor     3.6308        10.260        .21190E-03   -1.5327    
  22  norm          34.858        3.8637        .53989E-04   -1.4526    
  23  Prefactor     .33954        69.602        .36556E-02   -1.5591    
  24  Prefactor     27.220        27.359        .76785E-04   -1.4664    
  25  Prefactor     16.224        45.270        .99403E-04   -1.4902    
  26  Prefactor     .10000E-03    20.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          24.458        27.037        .80969E-04   -1.4718    
  28  Prefactor     .10000E-03    10.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .43324        .21229        .26560E-04   -1.5576    
  30  Prefactor     28.917        52.122        .74477E-04   -1.4632    
  31  Normalizat    1.0093        .26810        .34161E-03   -.92719    
  32  Prefactor     1.1123        .21013        .26437E-03   -.89074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31574e-08
Minuit parameter uncertainties:
  1  4.18683e-05
  2  1.82008e-05
  3  7.13798
  4  2.71006e-05
  5  7.75496e-06
  6  1.21385e-05
  7  94.3655
  8  6.66036e-06
  9  5.12858e-06
  10  1.02717e-05
  11  6.67588e-05
  12  3.48417e-06
  13  2.16222e-06
  14  4.66944
  15  5.45506e-05
  16  0.000100196
  17  0.000152399
  18  0.603511
  19  3.12966e-05
  20  32.0396
  21  10.2654
  22  3.86375
  23  9.73268
  24  27.372
  25  45.3665
  26  2.78611e-05
  27  27.0505
  28  4.91175e-05
  29  0.212291
  30  52.2044
  31  0.268457
  32  0.210291
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.322e+00  6.035e-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.112e+00  2.103e-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.009e+00  2.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.94
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.45e-07 +/- 6.62e-08
Energy Flux (Fixed Index): 3.45e-05 +/- 1.58e-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) = 7798.64600983
delta logL = 0.182407777729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7798.63973535
delta logL = 0.188682253854

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3004       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9690       1.0000          .0000       5.0000    
     3 'Normalizat'    .97796       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1316       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=   7798.640     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      210 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3004        9.9537        .90501E-02    .13141E-02
   2  alpha         2.9689        3.4036        .42106        .17753E-04
   3  Normalizat    .97795        .10777        .78183E-01    .20119E-04
   4  Prefactor     1.1316        .10496        .59337E-01    .88559E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.30045
  alpha      = 2.96895
  Normalizat = 0.977952
  Prefactor  = 1.13164
 **********
 **   18 **HESSE 
 **********

 FCN=   7798.640     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3004        .57497        .40371E-04   -1.5480    
   2  alpha         2.9689        .60473        .17751E-01    .18870    
   3  Normalizat    .97795        .26131        .34603E-03   -.93773    
   4  Prefactor     1.1316        .20928        .26240E-03   -.88462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13614e-11
Minuit parameter uncertainties:
  1  0.574968
  2  0.611012
  3  0.261655
  4  0.209428
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706732': 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) = 7798.63973535
delta logL = 0.188682257451

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.300e+00  5.750e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.969e+00  6.110e-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.132e+00  2.094e-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:  9.780e-01  2.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.67
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.97 +/- 0.61
Photon Flux (Free Index): 1.74e-07 +/- 8.27e-08
Energy Flux (Free Index): 3.46e-05 +/- 1.45e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/706732/cmap_HighResolution_379036801_379296001_4FGL_J1229.0+0202_daily_bin539.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.45e-07', energy_flux2='3.46e-05', photon_flux_error='6.62e-08', dlogl='1.89e-01', energy_flux='3.45e-05', photon_flux2='1.74e-07', job_status='DONE', time_completed='2021-09-05 19:06:33.229219', photon_index_error2='0.61', photon_index2='2.97', ts='9.94', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='1.01', time_epoch_completed='1630893993.23', return_code='0', job_id='706732', GAL2='1.13', EG2='0.98', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='8.27e-08', ts2='10.67', photon_index='2.61' WHERE bin_id='539' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:06:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 706732: <4FGL_J1229.0+0202_daily_bin539> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin539> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 18:50:40 2021
Job was executed on host(s) <bullet0164>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:50:41 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:41 2021
Terminated at Sun Sep  5 19:06:34 2021
Results reported at Sun Sep  5 19:06:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin539 187.268 2.0454 379036801 379296001 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 :                                   929.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            954 sec.

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

