/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 110 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 6834
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1229.0+0202_daily_bin613
RA = 187.268, Dec = 2.0454
tmin = 398217601, tmax = 398476801
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='706835', job_status='RUN', time_executed='2021-09-05 18:52:47.950055', time_epoch_executed='1630893167.95' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='613'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706835

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706835/ft1_4FGL_J1229.0+0202_daily_bin613.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706835/ft2_4FGL_J1229.0+0202_daily_bin613.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706835/ft1_4FGL_J1229.0+0202_daily_bin613.fits outfile=/scratch/kocevski/706835/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin613.fits ra=187.268 dec=2.0454 rad=12.0 tmin=398217601.0 tmax=398476801.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 6.52
user 6.28
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/706835/ft2_4FGL_J1229.0+0202_daily_bin613.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/706835/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin613.fits evtable="EVENTS" outfile="/scratch/kocevski/706835/ft1_filtered_4FGL_J1229.0+0202_daily_bin613.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706835/ft1_filtered_4FGL_J1229.0+0202_daily_bin613.fits evtable="EVENTS" scfile=/scratch/kocevski/706835/ft2_4FGL_J1229.0+0202_daily_bin613.fits sctable="SC_DATA" expcube=/scratch/kocevski/706835/ltcube_398217601_398476801_4FGL_J1229.0+0202_daily_bin613.fits outfile=/scratch/kocevski/706835/expmap_398217601_398476801_4FGL_J1229.0+0202_daily_bin613.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/706835/ltcube_398217601_398476801_4FGL_J1229.0+0202_daily_bin613.fits
.....................!
real 189.58
user 185.34
sys 3.88

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/706835/ft1_filtered_4FGL_J1229.0+0202_daily_bin613.fits scfile=/scratch/kocevski/706835/ft2_4FGL_J1229.0+0202_daily_bin613.fits outfile=/scratch/kocevski/706835/cmap_398217601_398476801_4FGL_J1229.0+0202_daily_bin613.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706835/ft1_filtered_4FGL_J1229.0+0202_daily_bin613.fits scfile=/scratch/kocevski/706835/ft2_4FGL_J1229.0+0202_daily_bin613.fits outfile=/scratch/kocevski/706835/cmap_HighResolution_398217601_398476801_4FGL_J1229.0+0202_daily_bin613.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.56
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2623       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1838       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10423E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10314E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.992       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.473       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .67096       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.295       1.0000         .10000E-03   10000.    
    13 'norm      '    .13124E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .50706E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12292E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.7993       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.523       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.146       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.5946       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.6605       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.5695       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10232E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.3008       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .60328       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.5393       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5132.189     FROM MIGRAD    STATUS=CONVERGED   1553 CALLS     5067 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2633        30.664        .19516E-03    .46603E-06
   2  Prefactor     .10000E-03    58.077        .18142E-02** at limit **
   3  Prefactor     7.1860        9.2371        .14966E-03   -.26815E-04
   4  Prefactor     .10000E-03    26.827        .18142E-02** at limit **
   5  Prefactor     .10000E-03    4.4941        .14805E-02** at limit **
   6  Prefactor     .10000E-03    7.1094        .18142E-02** at limit **
   7  Prefactor     .10000E-03    31.576        .18142E-02** at limit **
   8  Prefactor     .10000E-03    19.625        .18142E-02** at limit **
   9  Prefactor     37.942        38.632        .65025E-04    .29722E-05
  10  Prefactor     20.468        25.137        .88522E-04   -.40327E-04
  11  Prefactor     .57554        39.962        .12081        .12301E-03
  12  Prefactor     10.296        12.511        .62438E-03   -.24675E-03
  13  norm          .10000E-03    4.5691        .19256E-02** at limit **
  14  norm          .10002E-03    10.530        .18853E-02** at limit **
  15  Prefactor     .10000E-03    15.929        .18142E-02** at limit **
  16  norm          .10000E-03    32.154        .18142E-02** at limit **
  17  Prefactor     .10000E-03    119.44        .18142E-02** at limit **
  18  norm          1.7989        .69974        .35103E-04   -.16828E-02
  19  Prefactor     19.524        19.012        .90648E-04    .41387E-05
  20  Prefactor     12.136        33.688        .11494E-03    .10286E-04
  21  Prefactor     .10000E-03    6.0816        .17217E-02** at limit **
  22  norm          3.5940        2.0074        .72317E-04   -.16868E-03
  23  Prefactor     3.6624        11.127        .10556E-02    .63971E-05
  24  Prefactor     .10000E-03    11.922        .18142E-02** at limit **
  25  Prefactor     2.3669        244.94        .25464E-03    .93755E-06
  26  Prefactor     .10000E-03    62.488        .18142E-02** at limit **
  27  norm          .10000E-03    27.974        .18142E-02** at limit **
  28  Prefactor     .10000E-03    67.026        .36285E-03** at limit **
  29  norm          1.3013        .36136        .20428E-04    .21760E-03
  30  Prefactor     .10000E-03    44.372        .18142E-02** at limit **
  31  Normalizat    .60296        .29754        .40413E-03   -.27597E-04
  32  Prefactor     1.5396        .24474        .22262E-03   -.18282E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.26333
  Prefactor  = 0.0001
  Prefactor  = 7.18596
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.9423
  Prefactor  = 20.4679
  Prefactor  = 0.575539
  Prefactor  = 10.2961
  norm       = 0.0001
  norm       = 0.000100021
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.79894
  Prefactor  = 19.5242
  Prefactor  = 12.1364
  Prefactor  = 0.0001
  norm       = 3.59404
  Prefactor  = 3.66239
  Prefactor  = 0.0001
  Prefactor  = 2.36692
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 1.30127
  Prefactor  = 0.0001
  Normalizat = 0.602959
  Prefactor  = 1.53961
 **********
 **   18 **HESSE 
 **********

 FCN=   5132.189     FROM HESSE     STATUS=OK           637 CALLS     5704 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2633        30.667        .78064E-05   -1.5295    
   2  Prefactor     .10000E-03    58.078        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.1860        9.2372        .59863E-05   -1.5172    
   4  Prefactor     .10000E-03    26.828        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.4945        .29611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.1099        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    31.576        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.625        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     37.942        38.638        .26010E-05   -1.4475    
  10  Prefactor     20.468        25.138        .35409E-05   -1.4803    
  11  Prefactor     .57554        37.774        .12575       -1.5556    
  12  Prefactor     10.296        12.491        .24975E-04   -1.5066    
  13  norm          .10000E-03    4.5857        .38512E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10002E-03    10.626        .37705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.929        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    32.155        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    119.44        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.7989        .69959        .14041E-05   -1.5440    
  19  Prefactor     19.524        19.012        .36259E-05   -1.4824    
  20  Prefactor     12.136        33.694        .45977E-05   -1.5011    
  21  Prefactor     .10000E-03    6.0825        .34434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.5940        2.0073        .28927E-05   -1.5329    
  23  Prefactor     3.6624        11.117        .42226E-04   -1.5325    
  24  Prefactor     .10000E-03    11.923        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.3669        244.84        .10186E-04   -1.5400    
  26  Prefactor     .10000E-03    62.492        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    27.976        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    67.031        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.3013        .36120        .81713E-06   -1.5480    
  30  Prefactor     .10000E-03    44.374        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .60296        .29763        .16165E-04   -1.0786    
  32  Prefactor     1.5396        .24486        .44523E-04   -.76436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59002e-09
