/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 146 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 = 7382
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1229.0+0202_daily_bin184
RA = 187.268, Dec = 2.0454
tmin = 287020801, tmax = 287280001
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='705174', job_status='RUN', time_executed='2021-09-05 18:48:38.771420', time_epoch_executed='1630892918.77' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705174

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705174/ft1_4FGL_J1229.0+0202_daily_bin184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705174/ft2_4FGL_J1229.0+0202_daily_bin184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705174/ft1_4FGL_J1229.0+0202_daily_bin184.fits outfile=/scratch/kocevski/705174/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin184.fits ra=187.268 dec=2.0454 rad=12.0 tmin=287020801.0 tmax=287280001.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 4.59
user 4.30
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705174/ft1_filtered_4FGL_J1229.0+0202_daily_bin184.fits evtable="EVENTS" scfile=/scratch/kocevski/705174/ft2_4FGL_J1229.0+0202_daily_bin184.fits sctable="SC_DATA" expcube=/scratch/kocevski/705174/ltcube_287020801_287280001_4FGL_J1229.0+0202_daily_bin184.fits outfile=/scratch/kocevski/705174/expmap_287020801_287280001_4FGL_J1229.0+0202_daily_bin184.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/705174/ltcube_287020801_287280001_4FGL_J1229.0+0202_daily_bin184.fits
.....................!
real 191.05
user 185.03
sys 5.59

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/705174/ft1_filtered_4FGL_J1229.0+0202_daily_bin184.fits scfile=/scratch/kocevski/705174/ft2_4FGL_J1229.0+0202_daily_bin184.fits outfile=/scratch/kocevski/705174/cmap_287020801_287280001_4FGL_J1229.0+0202_daily_bin184.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/705174/ft1_filtered_4FGL_J1229.0+0202_daily_bin184.fits scfile=/scratch/kocevski/705174/ft2_4FGL_J1229.0+0202_daily_bin184.fits outfile=/scratch/kocevski/705174/cmap_HighResolution_287020801_287280001_4FGL_J1229.0+0202_daily_bin184.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.031       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0976       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.6377       1.0000         .10000E-03   10000.    
     7 'Prefactor '    96.104       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7116       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7015       1.0000         .10000E-03   10000.    
    13 'norm      '    4.3897       1.0000         .10000E-03   10000.    
    14 'norm      '    5.9398       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.847       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    168.20       1.0000         .10000E-03   10000.    
    18 'norm      '    5.0097       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.885       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.1033       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.6968       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.062       1.0000         .10000E-03   10000.    
    25 'Prefactor '    92.392       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.4152       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.8791       1.0000         .10000E-03   10000.    
    30 'Prefactor '    63.976       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1339       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .82509       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=   5970.104     FROM MIGRAD    STATUS=CONVERGED    816 CALLS     4289 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.020        28.749        .25007E-06   -.12685E-04
   2  Prefactor     .10000E-03    28.795       -.82732E-07** at limit **
   3  Prefactor     6.0957        9.2858        .24076E-05    .35602E-05
   4  Prefactor     .10000E-03    32.345       -.57156E-07** at limit **
   5  Prefactor     .10000E-03    4.7294        .12463E-08** at limit **
   6  Prefactor     5.6381        11.980        .15111E-06   -.48717E-05
   7  Prefactor     96.079        90.260       -.10679E-05   -.34922E-04
   8  Prefactor     .10000E-03    15.886       -.30359E-07** at limit **
   9  Prefactor     .10000E-03    106.93        .69485E-06** at limit **
  10  Prefactor     2.7212        44.568       -.70646E-06    .72207E-05
  11  Prefactor     .10000E-03    14.805       -.13339E-06** at limit **
  12  Prefactor     3.5935        46.015        .38950E-05   -.15200E-04
  13  norm          4.4014        4.5078       -.43335E-06   -.49094E-04
  14  norm          5.9400        5.1699        .48567E-07    .19022E-05
  15  Prefactor     30.849        30.487       -.21854E-07   -.52995E-05
  16  norm          .10000E-03    16.678        .16459E-06** at limit **
  17  Prefactor     168.16        162.67       -.34927E-06   -.23258E-04
  18  norm          5.0103        1.0909       -.50594E-07   -.10875E-03
  19  Prefactor     19.888        12.535        .86824E-07   -.24866E-05
  20  Prefactor     .10000E-03    35.578        .17795E-06** at limit **
  21  Prefactor     .10000E-03    13.747        .74483E-07** at limit **
  22  norm          4.1029        2.3549        .52077E-07   -.13445E-04
  23  Prefactor     8.6931        10.371        .48810E-07   -.58490E-05
  24  Prefactor     11.053        25.232        .79074E-07   -.64787E-05
  25  Prefactor     92.409        65.640        .41056E-06    .35338E-04
  26  Prefactor     .10000E-03    13.997        .61403E-07** at limit **
  27  norm          2.3682        62.851        .13509E-05   -.33301E-05
  28  Prefactor     .10000E-03    5.0764        .38479E-07** at limit **
  29  norm          1.8789        .43526       -.17883E-07   -.35192E-04
  30  Prefactor     63.961        76.185        .89777E-08   -.23244E-04
  31  Normalizat    1.1341        .24496        .62376E-06   -.48129E-04
  32  Prefactor     .82501        .18235       -.10455E-05    .56779E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.02
  Prefactor  = 0.0001
  Prefactor  = 6.09568
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.63812
  Prefactor  = 96.0789
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.72117
  Prefactor  = 0.0001
  Prefactor  = 3.59352
  norm       = 4.40139
  norm       = 5.94001
  Prefactor  = 30.8486
  norm       = 0.0001
  Prefactor  = 168.16
  norm       = 5.01032
  Prefactor  = 19.8883
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.10289
  Prefactor  = 8.6931
  Prefactor  = 11.0525
  Prefactor  = 92.4093
  Prefactor  = 0.0001
  norm       = 2.36818
  Prefactor  = 0.0001
  norm       = 1.87886
  Prefactor  = 63.9615
  Normalizat = 1.13412
  Prefactor  = 0.825007
 **********
 **   18 **HESSE 
 **********

 FCN=   5970.104     FROM HESSE     STATUS=OK           659 CALLS     4948 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.020        28.746        .12652E-03   -1.5075    
   2  Prefactor     .10000E-03    28.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.0957        9.2812        .81294E-03   -1.5214    
   4  Prefactor     .10000E-03    32.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.7551        .16407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.6381        11.968        .16919E-03   -1.5233    
   7  Prefactor     96.079        90.160        .20500E-03   -1.3744    
   8  Prefactor     .10000E-03    15.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    108.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7212        43.824        .24735E-03   -1.5378    
  11  Prefactor     .10000E-03    14.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.5935        44.553        .20991E-03   -1.5329    
  13  norm          4.4014        4.4426        .11523E-03   -1.5288    
  14  norm          5.9400        5.1772        .14601E-03   -1.5220    
  15  Prefactor     30.849        30.489        .72141E-04   -1.4597    
  16  norm          .10000E-03    16.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     168.16        162.41        .15553E-03   -1.3107    
  18  norm          5.0103        1.0917        .32282E-04   -1.5260    
  19  Prefactor     19.888        12.538        .89818E-04   -1.4816    
  20  Prefactor     .10000E-03    35.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.1029        2.3515        .83673E-04   -1.5303    
  23  Prefactor     8.6931        10.318        .13592E-03   -1.5118    
  24  Prefactor     11.053        25.223        .12046E-03   -1.5043    
  25  Prefactor     92.409        66.241        .41809E-04   -1.3782    
  26  Prefactor     .10000E-03    13.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.3682        62.587        .26340E-03   -1.5400    
  28  Prefactor     .10000E-03    5.0817        .17002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.8789        .44060        .21744E-04   -1.5434    
  30  Prefactor     63.961        76.299        .50172E-04   -1.4107    
  31  Normalizat    1.1341        .29010        .31574E-03   -.88664    
  32  Prefactor     .82501        .21419        .28172E-03   -.98813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.42996e-11
