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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin674
RA = 187.268, Dec = 2.0454
tmin = 414028801, tmax = 414288001
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='708279', job_status='RUN', time_executed='2021-09-05 18:58:02.307168', time_epoch_executed='1630893482.31' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708279

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708279/ft1_4FGL_J1229.0+0202_daily_bin674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708279/ft2_4FGL_J1229.0+0202_daily_bin674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708279/ft1_4FGL_J1229.0+0202_daily_bin674.fits outfile=/scratch/kocevski/708279/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin674.fits ra=187.268 dec=2.0454 rad=12.0 tmin=414028801.0 tmax=414288001.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.20
user 4.90
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708279/ft1_filtered_4FGL_J1229.0+0202_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/708279/ft2_4FGL_J1229.0+0202_daily_bin674.fits sctable="SC_DATA" expcube=/scratch/kocevski/708279/ltcube_414028801_414288001_4FGL_J1229.0+0202_daily_bin674.fits outfile=/scratch/kocevski/708279/expmap_414028801_414288001_4FGL_J1229.0+0202_daily_bin674.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/708279/ltcube_414028801_414288001_4FGL_J1229.0+0202_daily_bin674.fits
.....................!
real 189.93
user 185.49
sys 4.07

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/708279/ft1_filtered_4FGL_J1229.0+0202_daily_bin674.fits scfile=/scratch/kocevski/708279/ft2_4FGL_J1229.0+0202_daily_bin674.fits outfile=/scratch/kocevski/708279/cmap_414028801_414288001_4FGL_J1229.0+0202_daily_bin674.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708279/ft1_filtered_4FGL_J1229.0+0202_daily_bin674.fits scfile=/scratch/kocevski/708279/ft2_4FGL_J1229.0+0202_daily_bin674.fits outfile=/scratch/kocevski/708279/cmap_HighResolution_414028801_414288001_4FGL_J1229.0+0202_daily_bin674.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.762       1.0000         .10000E-03   10000.    
     2 'Prefactor '    90.252       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.685       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.807       1.0000         .10000E-03   10000.    
    13 'norm      '    3.9403       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5789       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    151.55       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.7964       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.022       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.5074       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    60.280       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.8585       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.2395       1.0000         .10000E-03   10000.    
    29 'norm      '    2.9611       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0590       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .72619       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=   4957.145     FROM MIGRAD    STATUS=CONVERGED    823 CALLS     4318 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.762        19.107        .31010E-06   -.15691E-04
   2  Prefactor     90.265        111.72        .70966E-06    .16816E-05
   3  Prefactor     .10000E-03    4.0386        .28528E-07** at limit **
   4  Prefactor     .10000E-03    57.456        .18570E-05** at limit **
   5  Prefactor     .10000E-03    2.2854        .19421E-08** at limit **
   6  Prefactor     36.688        22.757        .10972E-06    .63956E-05
   7  Prefactor     .10000E-03    47.432       -.79381E-06** at limit **
   8  Prefactor     .10000E-03    44.860       -.15227E-05** at limit **
   9  Prefactor     .10000E-03    49.906       -.16658E-06** at limit **
  10  Prefactor     .10000E-03    12.283       -.10311E-05** at limit **
  11  Prefactor     .10000E-03    87.390       -.14136E-05** at limit **
  12  Prefactor     15.803        24.883       -.84662E-06   -.90618E-05
  13  norm          3.9408        5.6202        .41014E-06   -.31777E-04
  14  norm          1.5785        6.8805        .33518E-05   -.22584E-04
  15  Prefactor     .10000E-03    15.616        .28674E-06** at limit **
  16  norm          151.56        95.929       -.33653E-05   -.52115E-04
  17  Prefactor     .10000E-03    96.812       -.27240E-05** at limit **
  18  norm          1.7967        .93401       -.14333E-06   -.52899E-03
  19  Prefactor     19.023        13.315       -.54486E-07   -.51124E-05
  20  Prefactor     .10000E-03    28.396        .90519E-08** at limit **
  21  Prefactor     .10000E-03    5.5130       -.36446E-08** at limit **
  22  norm          5.5075        2.2392       -.55168E-07   -.98962E-04
  23  Prefactor     .10000E-03    4.1995       -.94331E-07** at limit **
  24  Prefactor     .10000E-03    11.587        .82926E-06** at limit **
  25  Prefactor     60.236        66.264       -.39188E-05   -.84828E-05
  26  Prefactor     5.8973        161.89       -.32517E-05    .82494E-05
  27  norm          .10000E-03    9.2490       -.55910E-07** at limit **
  28  Prefactor     3.2398        39.589        .37908E-05   -.38357E-04
  29  norm          2.9614        .49741        .83946E-07   -.10459E-02
  30  Prefactor     .10000E-03    62.154        .27051E-05** at limit **
  31  Normalizat    1.0588        .25832       -.15408E-06   -.61004E-04
  32  Prefactor     .72629        .18630       -.83514E-06    .64818E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.7621
  Prefactor  = 90.265
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.688
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8027
  norm       = 3.94077
  norm       = 1.57846
  Prefactor  = 0.0001
  norm       = 151.561
  Prefactor  = 0.0001
  norm       = 1.79673
  Prefactor  = 19.0227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.50752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.2358
  Prefactor  = 5.89734
  norm       = 0.0001
  Prefactor  = 3.23977
  norm       = 2.96141
  Prefactor  = 0.0001
  Normalizat = 1.05882
  Prefactor  = 0.726291
 **********
 **   18 **HESSE 
 **********

 FCN=   4957.145     FROM HESSE     STATUS=OK           649 CALLS     4967 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.762        19.113        .53986E-03   -1.4966    
   2  Prefactor     90.265        112.21        .42297E-04   -1.3805    
   3  Prefactor     .10000E-03    4.0426        .13818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    57.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.2859        .10395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     36.688        22.825        .66169E-04   -1.4496    
   7  Prefactor     .10000E-03    47.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    44.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    50.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    88.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.803        24.879        .10074E-03   -1.4913    
  13  norm          3.9408        5.6157        .13896E-03   -1.5311    
  14  norm          1.5785        6.9099        .27074E-03   -1.5457    
  15  Prefactor     .10000E-03    15.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          151.56        95.502        .32742E-04   -1.3239    
  17  Prefactor     .10000E-03    96.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.7967        .93225        .41390E-04   -1.5440    
  19  Prefactor     19.023        13.317        .91833E-04   -1.4835    
  20  Prefactor     .10000E-03    28.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.5247        .16143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.5075        2.2394        .63957E-04   -1.5239    
  23  Prefactor     .10000E-03    4.2100        .14087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     60.236        66.515        .51678E-04   -1.4154    
  26  Prefactor     5.8973        152.91        .16592E-03   -1.5222    
  27  norm          .10000E-03    9.2500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.2398        38.222        .22504E-03   -1.5348    
  29  norm          2.9614        .49915        .18284E-04   -1.5364    
  30  Prefactor     .10000E-03    62.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0588        .31375        .30170E-03   -.91085    
  32  Prefactor     .72629        .22419        .27527E-03   -1.0251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.174e-11
