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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin943
RA = 187.268, Dec = 2.0454
tmin = 483753601, tmax = 484012801
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='709717', job_status='RUN', time_executed='2021-09-05 19:02:36.848499', time_epoch_executed='1630893756.85' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='943'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/709717

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/709717/ft1_4FGL_J1229.0+0202_daily_bin943.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/709717/ft2_4FGL_J1229.0+0202_daily_bin943.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/709717/ft1_4FGL_J1229.0+0202_daily_bin943.fits outfile=/scratch/kocevski/709717/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin943.fits ra=187.268 dec=2.0454 rad=12.0 tmin=483753601.0 tmax=484012801.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.53
user 5.24
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/709717/ft1_filtered_4FGL_J1229.0+0202_daily_bin943.fits evtable="EVENTS" scfile=/scratch/kocevski/709717/ft2_4FGL_J1229.0+0202_daily_bin943.fits sctable="SC_DATA" expcube=/scratch/kocevski/709717/ltcube_483753601_484012801_4FGL_J1229.0+0202_daily_bin943.fits outfile=/scratch/kocevski/709717/expmap_483753601_484012801_4FGL_J1229.0+0202_daily_bin943.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/709717/ltcube_483753601_484012801_4FGL_J1229.0+0202_daily_bin943.fits
.....................!
real 191.31
user 186.39
sys 4.49

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/709717/ft1_filtered_4FGL_J1229.0+0202_daily_bin943.fits scfile=/scratch/kocevski/709717/ft2_4FGL_J1229.0+0202_daily_bin943.fits outfile=/scratch/kocevski/709717/cmap_483753601_484012801_4FGL_J1229.0+0202_daily_bin943.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.84
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/709717/ft1_filtered_4FGL_J1229.0+0202_daily_bin943.fits scfile=/scratch/kocevski/709717/ft2_4FGL_J1229.0+0202_daily_bin943.fits outfile=/scratch/kocevski/709717/cmap_HighResolution_483753601_484012801_4FGL_J1229.0+0202_daily_bin943.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.69
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.350       1.0000         .10000E-03   10000.    
     2 'Prefactor '    95.076       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.830       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3870       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25498E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .27723E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    57.026       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.995       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.499       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .87885       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    100.77       1.0000         .10000E-03   10000.    
    18 'norm      '    2.9763       1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.704       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.455       1.0000         .10000E-03   10000.    
    22 'norm      '    2.8308       1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.302       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    124.14       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    31.534       1.0000         .10000E-03   10000.    
    29 'norm      '    .63323       1.0000         .10000E-03   10000.    
    30 'Prefactor '    21.264       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .49574       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2401       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=   4804.156     FROM MIGRAD    STATUS=CONVERGED    809 CALLS     5073 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.351        16.088        .37290E-06    .37840E-04
   2  Prefactor     95.092        99.919        .15550E-04    .29750E-04
   3  Prefactor     17.810        13.134       -.35551E-06    .41366E-03
   4  Prefactor     .10000E-03    24.299        .59609E-06** at limit **
   5  Prefactor     1.3862        8.0116       -.64539E-05   -.90483E-03
   6  Prefactor     .10000E-03    8.6373        .18497E-06** at limit **
   7  Prefactor     .10000E-03    239.78       -.13861E-03** at limit **
   8  Prefactor     .10000E-03    16.013        .52071E-05** at limit **
   9  Prefactor     57.040        43.164        .13893E-04    .97077E-04
  10  Prefactor     22.992        21.315       -.20000E-05    .30529E-04
  11  Prefactor     17.500        17.600       -.40516E-06    .25695E-04
  12  Prefactor     .10000E-03    4.7365        .25986E-07** at limit **
  13  norm          .87895        2.3378       -.32392E-06   -.75856E-03
  14  norm          .10000E-03    1.1308       -.67175E-07** at limit **
  15  Prefactor     .10000E-03    8.6283        .90055E-07** at limit **
  16  norm          .10000E-03    21.510       -.49975E-05** at limit **
  17  Prefactor     100.77        99.010        .68614E-05    .53109E-05
  18  norm          2.9764        .76460        .40345E-08    .34517E-03
  19  Prefactor     28.706        14.574        .51256E-07    .79018E-04
  20  Prefactor     .10000E-03    20.361       -.60754E-05** at limit **
  21  Prefactor     14.456        12.215       -.43315E-06   -.52048E-03
  22  norm          2.8315        2.0716       -.24409E-07   -.21600E-03
  23  Prefactor     19.304        11.373        .12992E-06    .16922E-04
  24  Prefactor     .10000E-03    25.449        .31762E-05** at limit **
  25  Prefactor     124.15        68.842        .76475E-05    .21381E-04
  26  Prefactor     .10000E-03    31.817        .56911E-05** at limit **
  27  norm          .10000E-03    11.431       -.84597E-06** at limit **
  28  Prefactor     31.540        19.720        .17160E-05   -.15741E-08
  29  norm          .63332        .30203        .18516E-06    .64968E-03
  30  Prefactor     21.231        75.287       -.64817E-04    .34018E-05
  31  Normalizat    .49549        .26479       -.50552E-05    .16651E-03
  32  Prefactor     1.2401        .20179        .23062E-05    .12544E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.3513
  Prefactor  = 95.0921
  Prefactor  = 17.8097
  Prefactor  = 0.0001
  Prefactor  = 1.38616
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 57.0396
  Prefactor  = 22.9918
  Prefactor  = 17.4995
  Prefactor  = 0.0001
  norm       = 0.878946
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 100.773
  norm       = 2.97644
  Prefactor  = 28.7056
  Prefactor  = 0.0001
  Prefactor  = 14.4562
  norm       = 2.83152
  Prefactor  = 19.3037
  Prefactor  = 0.0001
  Prefactor  = 124.151
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 31.5396
  norm       = 0.633318
  Prefactor  = 21.2309
  Normalizat = 0.495494
  Prefactor  = 1.24012
 **********
 **   18 **HESSE 
 **********

 FCN=   4804.156     FROM HESSE     STATUS=OK           655 CALLS     5728 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.351        16.083        .99051E-04   -1.4899    
   2  Prefactor     95.092        99.732        .41220E-04   -1.3755    
   3  Prefactor     17.810        13.117        .94850E-04   -1.4864    
   4  Prefactor     .10000E-03    24.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.3862        8.1261        .36920E-03   -1.5472    
   6  Prefactor     .10000E-03    41.774        .39085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    238.31        .21423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     57.040        43.132        .53123E-04   -1.4196    
  10  Prefactor     22.992        21.193        .83530E-04   -1.4749    
  11  Prefactor     17.500        17.597        .95744E-04   -1.4871    
  12  Prefactor     .10000E-03    4.7420        .14721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .87895        2.2656        .16435E-03   -1.5520    
  14  norm          .10000E-03    1.1449        .71922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.6290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    21.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     100.77        98.990        .40051E-04   -1.3697    
  18  norm          2.9764        .76359        .28492E-04   -1.5363    
  19  Prefactor     28.706        14.561        .37390E-03   -1.4636    
  20  Prefactor     .10000E-03    20.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.456        12.208        .52673E-03   -1.4947    
  22  norm          2.8315        2.0579        .79309E-04   -1.5371    
  23  Prefactor     19.304        11.358        .91165E-04   -1.4829    
  24  Prefactor     .10000E-03    25.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     124.15        68.855        .36126E-04   -1.3475    
  26  Prefactor     .10000E-03    31.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    11.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     31.540        19.685        .71352E-04   -1.4584    
  29  norm          .63332        .30096        .23691E-04   -1.5549    
  30  Prefactor     21.231        75.134        .86861E-04   -1.4786    
  31  Normalizat    .49549        .28365        .40031E-03   -1.1262    
  32  Prefactor     1.2401        .22261        .22092E-03   -.85105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92401e-09