Minuit parameter uncertainties:
  1  28.7854
  2  4.08761e-05
  3  9.28342
  4  3.92442e-05
  5  1.38853e-06
  6  11.9733
  7  90.2892
  8  1.43917e-05
  9  0.000269753
  10  21.859
  11  6.13058e-05
  12  25.3293
  13  4.4429
  14  5.17759
  15  30.504
  16  5.42324e-05
  17  162.842
  18  1.09167
  19  12.5394
  20  5.61604e-05
  21  1.74377e-05
  22  2.3516
  23  10.32
  24  25.2473
  25  66.2938
  26  1.43311e-05
  27  24.3767
  28  3.79436e-07
  29  0.440599
  30  76.4162
  31  0.290511
  32  0.214403
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  5.010e+00  1.092e+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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  8.250e-01  2.144e-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.134e+00  2.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 55.27
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 5.50e-07 +/- 1.20e-07
Energy Flux (Fixed Index): 1.31e-04 +/- 2.85e-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) = 5970.01989554
delta logL = 0.0839917494859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5970.01537263
delta logL = 0.0885146574692

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0011       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7211       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1043       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84160       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=   5970.015     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      196 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0011        1.0916        .44956E-02   -.76784E-02
   2  alpha         2.7211        .27390        .16701       -.22053E-04
   3  Normalizat    1.1043        .24041        .72114E-01    .29513E-04
   4  Prefactor     .84158        .18228        .44256E-01    .57201E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.00108
  alpha      = 2.72114
  Normalizat = 1.10434
  Prefactor  = 0.841584
 **********
 **   18 **HESSE 
 **********

 FCN=   5970.015     FROM HESSE     STATUS=OK            29 CALLS      225 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0011        .99747        .31771E-04   -1.5261    
   2  alpha         2.7211        .25443        .72773E-03    .88570E-01
   3  Normalizat    1.1043        .28481        .31911E-03   -.89613    
   4  Prefactor     .84158        .21377        .27904E-03   -.98213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22466e-09
