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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin924
RA = 187.268, Dec = 2.0454
tmin = 478828801, tmax = 479088001
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='709684', job_status='RUN', time_executed='2021-09-05 19:03:26.639215', time_epoch_executed='1630893806.64' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='924'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/709684

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/709684/ft1_4FGL_J1229.0+0202_daily_bin924.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/709684/ft2_4FGL_J1229.0+0202_daily_bin924.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/709684/ft1_4FGL_J1229.0+0202_daily_bin924.fits outfile=/scratch/kocevski/709684/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin924.fits ra=187.268 dec=2.0454 rad=12.0 tmin=478828801.0 tmax=479088001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.46
user 3.24
sys 0.20

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/709684/ft1_filtered_4FGL_J1229.0+0202_daily_bin924.fits evtable="EVENTS" scfile=/scratch/kocevski/709684/ft2_4FGL_J1229.0+0202_daily_bin924.fits sctable="SC_DATA" expcube=/scratch/kocevski/709684/ltcube_478828801_479088001_4FGL_J1229.0+0202_daily_bin924.fits outfile=/scratch/kocevski/709684/expmap_478828801_479088001_4FGL_J1229.0+0202_daily_bin924.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/709684/ltcube_478828801_479088001_4FGL_J1229.0+0202_daily_bin924.fits
.....................!
real 192.53
user 186.90
sys 4.05

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/709684/ft1_filtered_4FGL_J1229.0+0202_daily_bin924.fits scfile=/scratch/kocevski/709684/ft2_4FGL_J1229.0+0202_daily_bin924.fits outfile=/scratch/kocevski/709684/cmap_478828801_479088001_4FGL_J1229.0+0202_daily_bin924.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.94
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/709684/ft1_filtered_4FGL_J1229.0+0202_daily_bin924.fits scfile=/scratch/kocevski/709684/ft2_4FGL_J1229.0+0202_daily_bin924.fits outfile=/scratch/kocevski/709684/cmap_HighResolution_478828801_479088001_4FGL_J1229.0+0202_daily_bin924.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.64
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11732E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .58428E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .52804E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.295       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0322       1.0000         .10000E-03   10000.    
    14 'norm      '    .27679E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.1583       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.734       1.0000         .10000E-03   10000.    
    22 'norm      '    4.1493       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11907E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    162.67       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.8582       1.0000         .10000E-03   10000.    
    29 'norm      '    1.0406       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.7708       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .50313       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=   5688.696     FROM MIGRAD    STATUS=CONVERGED    854 CALLS     3748 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    89.881        .29493E-05** at limit **
   2  Prefactor     .10000E-03    31.980       -.48484E-06** at limit **
   3  Prefactor     .10000E-03    138.09        .83088E-05** at limit **
   4  Prefactor     .10000E-03    38.611        .31389E-06** at limit **
   5  Prefactor     .10000E-03    4.4242        .36644E-07** at limit **
   6  Prefactor     .10000E-03    28.477        .17876E-05** at limit **
   7  Prefactor     .10000E-03    305.86        .17084E-04** at limit **
   8  Prefactor     .10000E-03    16.454        .49653E-06** at limit **
   9  Prefactor     .10000E-03    11.458        .53393E-06** at limit **
  10  Prefactor     27.290        23.450       -.34220E-06    .53652E-05
  11  Prefactor     .10000E-03    18.379       -.82941E-06** at limit **
  12  Prefactor     .10000E-03    12.503       -.71098E-06** at limit **
  13  norm          1.0316        1.6361        .10595E-05    .27557E-03
  14  norm          .10000E-03    3.8521       -.10900E-05** at limit **
  15  Prefactor     .10000E-03    12.106       -.54190E-06** at limit **
  16  norm          .10000E-03    33.587       -.88352E-06** at limit **
  17  Prefactor     .10000E-03    91.081        .18511E-05** at limit **
  18  norm          2.1582        .69046       -.65432E-07    .50077E-03
  19  Prefactor     .10000E-03    3.6631        .29027E-07** at limit **
  20  Prefactor     .10000E-03    10.983       -.10496E-06** at limit **
  21  Prefactor     17.734        11.869       -.14342E-05   -.10049E-03
  22  norm          4.1496        1.9379       -.84857E-07    .85897E-04
  23  Prefactor     .10000E-03    7.0106        .17353E-06** at limit **
  24  Prefactor     .10000E-03    20.320        .35557E-06** at limit **
  25  Prefactor     .10000E-03    33.703       -.85896E-06** at limit **
  26  Prefactor     .10000E-03    11.751       -.54349E-07** at limit **
  27  norm          162.67        54.183        .79599E-07    .10835E-04
  28  Prefactor     4.8588        7.1887       -.23636E-06   -.50467E-05
  29  norm          1.0406        .31493       -.25811E-07    .16858E-03
  30  Prefactor     .10000E-03    39.662        .89937E-06** at limit **
  31  Normalizat    1.7710        .23330        .10895E-05    .43022E-04
  32  Prefactor     .50282        .17614       -.11795E-06    .93989E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.2896
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.03156
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.15825
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.7338
  norm       = 4.1496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 162.669
  Prefactor  = 4.85883
  norm       = 1.04064
  Prefactor  = 0.0001
  Normalizat = 1.77104
  Prefactor  = 0.502816
 **********
 **   18 **HESSE 
 **********

 FCN=   5688.696     FROM HESSE     STATUS=OK           657 CALLS     4405 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    92.422        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.028        .66133E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    38.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.4497        .15492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    309.27        .19126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.290        23.492        .76681E-04   -1.4663    
  11  Prefactor     .10000E-03    18.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0316        1.6375        .14212E-02   -1.5505    
  14  norm          .10000E-03    31.999        .18692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    33.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    91.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.1582        .67196        .32541E-04   -1.5414    
  19  Prefactor     .10000E-03    3.6671        .14098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.734        11.985        .47554E-03   -1.4865    
  22  norm          4.1496        1.9351        .68344E-04   -1.5301    
  23  Prefactor     .10000E-03    7.0429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    33.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    11.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          162.67        54.146        .31620E-04   -1.3150    
  28  Prefactor     4.8588        7.1851        .18250E-03   -1.5267    
  29  norm          1.0406        .31423        .22311E-04   -1.5504    
  30  Prefactor     .10000E-03    39.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.7710        .26314        .24686E-03   -.70422    
  32  Prefactor     .50282        .19931        .33570E-03   -1.1185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10595e-10