Minuit parameter uncertainties:
  1  16.0876
  2  99.9082
  3  13.119
  4  2.12333e-06
  5  6.71353
  6  0.000685947
  7  0.000832598
  8  1.37271e-06
  9  43.1552
  10  21.1994
  11  17.6023
  12  1.03183e-05
  13  2.26582
  14  6.43341e-06
  15  3.69847e-06
  16  8.91355e-06
  17  99.1528
  18  0.763593
  19  14.5628
  20  6.35136e-06
  21  12.2097
  22  2.058
  23  11.3592
  24  2.39564e-05
  25  68.8995
  26  4.13415e-05
  27  1.37939e-05
  28  19.6891
  29  0.300963
  30  75.4715
  31  0.284485
  32  0.222777
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  2.976e+00  7.636e-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.240e+00  2.228e-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:  4.955e-01  2.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 39.71
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 3.27e-07 +/- 8.38e-08
Energy Flux (Fixed Index): 7.78e-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) = 4803.76862865
delta logL = 0.386970235741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4803.74501912
delta logL = 0.410579769996

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7628       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9306       1.0000          .0000       5.0000    
     3 'Normalizat'    .45378       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2671       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=   4803.745     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      209 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7628        1.5158        .60471E-02    .10914E-02
   2  alpha         2.9306        .70627        .19551        .12057E-05
   3  Normalizat    .45380        .24492        .94096E-01    .36728E-04
   4  Prefactor     1.2670        .20574        .49514E-01   -.15499E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.76282
  alpha      = 2.93064
  Normalizat = 0.453798
  Prefactor  = 1.26704
 **********
 **   18 **HESSE 
 **********

 FCN=   4803.745     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7628        .76233        .26760E-04   -1.5376    
   2  alpha         2.9306        .36248        .85576E-03    .17312    
   3  Normalizat    .45380        .26489        .41694E-03   -1.1461    
   4  Prefactor     1.2670        .22141        .21888E-03   -.84292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72608e-11
Minuit parameter uncertainties:
  1  0.762333
  2  0.363801
  3  0.265624
  4  0.221575
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/709717': 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) = 4803.74501911
delta logL = 0.410579773207

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  2.763e+00  7.623e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.931e+00  3.638e-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.267e+00  2.216e-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:  4.538e-01  2.656e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 40.71
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.93 +/- 0.36
Photon Flux (Free Index): 3.62e-07 +/- 9.50e-08
Energy Flux (Free Index): 7.30e-05 +/- 1.86e-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/709717/cmap_HighResolution_483753601_484012801_4FGL_J1229.0+0202_daily_bin943.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.27e-07', energy_flux2='7.30e-05', photon_flux_error='8.38e-08', dlogl='4.11e-01', energy_flux='7.78e-05', photon_flux2='3.62e-07', job_status='DONE', time_completed='2021-09-05 19:15:29.081528', photon_index_error2='0.36', photon_index2='2.93', ts='39.71', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='1.86e-05', EG='0.50', time_epoch_completed='1630894529.08', return_code='0', job_id='709717', GAL2='1.27', EG2='0.45', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='9.50e-08', ts2='40.71', photon_index='2.61' WHERE bin_id='943' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:15:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 709717: <4FGL_J1229.0+0202_daily_bin943> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin943> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 19:00:34 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 19:00:36 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:00:36 2021
Terminated at Sun Sep  5 19:15:29 2021
Results reported at Sun Sep  5 19:15:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin943 187.268 2.0454 483753601 484012801 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 :                                   761.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            895 sec.

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