Minuit parameter uncertainties:
  1  0.997474
  2  0.25488
  3  0.28521
  4  0.213982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705174': 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) = 5970.01537261
delta logL = 0.0885146817191

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  5.001e+00  9.975e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.721e+00  2.549e-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.416e-01  2.140e-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.104e+00  2.852e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 55.80
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.72 +/- 0.25
Photon Flux (Free Index): 5.81e-07 +/- 1.35e-07
Energy Flux (Free Index): 1.30e-04 +/- 2.59e-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/705174/cmap_HighResolution_287020801_287280001_4FGL_J1229.0+0202_daily_bin184.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.50e-07', energy_flux2='1.30e-04', photon_flux_error='1.20e-07', dlogl='8.85e-02', energy_flux='1.31e-04', photon_flux2='5.81e-07', job_status='DONE', time_completed='2021-09-05 19:01:55.818364', photon_index_error2='0.25', photon_index2='2.72', ts='55.27', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='2.59e-05', EG='1.13', time_epoch_completed='1630893715.82', return_code='0', job_id='705174', GAL2='0.84', EG2='1.10', return_code2='0', energy_flux_error='2.85e-05', photon_flux_error2='1.35e-07', ts2='55.80', photon_index='2.61' WHERE bin_id='184' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:01:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 705174: <4FGL_J1229.0+0202_daily_bin184> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin184> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 18:45:57 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:45:59 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:45:59 2021
Terminated at Sun Sep  5 19:01:56 2021
Results reported at Sun Sep  5 19:01:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin184 187.268 2.0454 287020801 287280001 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 :                                   782.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            959 sec.

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

