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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin1329
RA = 187.268, Dec = 2.0454
tmin = 583804801, tmax = 584064001
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='711525', job_status='RUN', time_executed='2021-09-05 19:06:54.126125', time_epoch_executed='1630894014.13' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='1329'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711525

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711525/ft1_4FGL_J1229.0+0202_daily_bin1329.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711525/ft2_4FGL_J1229.0+0202_daily_bin1329.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711525/ft1_4FGL_J1229.0+0202_daily_bin1329.fits outfile=/scratch/kocevski/711525/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin1329.fits ra=187.268 dec=2.0454 rad=12.0 tmin=583804801.0 tmax=584064001.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.59
user 3.23
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/711525/ft2_4FGL_J1229.0+0202_daily_bin1329.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/711525/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin1329.fits evtable="EVENTS" outfile="/scratch/kocevski/711525/ft1_filtered_4FGL_J1229.0+0202_daily_bin1329.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.82
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/711525/ft1_filtered_4FGL_J1229.0+0202_daily_bin1329.fits" evtable="EVENTS" scfile=/scratch/kocevski/711525/ft2_4FGL_J1229.0+0202_daily_bin1329.fits sctable="SC_DATA" outfile=/scratch/kocevski/711525/ltcube_583804801_584064001_4FGL_J1229.0+0202_daily_bin1329.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/711525/ft2_4FGL_J1229.0+0202_daily_bin1329.fits
.....................!
real 12.18
user 11.65
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711525/ft1_filtered_4FGL_J1229.0+0202_daily_bin1329.fits evtable="EVENTS" scfile=/scratch/kocevski/711525/ft2_4FGL_J1229.0+0202_daily_bin1329.fits sctable="SC_DATA" expcube=/scratch/kocevski/711525/ltcube_583804801_584064001_4FGL_J1229.0+0202_daily_bin1329.fits outfile=/scratch/kocevski/711525/expmap_583804801_584064001_4FGL_J1229.0+0202_daily_bin1329.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/711525/ltcube_583804801_584064001_4FGL_J1229.0+0202_daily_bin1329.fits
.....................!
real 194.32
user 186.30
sys 5.36

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/711525/ft1_filtered_4FGL_J1229.0+0202_daily_bin1329.fits scfile=/scratch/kocevski/711525/ft2_4FGL_J1229.0+0202_daily_bin1329.fits outfile=/scratch/kocevski/711525/cmap_583804801_584064001_4FGL_J1229.0+0202_daily_bin1329.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/711525/ft1_filtered_4FGL_J1229.0+0202_daily_bin1329.fits scfile=/scratch/kocevski/711525/ft2_4FGL_J1229.0+0202_daily_bin1329.fits outfile=/scratch/kocevski/711525/cmap_HighResolution_583804801_584064001_4FGL_J1229.0+0202_daily_bin1329.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    106.58       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.471       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.7386       1.0000         .10000E-03   10000.    
    14 'norm      '    5.5605       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.987       1.0000         .10000E-03   10000.    
    18 'norm      '    .68278       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1193       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15701E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.4310       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.223       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    3.1557       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .17879E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .88798       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2799       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=   5991.349     FROM MIGRAD    STATUS=CONVERGED    842 CALLS     4365 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8567       -.10614E-05** at limit **
   2  Prefactor     .10000E-03    35.154       -.75880E-05** at limit **
   3  Prefactor     .10000E-03    8.8384       -.86109E-05** at limit **
   4  Prefactor     106.62        97.526        .33340E-04   -.22808E-04
   5  Prefactor     .10000E-03    13.212       -.12067E-05** at limit **
   6  Prefactor     .10001E-03    33.731       -.32216E-05** at limit **
   7  Prefactor     .10000E-03    95.199        .47838E-04** at limit **
   8  Prefactor     .10000E-03    30.949        .15357E-04** at limit **
   9  Prefactor     .10000E-03    13.644        .47989E-06** at limit **
  10  Prefactor     .10000E-03    6.2794        .80863E-06** at limit **
  11  Prefactor     10.469        24.332        .62201E-06   -.15267E-04
  12  Prefactor     .10000E-03    5.3134       -.41447E-07** at limit **
  13  norm          3.7381        2.7266        .32607E-07   -.13606E-03
  14  norm          5.5616        3.8309        .23539E-07   -.25868E-03
  15  Prefactor     .10000E-03    16.974        .13044E-05** at limit **
  16  norm          .10000E-03    19.820       -.60135E-05** at limit **
  17  Prefactor     28.993        83.147        .84467E-05   -.30322E-05
  18  norm          .68281        .48630       -.81918E-08   -.44913E-03
  19  Prefactor     6.1147        6.2228        .52502E-06   -.35833E-03
  20  Prefactor     .10001E-03    102.60        .56054E-04** at limit **
  21  Prefactor     .10000E-03    2.8363        .57346E-07** at limit **
  22  norm          3.4314        2.0454        .55868E-07   -.39375E-03
  23  Prefactor     .10000E-03    2.9745        .69116E-07** at limit **
  24  Prefactor     10.227        37.189        .32380E-05   -.67961E-05
  25  Prefactor     .10000E-03    64.088       -.43619E-04** at limit **
  26  Prefactor     .10000E-03    13.753        .21876E-05** at limit **
  27  norm          .10000E-03    8.7345        .88314E-05** at limit **
  28  Prefactor     .10000E-03    5.7322       -.30940E-06** at limit **
  29  norm          3.1552        .46839        .60479E-07    .44882E-02
  30  Prefactor     .10000E-03    186.92       -.10868E-03** at limit **
  31  Normalizat    .88789        .22695       -.14194E-05   -.64469E-04
  32  Prefactor     1.2799        .18860       -.13783E-05    .81804E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 106.624
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4692
  Prefactor  = 0.0001
  norm       = 3.73812
  norm       = 5.5616
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.9931
  norm       = 0.682806
  Prefactor  = 6.11466
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 3.43136
  Prefactor  = 0.0001
  Prefactor  = 10.2268
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.15522
  Prefactor  = 0.000100001
  Normalizat = 0.887891
  Prefactor  = 1.2799
 **********
 **   18 **HESSE 
 **********

 FCN=   5991.349     FROM HESSE     STATUS=OK           643 CALLS     5008 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    35.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.9274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     106.62        97.425        .19477E-03   -1.3639    
   5  Prefactor     .10000E-03    13.556        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    34.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    95.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.2815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.469        24.315        .12382E-03   -1.5061    
  12  Prefactor     .10000E-03    5.3256        .17416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.7381        2.7248        .10530E-03   -1.5321    
  14  norm          5.5616        3.8166        .11324E-03   -1.5236    
  15  Prefactor     .10000E-03    17.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    19.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.993        83.161        .74413E-04   -1.4631    
  18  norm          .68281        .47083        .42249E-04   -1.5543    
  19  Prefactor     6.1147        6.2219        .16230E-03   -1.5213    
  20  Prefactor     .10001E-03    104.78        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.8394        .12731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.4314        2.0369        .80195E-04   -1.5337    
  23  Prefactor     .10000E-03    2.9832        .13037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.227        37.181        .12532E-03   -1.5068    
  25  Prefactor     .10000E-03    64.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    13.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    8.7393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.7501        .18098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          3.1552        .46898        .19620E-04   -1.5353    
  30  Prefactor     .10000E-03    187.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .88789        .26885        .33549E-03   -.96887    
  32  Prefactor     1.2799        .22503        .24017E-03   -.83907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.62044e-10
