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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin766
RA = 187.268, Dec = 2.0454
tmin = 437875201, tmax = 438134401
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='708417', job_status='RUN', time_executed='2021-09-05 18:59:13.635479', time_epoch_executed='1630893553.64' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708417

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708417/ft1_4FGL_J1229.0+0202_daily_bin766.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708417/ft2_4FGL_J1229.0+0202_daily_bin766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708417/ft1_4FGL_J1229.0+0202_daily_bin766.fits outfile=/scratch/kocevski/708417/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin766.fits ra=187.268 dec=2.0454 rad=12.0 tmin=437875201.0 tmax=438134401.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 5.88
user 5.60
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/708417/ft2_4FGL_J1229.0+0202_daily_bin766.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/708417/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin766.fits evtable="EVENTS" outfile="/scratch/kocevski/708417/ft1_filtered_4FGL_J1229.0+0202_daily_bin766.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708417/ft1_filtered_4FGL_J1229.0+0202_daily_bin766.fits" evtable="EVENTS" scfile=/scratch/kocevski/708417/ft2_4FGL_J1229.0+0202_daily_bin766.fits sctable="SC_DATA" outfile=/scratch/kocevski/708417/ltcube_437875201_438134401_4FGL_J1229.0+0202_daily_bin766.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/708417/ft2_4FGL_J1229.0+0202_daily_bin766.fits
.....................!
real 12.12
user 11.78
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708417/ft1_filtered_4FGL_J1229.0+0202_daily_bin766.fits evtable="EVENTS" scfile=/scratch/kocevski/708417/ft2_4FGL_J1229.0+0202_daily_bin766.fits sctable="SC_DATA" expcube=/scratch/kocevski/708417/ltcube_437875201_438134401_4FGL_J1229.0+0202_daily_bin766.fits outfile=/scratch/kocevski/708417/expmap_437875201_438134401_4FGL_J1229.0+0202_daily_bin766.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/708417/ltcube_437875201_438134401_4FGL_J1229.0+0202_daily_bin766.fits
.....................!
real 190.58
user 185.88
sys 4.32

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/708417/ft1_filtered_4FGL_J1229.0+0202_daily_bin766.fits scfile=/scratch/kocevski/708417/ft2_4FGL_J1229.0+0202_daily_bin766.fits outfile=/scratch/kocevski/708417/cmap_437875201_438134401_4FGL_J1229.0+0202_daily_bin766.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=187.268 yref=2.0454 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708417/ft1_filtered_4FGL_J1229.0+0202_daily_bin766.fits scfile=/scratch/kocevski/708417/ft2_4FGL_J1229.0+0202_daily_bin766.fits outfile=/scratch/kocevski/708417/cmap_HighResolution_437875201_438134401_4FGL_J1229.0+0202_daily_bin766.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.852       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0643       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.616       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    111.76       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.7368       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.5440       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8812       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.3164       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.8130       1.0000         .10000E-03   10000.    
    24 'Prefactor '    81.880       1.0000         .10000E-03   10000.    
    25 'Prefactor '    74.339       1.0000         .10000E-03   10000.    
    26 'Prefactor '    58.010       1.0000         .10000E-03   10000.    
    27 'norm      '    10.384       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.3172       1.0000         .10000E-03   10000.    
    29 'norm      '    1.6436       1.0000         .10000E-03   10000.    
    30 'Prefactor '    7.9371       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .89010       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0314       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=   5364.926     FROM MIGRAD    STATUS=CONVERGED    836 CALLS     4309 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.848        37.436        .45600E-06   -.23215E-05
   2  Prefactor     .10000E-03    24.786        .24921E-05** at limit **
   3  Prefactor     .10000E-03    5.4620        .26386E-07** at limit **
   4  Prefactor     .10000E-03    62.417       -.16842E-05** at limit **
   5  Prefactor     .10000E-03    6.4234        .65693E-07** at limit **
   6  Prefactor     6.0544        27.027        .14865E-05    .14137E-04
   7  Prefactor     .10000E-03    26.869       -.11722E-05** at limit **
   8  Prefactor     28.626        48.948       -.97394E-06    .27718E-05
   9  Prefactor     .10000E-03    14.867       -.10127E-06** at limit **
  10  Prefactor     111.76        43.767        .19281E-06   -.78720E-05
  11  Prefactor     .10000E-03    29.136       -.27578E-05** at limit **
  12  Prefactor     .10000E-03    3.7900        .16443E-07** at limit **
  13  norm          .10000E-03    .74788        .88737E-08** at limit **
  14  norm          3.7379        3.9190        .93112E-07   -.97510E-04
  15  Prefactor     .10000E-03    62.763       -.19841E-05** at limit **
  16  norm          .10000E-03    42.619        .40915E-05** at limit **
  17  Prefactor     .10000E-03    182.44       -.20678E-05** at limit **
  18  norm          1.5439        .76800       -.10737E-07   -.38720E-03
  19  Prefactor     1.8807        11.706        .10743E-04    .13958E-04
  20  Prefactor     .10000E-03    12.395        .27085E-06** at limit **
  21  Prefactor     .10000E-03    8.5522        .15983E-06** at limit **
  22  norm          7.3161        2.3976        .36166E-07   -.46751E-04
  23  Prefactor     3.8127        10.936        .35588E-05   -.26186E-04
  24  Prefactor     81.873        49.580        .34059E-06   -.63987E-05
  25  Prefactor     74.329        80.942       -.71302E-08   -.30661E-04
  26  Prefactor     58.019        54.175       -.72084E-06   -.65037E-05
  27  norm          10.385        18.540       -.31082E-06   -.69293E-05
  28  Prefactor     6.3094        16.730        .75129E-06    .40248E-05
  29  norm          1.6437        .40743       -.15427E-07    .65563E-03
  30  Prefactor     7.8549        60.079        .11317E-04   -.48819E-05
  31  Normalizat    .89020        .26798       -.13736E-05   -.42210E-05
  32  Prefactor     1.0313        .19789       -.88992E-06   -.28838E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.8479
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.05439
  Prefactor  = 0.0001
  Prefactor  = 28.6265
  Prefactor  = 0.0001
  Prefactor  = 111.757
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.73789
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.54394
  Prefactor  = 1.88074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.31609
  Prefactor  = 3.81267
  Prefactor  = 81.8728
  Prefactor  = 74.3291
  Prefactor  = 58.0189
  norm       = 10.3848
  Prefactor  = 6.30938
  norm       = 1.64368
  Prefactor  = 7.85486
  Normalizat = 0.890201
  Prefactor  = 1.03133
 **********
 **   18 **HESSE 
 **********

 FCN=   5364.926     FROM HESSE     STATUS=OK           653 CALLS     4962 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.848        37.440        .61964E-04   -1.4413    
   2  Prefactor     .10000E-03    24.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.4839        .16718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    62.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.4571        .18127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.0544        26.977        .16304E-03   -1.5216    
   7  Prefactor     .10000E-03    26.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.626        48.896        .74893E-04   -1.4637    
   9  Prefactor     .10000E-03    14.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     111.76        43.815        .38051E-04   -1.3590    
  11  Prefactor     .10000E-03    29.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.7923        .13925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .74890        .61852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.7379        3.9058        .13680E-03   -1.5321    
  15  Prefactor     .10000E-03    63.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    42.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    182.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.5439        .76095        .40845E-04   -1.5459    
  19  Prefactor     1.8807        11.696        .15175E-02   -1.5434    
  20  Prefactor     .10000E-03    12.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.6051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.3161        2.3968        .61272E-04   -1.5167    
  23  Prefactor     3.8127        10.927        .10335E-02   -1.5317    
  24  Prefactor     81.873        49.553        .44388E-04   -1.3896    
  25  Prefactor     74.329        82.240        .46567E-04   -1.3982    
  26  Prefactor     58.019        54.045        .52673E-04   -1.4183    
  27  norm          10.385        18.537        .12434E-03   -1.5063    
  28  Prefactor     6.3094        16.720        .15970E-03   -1.5206    
  29  norm          1.6437        .41477        .19645E-04   -1.5452    
  30  Prefactor     7.8549        60.137        .14232E-03   -1.5147    
  31  Normalizat    .89020        .31115        .34169E-03   -.96805    
  32  Prefactor     1.0313        .22999        .25311E-03   -.91692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77709e-11
