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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin718
RA = 187.268, Dec = 2.0454
tmin = 425433601, tmax = 425692801
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='708347', job_status='RUN', time_executed='2021-09-05 18:59:16.795140', time_epoch_executed='1630893556.8' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708347

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

Retrieving the FT1 file...

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

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

Retrieving 38 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708347/ft1_4FGL_J1229.0+0202_daily_bin718.fits


Retrieving the FT1 file...

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

Retrieving 38 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708347/ft2_4FGL_J1229.0+0202_daily_bin718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708347/ft1_4FGL_J1229.0+0202_daily_bin718.fits outfile=/scratch/kocevski/708347/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin718.fits ra=187.268 dec=2.0454 rad=12.0 tmin=425433601.0 tmax=425692801.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.06
user 2.87
sys 0.17

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708347/ft1_filtered_4FGL_J1229.0+0202_daily_bin718.fits" evtable="EVENTS" scfile=/scratch/kocevski/708347/ft2_4FGL_J1229.0+0202_daily_bin718.fits sctable="SC_DATA" outfile=/scratch/kocevski/708347/ltcube_425433601_425692801_4FGL_J1229.0+0202_daily_bin718.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/708347/ft2_4FGL_J1229.0+0202_daily_bin718.fits
.....................!
real 9.78
user 9.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708347/ft1_filtered_4FGL_J1229.0+0202_daily_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/708347/ft2_4FGL_J1229.0+0202_daily_bin718.fits sctable="SC_DATA" expcube=/scratch/kocevski/708347/ltcube_425433601_425692801_4FGL_J1229.0+0202_daily_bin718.fits outfile=/scratch/kocevski/708347/expmap_425433601_425692801_4FGL_J1229.0+0202_daily_bin718.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/708347/ltcube_425433601_425692801_4FGL_J1229.0+0202_daily_bin718.fits
.....................!
real 190.13
user 185.92
sys 3.85

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/708347/ft1_filtered_4FGL_J1229.0+0202_daily_bin718.fits scfile=/scratch/kocevski/708347/ft2_4FGL_J1229.0+0202_daily_bin718.fits outfile=/scratch/kocevski/708347/cmap_425433601_425692801_4FGL_J1229.0+0202_daily_bin718.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.58
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708347/ft1_filtered_4FGL_J1229.0+0202_daily_bin718.fits scfile=/scratch/kocevski/708347/ft2_4FGL_J1229.0+0202_daily_bin718.fits outfile=/scratch/kocevski/708347/cmap_HighResolution_425433601_425692801_4FGL_J1229.0+0202_daily_bin718.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=187.268 yref=2.0454 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15775E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    48.604       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10872E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .35840E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.497       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9970       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.537       1.0000         .10000E-03   10000.    
    13 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .57355       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10306E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.8819       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.9031       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    9.8242       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.9047       1.0000         .10000E-03   10000.    
    29 'norm      '    .29516       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .32477E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.5486       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .83078       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=   5188.255     FROM MIGRAD    STATUS=CONVERGED    848 CALLS     4532 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.202        .11322E-05** at limit **
   2  Prefactor     .10000E-03    169.20        .11504E-05** at limit **
   3  Prefactor     .10000E-03    3.7138       -.25400E-08** at limit **
   4  Prefactor     48.627        55.562       -.17412E-05   -.19365E-05
   5  Prefactor     .10000E-03    10.361        .46974E-06** at limit **
   6  Prefactor     .10000E-03    63.499        .89511E-06** at limit **
   7  Prefactor     .10000E-03    60.247        .59591E-06** at limit **
   8  Prefactor     .10000E-03    19.867        .10438E-05** at limit **
   9  Prefactor     39.532        53.421       -.24338E-05   -.11595E-04
  10  Prefactor     5.0504        47.639       -.94747E-06   -.67186E-05
  11  Prefactor     .10000E-03    10.095       -.82742E-06** at limit **
  12  Prefactor     13.535        17.987        .27293E-06   -.12968E-04
  13  norm          .10000E-03    2.5316       -.41080E-07** at limit **
  14  norm          .57194        3.0468        .40506E-06   -.11438E-03
  15  Prefactor     .10000E-03    8.8574        .15393E-06** at limit **
  16  norm          .10000E-03    69.333       -.29750E-05** at limit **
  17  Prefactor     .10000E-03    39.802        .19169E-05** at limit **
  18  norm          1.8819        .87077        .12410E-08   -.26087E-03
  19  Prefactor     .10000E-03    7.4692       -.50231E-07** at limit **
  20  Prefactor     .10000E-03    12.830       -.88076E-06** at limit **
  21  Prefactor     .10000E-03    3.9818       -.37013E-08** at limit **
  22  norm          .10000E-03    1.2794       -.10732E-06** at limit **
  23  Prefactor     8.9047        12.141        .67709E-06    .99589E-06
  24  Prefactor     .10000E-03    28.198       -.11431E-05** at limit **
  25  Prefactor     .10000E-03    25.832       -.64574E-06** at limit **
  26  Prefactor     .10000E-03    62.656       -.14857E-06** at limit **
  27  norm          9.8308        32.752       -.64458E-06    .31684E-06
  28  Prefactor     2.9053        11.731        .31079E-05    .65999E-06
  29  norm          .29528        .26317       -.48683E-08   -.12881E-03
  30  Prefactor     .10000E-03    339.28        .29435E-05** at limit **
  31  Normalizat    1.5486        .25318       -.90166E-06   -.48656E-04
  32  Prefactor     .83074        .18599        .76868E-06   -.47417E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.6273
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.5318
  Prefactor  = 5.0504
  Prefactor  = 0.0001
  Prefactor  = 13.5345
  norm       = 0.0001
  norm       = 0.57194
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.88185
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.90472
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.83083
  Prefactor  = 2.90529
  norm       = 0.295282
  Prefactor  = 0.0001
  Normalizat = 1.54862
  Prefactor  = 0.830742
 **********
 **   18 **HESSE 
 **********

 FCN=   5188.255     FROM HESSE     STATUS=OK           655 CALLS     5187 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    169.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.7161        .13557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     48.627        55.611        .28759E-03   -1.4312    
   5  Prefactor     .10000E-03    10.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    66.017        .39255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    60.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     39.532        53.533        .63778E-04   -1.4450    
  10  Prefactor     5.0504        47.124        .17990E-03   -1.5258    
  11  Prefactor     .10000E-03    10.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.535        17.746        .10887E-03   -1.4972    
  13  norm          .10000E-03    2.5582        .22177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .57194        8.3415        .21033E-02   -1.5557    
  15  Prefactor     .10000E-03    8.8578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    69.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    39.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8819        .85222        .38384E-04   -1.5434    
  19  Prefactor     .10000E-03    7.5548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.9863        .14035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.3359        .15872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.9047        12.105        .67165E-03   -1.5111    
  24  Prefactor     .10000E-03    28.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    25.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    62.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          9.8308        32.659        .12785E-03   -1.5081    
  28  Prefactor     2.9053        11.795        .11920E-02   -1.5367    
  29  norm          .29528        .25357        .32770E-03   -1.5599    
  30  Prefactor     .10000E-03    348.65        .42712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.5486        .29390        .26493E-03   -.76421    
  32  Prefactor     .83074        .21647        .26908E-03   -.98605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36898e-08