Minuit parameter uncertainties:
  1  0.000271322
  2  3.74266e-05
  3  7.28658e-05
  4  7.50178e-06
  5  9.21484e-06
  6  7.59183e-05
  7  0.0013326
  8  9.77424e-06
  9  7.46245e-06
  10  23.4995
  11  4.78629e-05
  12  3.04415e-05
  13  1.63756
  14  0.000660568
  15  2.37821e-05
  16  4.64704e-05
  17  0.00012649
  18  0.671963
  19  3.80982e-06
  20  1.19393e-05
  21  11.987
  22  1.93512
  23  1.34844e-05
  24  4.23252e-06
  25  4.6473e-05
  26  5.49111e-06
  27  54.1621
  28  7.18635
  29  0.314233
  30  3.02124e-05
  31  0.263345
  32  0.199584
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  2.158e+00  6.720e-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:  5.028e-01  1.996e-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.771e+00  2.633e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.31
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 2.37e-07 +/- 7.38e-08
Energy Flux (Fixed Index): 5.64e-05 +/- 1.76e-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) = 5688.34618497
delta logL = 0.350286921405

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5688.31595001
delta logL = 0.380521887215

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0584       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2948       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8175       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47812       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=   5688.316     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0583        .66299        .72014E-02    .10690E-03
   2  alpha         2.2948        .32336        .22348       -.26309E-04
   3  Normalizat    1.8175        .22912        .55343E-01   -.31355E-05
   4  Prefactor     .47809        .17605        .77559E-01    .34737E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.05827
  alpha      = 2.29484
  Normalizat = 1.81753
  Prefactor  = 0.478087
 **********
 **   18 **HESSE 
 **********

 FCN=   5688.316     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0583        .70411        .33257E-04   -1.5421    
   2  alpha         2.2948        .35847        .94766E-02   -.82155E-01
   3  Normalizat    1.8175        .26301        .24467E-03   -.69207    
   4  Prefactor     .47809        .19945        .34351E-03   -1.1299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32682e-10
Minuit parameter uncertainties:
  1  0.704118
  2  0.359718
  3  0.263217
  4  0.199741
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/709684': 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) = 5688.31594995
delta logL = 0.380521946788

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  2.058e+00  7.041e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.295e+00  3.597e-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:  4.781e-01  1.997e-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.818e+00  2.632e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.99
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.29 +/- 0.36
Photon Flux (Free Index): 1.96e-07 +/- 8.00e-08
Energy Flux (Free Index): 5.95e-05 +/- 1.97e-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/709684/cmap_HighResolution_478828801_479088001_4FGL_J1229.0+0202_daily_bin924.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.37e-07', energy_flux2='5.95e-05', photon_flux_error='7.38e-08', dlogl='3.81e-01', energy_flux='5.64e-05', photon_flux2='1.96e-07', job_status='DONE', time_completed='2021-09-05 19:15:39.225401', photon_index_error2='0.36', photon_index2='2.29', ts='24.31', fit_tolerance='1e-08', GAL='0.50', photon_index_error='0.00', energy_flux_error2='1.97e-05', EG='1.77', time_epoch_completed='1630894539.23', return_code='0', job_id='709684', GAL2='0.48', EG2='1.82', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='8.00e-08', ts2='24.99', photon_index='2.61' WHERE bin_id='924' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:15:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 709684: <4FGL_J1229.0+0202_daily_bin924> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin924 187.268 2.0454 478828801 479088001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1229.0+0202 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   726.00 sec.
    Max Memory :                                 1223 MB
    Average Memory :                             295.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            908 sec.

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