Minuit parameter uncertainties:
  1  37.4613
  2  1.24783e-05
  3  4.19953e-06
  4  4.54177e-05
  5  4.12262e-06
  6  25.5793
  7  1.64617e-06
  8  48.9642
  9  4.96135e-06
  10  43.8276
  11  5.71395e-05
  12  1.02928e-06
  13  3.64439e-07
  14  3.90609
  15  0.00011313
  16  3.41369e-06
  17  6.42482e-05
  18  0.760957
  19  9.38288
  20  2.62085e-06
  21  7.51456e-06
  22  2.39683
  23  10.9324
  24  49.5778
  25  82.3663
  26  54.0902
  27  18.5471
  28  16.7321
  29  0.414774
  30  43.5286
  31  0.311777
  32  0.230211
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.544e+00  7.610e-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.031e+00  2.302e-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.902e-01  3.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.27
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.70e-07 +/- 8.35e-08
Energy Flux (Fixed Index): 4.03e-05 +/- 1.99e-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) = 5364.92318784
delta logL = 0.0027013247327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5364.92288398
delta logL = 0.00300518801214

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5328       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5647       1.0000          .0000       5.0000    
     3 'Normalizat'    .89684       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0274       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=   5364.923     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      194 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5330        1.0321        .86164E-02    .33916E-02
   2  alpha         2.5643        .72341        .39475        .16750E-04
   3  Normalizat    .89687        .25044        .76952E-01    .27360E-04
   4  Prefactor     1.0274        .19760        .41467E-01   -.65163E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.53301
  alpha      = 2.56434
  Normalizat = 0.896874
  Prefactor  = 1.0274
 **********
 **   18 **HESSE 
 **********

 FCN=   5364.923     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5330        .74538        .41020E-04   -1.5460    
   2  alpha         2.5643        .63722        .14579E-01    .25739E-01
   3  Normalizat    .89687        .29783        .34059E-03   -.96570    
   4  Prefactor     1.0274        .23024        .25353E-03   -.91822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74025e-10
