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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin341
RA = 187.268, Dec = 2.0454
tmin = 327715201, tmax = 327974401
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='705438', job_status='RUN', time_executed='2021-09-05 18:46:43.069464', time_epoch_executed='1630892803.07' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='341'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705438

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705438/ft1_4FGL_J1229.0+0202_daily_bin341.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705438/ft2_4FGL_J1229.0+0202_daily_bin341.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705438/ft1_4FGL_J1229.0+0202_daily_bin341.fits outfile=/scratch/kocevski/705438/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin341.fits ra=187.268 dec=2.0454 rad=12.0 tmin=327715201.0 tmax=327974401.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.93
user 3.07
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/705438/ft2_4FGL_J1229.0+0202_daily_bin341.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/705438/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin341.fits evtable="EVENTS" outfile="/scratch/kocevski/705438/ft1_filtered_4FGL_J1229.0+0202_daily_bin341.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.74
user 0.35
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705438/ft1_filtered_4FGL_J1229.0+0202_daily_bin341.fits evtable="EVENTS" scfile=/scratch/kocevski/705438/ft2_4FGL_J1229.0+0202_daily_bin341.fits sctable="SC_DATA" expcube=/scratch/kocevski/705438/ltcube_327715201_327974401_4FGL_J1229.0+0202_daily_bin341.fits outfile=/scratch/kocevski/705438/expmap_327715201_327974401_4FGL_J1229.0+0202_daily_bin341.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/705438/ltcube_327715201_327974401_4FGL_J1229.0+0202_daily_bin341.fits
.....................!
real 192.65
user 185.54
sys 5.10

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/705438/ft1_filtered_4FGL_J1229.0+0202_daily_bin341.fits scfile=/scratch/kocevski/705438/ft2_4FGL_J1229.0+0202_daily_bin341.fits outfile=/scratch/kocevski/705438/cmap_327715201_327974401_4FGL_J1229.0+0202_daily_bin341.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/705438/ft1_filtered_4FGL_J1229.0+0202_daily_bin341.fits scfile=/scratch/kocevski/705438/ft2_4FGL_J1229.0+0202_daily_bin341.fits outfile=/scratch/kocevski/705438/cmap_HighResolution_327715201_327974401_4FGL_J1229.0+0202_daily_bin341.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.61
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9857       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0212       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.2786       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.865       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.2693       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-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      '    1.5653       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.745       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.4798       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.2783       1.0000         .10000E-03   10000.    
    29 'norm      '    5.3584       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .71109       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2139       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=   6223.919     FROM MIGRAD    STATUS=CONVERGED    836 CALLS     4342 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2486        .79180E-07** at limit **
   2  Prefactor     .10003E-03    187.73        .19608E-04** at limit **
   3  Prefactor     2.9845        9.3007        .40469E-06   -.46474E-04
   4  Prefactor     .10000E-03    22.061       -.59320E-06** at limit **
   5  Prefactor     2.0211        8.8797        .86097E-05   -.31820E-03
   6  Prefactor     6.2789        12.337        .11960E-05   -.63365E-04
   7  Prefactor     18.877        75.640       -.26856E-05   -.27038E-04
   8  Prefactor     .10000E-03    16.268        .15961E-05** at limit **
   9  Prefactor     .10000E-03    25.046       -.19748E-05** at limit **
  10  Prefactor     .10000E-03    31.043        .11021E-08** at limit **
  11  Prefactor     .10000E-03    34.328        .14176E-05** at limit **
  12  Prefactor     .10000E-03    6.3860       -.10608E-06** at limit **
  13  norm          .10000E-03    1.3058       -.17799E-07** at limit **
  14  norm          2.2691        2.9711        .13752E-07   -.10613E-03
  15  Prefactor     .10000E-03    14.705       -.76992E-06** at limit **
  16  norm          .10000E-03    15.796        .10206E-05** at limit **
  17  Prefactor     .10000E-03    44.259        .20353E-05** at limit **
  18  norm          1.5653        .64607        .24900E-07    .64548E-04
  19  Prefactor     11.745        8.9548        .12213E-06    .30223E-04
  20  Prefactor     .10000E-03    7.1005        .70833E-07** at limit **
  21  Prefactor     .10000E-03    4.5675       -.22669E-07** at limit **
  22  norm          9.4797        2.5190        .70638E-07    .17765E-03
  23  Prefactor     .10000E-03    8.7374       -.26311E-06** at limit **
  24  Prefactor     .10000E-03    14.259       -.15471E-05** at limit **
  25  Prefactor     .10000E-03    20.501        .72192E-06** at limit **
  26  Prefactor     .10002E-03    128.51       -.13799E-04** at limit **
  27  norm          .10000E-03    10.620        .54301E-06** at limit **
  28  Prefactor     8.2802        13.143        .24279E-05    .32662E-03
  29  norm          5.3584        .56721        .20201E-07    .33213E-03
  30  Prefactor     .10000E-03    50.227       -.12080E-05** at limit **
  31  Normalizat    .71105        .22658       -.21679E-05    .62527E-04
  32  Prefactor     1.2140        .17892        .47717E-07    .81719E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100033
  Prefactor  = 2.98448
  Prefactor  = 0.0001
  Prefactor  = 2.02108
  Prefactor  = 6.2789
  Prefactor  = 18.8767
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.26915
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.56531
  Prefactor  = 11.7445
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.47975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  norm       = 0.0001
  Prefactor  = 8.28023
  norm       = 5.35844
  Prefactor  = 0.0001
  Normalizat = 0.711048
  Prefactor  = 1.21399
 **********
 **   18 **HESSE 
 **********

 FCN=   6223.919     FROM HESSE     STATUS=OK           647 CALLS     4989 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.2495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10003E-03    189.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.9845        9.2684        .23495E-03   -1.5362    
   4  Prefactor     .10000E-03    22.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.0211        9.0613        .14554E-02   -1.5424    
   6  Prefactor     6.2789        12.337        .80100E-03   -1.5207    
   7  Prefactor     18.877        75.418        .92214E-04   -1.4839    
   8  Prefactor     .10000E-03    16.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    31.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    34.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.4090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.3217        .87994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.2691        2.9485        .14493E-03   -1.5407    
  15  Prefactor     .10000E-03    14.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    15.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    44.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.5653        .64015        .37314E-04   -1.5458    
  19  Prefactor     11.745        8.9556        .11689E-03   -1.5022    
  20  Prefactor     .10000E-03    7.1017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.5852        .16465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.4797        2.5186        .60620E-04   -1.5092    
  23  Prefactor     .10000E-03    9.0062        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    20.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10002E-03    130.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    10.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     8.2802        13.209        .69669E-03   -1.5132    
  29  norm          5.3584        .56771        .18580E-04   -1.5245    
  30  Prefactor     .10000E-03    50.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .71105        .26198        .36430E-03   -1.0346    
  32  Prefactor     1.2140        .20903        .24057E-03   -.85902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00345e-09