Minuit parameter uncertainties:
  1  4.87679e-06
  2  0.000130581
  3  4.04662e-07
  4  55.6705
  5  2.99371e-05
  6  2.95183e-05
  7  1.13737e-05
  8  1.14184e-05
  9  53.5985
  10  30.8859
  11  8.8029e-06
  12  17.753
  13  2.70114e-06
  14  4.36879
  15  1.28698e-06
  16  2.2677e-05
  17  2.41286e-05
  18  0.852222
  19  3.073e-06
  20  4.01892e-06
  21  1.72273e-06
  22  3.08214e-06
  23  12.1079
  24  3.78801e-06
  25  3.05158e-06
  26  2.35021e-05
  27  32.7185
  28  11.7115
  29  0.253572
  30  0.000794242
  31  0.294223
  32  0.216693
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.882e+00  8.522e-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:  8.307e-01  2.167e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.549e+00  2.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.19
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 2.07e-07 +/- 9.35e-08
Energy Flux (Fixed Index): 4.92e-05 +/- 2.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) = 5188.22104578
delta logL = 0.0335746750561

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5188.21802168
delta logL = 0.0365987748901

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8791       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7625       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5270       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84382       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=   5188.218     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      220 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8786        15.131        .75927E-02    .36221E-03
   2  alpha         2.7620        3.2394        .33531       -.41601E-05
   3  Normalizat    1.5268        .22838        .60233E-01    .46589E-05
   4  Prefactor     .84398        .31019        .44285E-01    .12765E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.87859
  alpha      = 2.76204
  Normalizat = 1.52681
  Prefactor  = 0.843977
 **********
 **   18 **HESSE 
 **********

 FCN=   5188.218     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8786        .77805        .37629E-04   -1.5434    
   2  alpha         2.7620        .55189        .13459E-01    .10501    
   3  Normalizat    1.5268        .29255        .26637E-03   -.77028    
   4  Prefactor     .84398        .22022        .26725E-03   -.98127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60394e-11
Minuit parameter uncertainties:
  1  0.778052
  2  0.556524
  3  0.292875
  4  0.220446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708347': 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) = 5188.21802021
delta logL = 0.0366002455939

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.879e+00  7.781e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.762e+00  5.565e-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:  8.440e-01  2.204e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.527e+00  2.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.32
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.76 +/- 0.56
Photon Flux (Free Index): 2.23e-07 +/- 1.06e-07
Energy Flux (Free Index): 4.88e-05 +/- 2.01e-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/708347/cmap_HighResolution_425433601_425692801_4FGL_J1229.0+0202_daily_bin718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.07e-07', energy_flux2='4.88e-05', photon_flux_error='9.35e-08', dlogl='3.66e-02', energy_flux='4.92e-05', photon_flux2='2.23e-07', job_status='DONE', time_completed='2021-09-05 19:11:23.061595', photon_index_error2='0.56', photon_index2='2.76', ts='9.19', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='2.01e-05', EG='1.55', time_epoch_completed='1630894283.06', return_code='0', job_id='708347', GAL2='0.84', EG2='1.53', return_code2='0', energy_flux_error='2.23e-05', photon_flux_error2='1.06e-07', ts2='9.32', photon_index='2.61' WHERE bin_id='718' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:11:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 708347: <4FGL_J1229.0+0202_daily_bin718> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin718> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 18:55:53 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:55:55 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:55:55 2021
Terminated at Sun Sep  5 19:11:23 2021
Results reported at Sun Sep  5 19:11:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin718 187.268 2.0454 425433601 425692801 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 :                                   726.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