Minuit parameter uncertainties:
  1  0.745382
  2  0.644332
  3  0.298382
  4  0.23046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708417': 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) = 5364.92288377
delta logL = 0.00300539772707

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.533e+00  7.454e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.564e+00  6.443e-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.027e+00  2.305e-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.969e-01  2.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.28
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.56 +/- 0.64
Photon Flux (Free Index): 1.64e-07 +/- 1.03e-07
Energy Flux (Free Index): 4.03e-05 +/- 1.92e-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/708417/cmap_HighResolution_437875201_438134401_4FGL_J1229.0+0202_daily_bin766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.70e-07', energy_flux2='4.03e-05', photon_flux_error='8.35e-08', dlogl='3.01e-03', energy_flux='4.03e-05', photon_flux2='1.64e-07', job_status='DONE', time_completed='2021-09-05 19:11:42.594219', photon_index_error2='0.64', photon_index2='2.56', ts='9.27', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.92e-05', EG='0.89', time_epoch_completed='1630894302.59', return_code='0', job_id='708417', GAL2='1.03', EG2='0.90', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='1.03e-07', ts2='9.28', photon_index='2.61' WHERE bin_id='766' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:11:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 708417: <4FGL_J1229.0+0202_daily_bin766> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin766 187.268 2.0454 437875201 438134401 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 :                                   747.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            944 sec.

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