Minuit parameter uncertainties:
  1  6.2194e-07
  2  1.98274e-05
  3  4.27683e-05
  4  97.572
  5  6.18792e-05
  6  0.0013117
  7  6.99259e-05
  8  0.000498302
  9  1.16264e-05
  10  2.35455e-06
  11  24.338
  12  4.07376e-06
  13  2.72493
  14  3.81675
  15  3.08912e-06
  16  9.51293e-06
  17  83.4965
  18  0.470828
  19  6.22254
  20  0.00145993
  21  2.05304e-06
  22  2.03689
  23  2.82842e-06
  24  37.2649
  25  0.00014006
  26  4.89409e-06
  27  2.81002e-06
  28  5.64366e-06
  29  0.468979
  30  0.000858114
  31  0.269253
  32  0.225202
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  6.828e-01  4.708e-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.280e+00  2.252e-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:  8.879e-01  2.693e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.18
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 7.50e-08 +/- 5.17e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.23e-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) = 5991.08724616
delta logL = 0.261587220758

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5991.08381731
delta logL = 0.265016077429

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .65530       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1680       1.0000          .0000       5.0000    
     3 'Normalizat'    .90642       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2683       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=   5991.084     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .65500        .46478        .92075E-02    .28939E-03
   2  alpha         2.1683        .49545        .37801       -.26043E-04
   3  Normalizat    .90714        .22063        .75097E-01    .31140E-04
   4  Prefactor     1.2678        .18594        .54529E-01    .28160E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.655003
  alpha      = 2.16833
  Normalizat = 0.90714
  Prefactor  = 1.26784
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .65500        .46495        .41393E-04   -1.5546    
   2  alpha         2.1683        .57444        .14693E-01   -.13306    
   3  Normalizat    .90714        .26251        .33234E-03   -.96210    
   4  Prefactor     1.2678        .22123        .24110E-03   -.84268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.65799e-10
Minuit parameter uncertainties:
  1  0.464952
  2  0.579718
  3  0.262879
  4  0.221393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711525': 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) = 5991.0838129
delta logL = 0.265020485661

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  6.550e-01  4.650e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.168e+00  5.797e-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.268e+00  2.214e-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.071e-01  2.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.70
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.17 +/- 0.58
Photon Flux (Free Index): 5.97e-08 +/- 4.69e-08
Energy Flux (Free Index): 2.06e-05 +/- 1.46e-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/711525/cmap_HighResolution_583804801_584064001_4FGL_J1229.0+0202_daily_bin1329.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.50e-08', energy_flux2='2.06e-05', photon_flux_error='5.17e-08', dlogl='2.65e-01', energy_flux='1.78e-05', photon_flux2='5.97e-08', job_status='DONE', time_completed='2021-09-05 19:20:13.017870', photon_index_error2='0.58', photon_index2='2.17', ts='4.18', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='1.46e-05', EG='0.89', time_epoch_completed='1630894813.02', return_code='0', job_id='711525', GAL2='1.27', EG2='0.91', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='4.69e-08', ts2='4.70', photon_index='2.61' WHERE bin_id='1329' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:20:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 711525: <4FGL_J1229.0+0202_daily_bin1329> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin1329> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep  5 19:06:01 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 19:06:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 19:06:03 2021
Terminated at Sun Sep  5 19:20:13 2021
Results reported at Sun Sep  5 19:20:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin1329 187.268 2.0454 583804801 584064001 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 :                                   788.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            852 sec.

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