Minuit parameter uncertainties:
  1  19.1218
  2  112.479
  3  9.10424e-07
  4  6.40973e-05
  5  4.32711e-07
  6  22.83
  7  2.28481e-05
  8  3.41533e-05
  9  5.82514e-05
  10  9.92024e-06
  11  0.000218884
  12  24.8955
  13  5.61642
  14  6.60621
  15  1.4763e-06
  16  95.599
  17  0.000119075
  18  0.93226
  19  13.3193
  20  2.94884e-06
  21  7.54151e-06
  22  2.23942
  23  8.95311e-06
  24  1.43048e-05
  25  66.5976
  26  60.2298
  27  2.81826e-06
  28  22.2733
  29  0.499152
  30  6.5642e-05
  31  0.314298
  32  0.224473
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.797e+00  9.323e-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:  7.263e-01  2.245e-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.059e+00  3.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.11
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.97e-07 +/- 1.02e-07
Energy Flux (Fixed Index): 4.69e-05 +/- 2.44e-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) = 4957.11434964
delta logL = 0.0306686964086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4957.11258061
delta logL = 0.0324377198713

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7716       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4823       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71701       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=   4957.113     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      200 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7716        .94204        .78650E-02   -.30537E-02
   2  alpha         2.4823        .50773        .30585       -.58230E-04
   3  Normalizat    1.0747        .23627        .67780E-01    .14622E-04
   4  Prefactor     .71704        .18063        .62585E-01    .13164E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.77157
  alpha      = 2.48232
  Normalizat = 1.07465
  Prefactor  = 0.71704
 **********
 **   18 **HESSE 
 **********

 FCN=   4957.113     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7716        .84942        .41798E-04   -1.5442    
   2  alpha         2.4823        .50673        .12335E-01   -.70710E-02
   3  Normalizat    1.0747        .28413        .29987E-03   -.90570    
   4  Prefactor     .71704        .21441        .27684E-03   -1.0286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92477e-10
Minuit parameter uncertainties:
  1  0.849429
  2  0.510268
  3  0.284539
  4  0.214661
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708279': 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) = 4957.11258058
delta logL = 0.032437756432

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.772e+00  8.494e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.482e+00  5.103e-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:  7.170e-01  2.147e-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.075e+00  2.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.33
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.48 +/- 0.51
Photon Flux (Free Index): 1.83e-07 +/- 1.04e-07
Energy Flux (Free Index): 4.75e-05 +/- 2.25e-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/708279/cmap_HighResolution_414028801_414288001_4FGL_J1229.0+0202_daily_bin674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.97e-07', energy_flux2='4.75e-05', photon_flux_error='1.02e-07', dlogl='3.24e-02', energy_flux='4.69e-05', photon_flux2='1.83e-07', job_status='DONE', time_completed='2021-09-05 19:09:52.541909', photon_index_error2='0.51', photon_index2='2.48', ts='9.11', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='2.25e-05', EG='1.06', time_epoch_completed='1630894192.54', return_code='0', job_id='708279', GAL2='0.72', EG2='1.07', return_code2='0', energy_flux_error='2.44e-05', photon_flux_error2='1.04e-07', ts2='9.33', photon_index='2.61' WHERE bin_id='674' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:09:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 708279: <4FGL_J1229.0+0202_daily_bin674> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin674 187.268 2.0454 414028801 414288001 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 :                                   707.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            846 sec.

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