Minuit parameter uncertainties:
  1  22.8848
  2  0.000184176
  3  9.23901
  4  3.67675e-05
  5  6.93905e-06
  6  1.31759e-05
  7  2.75541e-05
  8  1.2195e-05
  9  38.6633
  10  25.1506
  11  9.33067
  12  12.4944
  13  7.52194e-05
  14  0.000954315
  15  9.38978e-06
  16  1.2122e-05
  17  0.00023131
  18  0.699595
  19  19.0181
  20  33.7465
  21  2.05701e-05
  22  2.00736
  23  11.1237
  24  1.08424e-05
  25  48.3495
  26  0.000211521
  27  0.000106833
  28  0.000665061
  29  0.361197
  30  4.42054e-05
  31  0.298428
  32  0.245047
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.799e+00  6.996e-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.540e+00  2.450e-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:  6.030e-01  2.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.81
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.98e-07 +/- 7.68e-08
Energy Flux (Fixed Index): 4.70e-05 +/- 1.83e-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) = 5132.0901863
delta logL = 0.0987503178512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5132.08875066
delta logL = 0.1001859567

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7508       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8343       1.0000          .0000       5.0000    
     3 'Normalizat'    .57742       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5561       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5132.089     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      246 TOTAL
                     EDM=   .82E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7508        .69915        .34024E-04   -.38793E-03
   2  alpha         2.8343        .50839        .12708E-01   -.41759E-05
   3  Normalizat    .57748        .29647        .41228E-03    .63423E-06
   4  Prefactor     1.5560        .24608        .22167E-03   -.27284E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.75078
  alpha      = 2.83429
  Normalizat = 0.577477
  Prefactor  = 1.55602
 **********
 **   18 **HESSE 
 **********

 FCN=   5132.089     FROM HESSE     STATUS=OK            23 CALLS      269 TOTAL
                     EDM=   .82E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7508        .69426        .13610E-05   -1.5443    
   2  alpha         2.8343        .50478        .50834E-03    .13412    
   3  Normalizat    .57748        .29672        .16491E-04   -1.0895    
   4  Prefactor     1.5560        .24621        .88669E-05   -.75983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.18031e-12
Minuit parameter uncertainties:
  1  0.694267
  2  0.508336
  3  0.29754
  4  0.246399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706835': 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) = 5132.08875063
delta logL = 0.100185980341

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.751e+00  6.943e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.834e+00  5.083e-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.556e+00  2.464e-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:  5.775e-01  2.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.09
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.83 +/- 0.51
Photon Flux (Free Index): 2.17e-07 +/- 9.04e-08
Energy Flux (Free Index): 4.57e-05 +/- 1.76e-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/706835/cmap_HighResolution_398217601_398476801_4FGL_J1229.0+0202_daily_bin613.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.98e-07', energy_flux2='4.57e-05', photon_flux_error='7.68e-08', dlogl='1.00e-01', energy_flux='4.70e-05', photon_flux2='2.17e-07', job_status='DONE', time_completed='2021-09-05 19:05:34.009872', photon_index_error2='0.51', photon_index2='2.83', ts='12.81', fit_tolerance='1e-08', GAL='1.54', photon_index_error='0.00', energy_flux_error2='1.76e-05', EG='0.60', time_epoch_completed='1630893934.01', return_code='0', job_id='706835', GAL2='1.56', EG2='0.58', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='9.04e-08', ts2='13.09', photon_index='2.61' WHERE bin_id='613' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:05:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 706835: <4FGL_J1229.0+0202_daily_bin613> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin613 187.268 2.0454 398217601 398476801 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 :                                   762.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            888 sec.

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