Minuit parameter uncertainties:
  1  3.98387e-06
  2  0.00502387
  3  9.27287
  4  5.58271e-05
  5  8.56085
  6  12.3419
  7  75.6292
  8  0.00012629
  9  0.000194119
  10  6.25735e-06
  11  0.00015081
  12  6.75242e-06
  13  1.10159e-06
  14  2.94868
  15  5.91998e-05
  16  7.91961e-05
  17  0.00026725
  18  0.640157
  19  8.95657
  20  3.28301e-06
  21  2.21274e-06
  22  2.51862
  23  1.42731e-05
  24  0.000116177
  25  6.24151e-05
  26  0.00314065
  27  3.37444e-05
  28  13.2133
  29  0.567711
  30  0.000173957
  31  0.262442
  32  0.209176
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.565e+00  6.402e-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.214e+00  2.092e-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:  7.110e-01  2.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.68
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.72e-07 +/- 7.03e-08
Energy Flux (Fixed Index): 4.09e-05 +/- 1.67e-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) = 6223.91604282
delta logL = 0.00313087143786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6223.91580104
delta logL = 0.0033726537813

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5646       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5711       1.0000          .0000       5.0000    
     3 'Normalizat'    .71647       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2106       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=   6223.916     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      203 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5641        1.2961        .84370E-02    .30172E-03
   2  alpha         2.5711        .92980        .35526       -.16239E-04
   3  Normalizat    .71651        .21672        .81984E-01    .27751E-04
   4  Prefactor     1.2106        .18308        .54478E-01    .17313E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.56413
  alpha      = 2.57113
  Normalizat = 0.716511
  Prefactor  = 1.21059
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5641        .62699        .37530E-04   -1.5458    
   2  alpha         2.5711        .52495        .13881E-01    .28457E-01
   3  Normalizat    .71651        .25759        .36307E-03   -1.0324    
   4  Prefactor     1.2106        .21218        .24086E-03   -.86006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90222e-10
Minuit parameter uncertainties:
  1  0.626994
  2  0.528887
  3  0.258027
  4  0.212329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705438': 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) = 6223.91580078
delta logL = 0.00337291637425

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.564e+00  6.270e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.571e+00  5.289e-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.211e+00  2.123e-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:  7.165e-01  2.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.61
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.57 +/- 0.53
Photon Flux (Free Index): 1.68e-07 +/- 8.12e-08
Energy Flux (Free Index): 4.11e-05 +/- 1.68e-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/705438/cmap_HighResolution_327715201_327974401_4FGL_J1229.0+0202_daily_bin341.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.72e-07', energy_flux2='4.11e-05', photon_flux_error='7.03e-08', dlogl='3.37e-03', energy_flux='4.09e-05', photon_flux2='1.68e-07', job_status='DONE', time_completed='2021-09-05 19:00:42.366010', photon_index_error2='0.53', photon_index2='2.57', ts='12.68', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='1.68e-05', EG='0.71', time_epoch_completed='1630893642.37', return_code='0', job_id='705438', GAL2='1.21', EG2='0.72', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='8.12e-08', ts2='12.61', photon_index='2.61' WHERE bin_id='341' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:00:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 705438: <4FGL_J1229.0+0202_daily_bin341> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin341> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 18:46:18 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:46:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 18:46:20 2021
Terminated at Sun Sep  5 19:00:43 2021
Results reported at Sun Sep  5 19:00:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin341 187.268 2.0454 327715201 327974401 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 :                                   824.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            865 sec.

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

