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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin425
RA = 187.268, Dec = 2.0454
tmin = 349488001, tmax = 349747201
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='706572', job_status='RUN', time_executed='2021-09-05 18:52:51.205578', time_epoch_executed='1630893171.21' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='425'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706572

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706572/ft1_4FGL_J1229.0+0202_daily_bin425.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706572/ft2_4FGL_J1229.0+0202_daily_bin425.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706572/ft1_4FGL_J1229.0+0202_daily_bin425.fits outfile=/scratch/kocevski/706572/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin425.fits ra=187.268 dec=2.0454 rad=12.0 tmin=349488001.0 tmax=349747201.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.81
user 3.18
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706572/ft1_filtered_4FGL_J1229.0+0202_daily_bin425.fits evtable="EVENTS" scfile=/scratch/kocevski/706572/ft2_4FGL_J1229.0+0202_daily_bin425.fits sctable="SC_DATA" expcube=/scratch/kocevski/706572/ltcube_349488001_349747201_4FGL_J1229.0+0202_daily_bin425.fits outfile=/scratch/kocevski/706572/expmap_349488001_349747201_4FGL_J1229.0+0202_daily_bin425.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/706572/ltcube_349488001_349747201_4FGL_J1229.0+0202_daily_bin425.fits
.....................!
real 192.27
user 187.66
sys 4.16

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/706572/ft1_filtered_4FGL_J1229.0+0202_daily_bin425.fits scfile=/scratch/kocevski/706572/ft2_4FGL_J1229.0+0202_daily_bin425.fits outfile=/scratch/kocevski/706572/cmap_349488001_349747201_4FGL_J1229.0+0202_daily_bin425.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706572/ft1_filtered_4FGL_J1229.0+0202_daily_bin425.fits scfile=/scratch/kocevski/706572/ft2_4FGL_J1229.0+0202_daily_bin425.fits outfile=/scratch/kocevski/706572/cmap_HighResolution_349488001_349747201_4FGL_J1229.0+0202_daily_bin425.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.8440       1.0000         .10000E-03   10000.    
     4 'Prefactor '    54.002       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.415       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.552       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9526       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6566       1.0000         .10000E-03   10000.    
    13 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    14.825       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1751       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5374       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11590E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.448       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    76.198       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.1772       1.0000         .10000E-03   10000.    
    29 'norm      '    1.3144       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1015       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .93172       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7325.329     FROM MIGRAD    STATUS=CONVERGED     88 CALLS     3664 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7003        .38313E-06** at limit **
   2  Prefactor     .10003E-03    21.418       -.16104E-04** at limit **
   3  Prefactor     7.8435        1.0108       -.18016E-06   -.75982E-04
   4  Prefactor     54.002        1.0007        .27242E-07    .13922E-04
   5  Prefactor     15.415        1.0966       -.64204E-06   -.45681E-03
   6  Prefactor     13.553        1.0775        .59991E-06   -.28639E-04
   7  Prefactor     .10004E-03    16.100        .33646E-04** at limit **
   8  Prefactor     .10024E-03    10.617       -.10751E-04** at limit **
   9  Prefactor     .10096E-03    16.182        .32313E-04** at limit **
  10  Prefactor     4.9458        1.5689       -.27759E-05    .82933E-03
  11  Prefactor     .10001E-03    3.0795        .14260E-05** at limit **
  12  Prefactor     5.6595        1.8404        .34767E-05    .99583E-03
  13  norm          .10000E-03    3.1892        .86602E-06** at limit **
  14  norm          14.824        4.6601        .78634E-06    .27939E-03
  15  Prefactor     .10010E-03    5.3580        .13927E-04** at limit **
  16  norm          .10000E-03    3.2174       -.44247E-06** at limit **
  17  Prefactor     .10063E-03    26.784       -.26744E-04** at limit **
  18  norm          1.1752        .53396       -.64739E-07   -.32219E-03
  19  Prefactor     3.5233        2.1776       -.56847E-05   -.81863E-03
  20  Prefactor     .10006E-03    18.034       -.72944E-05** at limit **
  21  Prefactor     17.447        1.0129       -.65006E-07    .39672E-03
  22  norm          .10000E-03    1.6226        .19316E-06** at limit **
  23  Prefactor     .10019E-03    6.7085       -.17015E-04** at limit **
  24  Prefactor     .10015E-03    3.5535        .12450E-04** at limit **
  25  Prefactor     .10013E-03    18.869       -.22661E-04** at limit **
  26  Prefactor     76.211        4.0827        .25673E-05   -.11415E-01
  27  norm          .10000E-03    6.5600       -.92312E-06** at limit **
  28  Prefactor     1.1581        2.5191       -.11668E-04   -.34303E-03
  29  norm          1.3143        .27079        .15687E-07    .20579E-02
  30  Prefactor     .10014E-03    12.612        .27275E-05** at limit **
  31  Normalizat    1.1015        .23610       -.23224E-06   -.25383E-05
  32  Prefactor     .93171        .18242       -.70845E-06    .15838E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  Prefactor  = 7.84351
  Prefactor  = 54.0023
  Prefactor  = 15.4148
  Prefactor  = 13.5526
  Prefactor  = 0.000100044
  Prefactor  = 0.000100242
  Prefactor  = 0.000100965
  Prefactor  = 4.94578
  Prefactor  = 0.000100011
  Prefactor  = 5.65947
  norm       = 0.0001
  norm       = 14.8241
  Prefactor  = 0.000100104
  norm       = 0.000100003
  Prefactor  = 0.000100626
  norm       = 1.17515
  Prefactor  = 3.52334
  Prefactor  = 0.000100057
  Prefactor  = 17.4472
  norm       = 0.0001
  Prefactor  = 0.000100194
  Prefactor  = 0.000100147
  Prefactor  = 0.000100134
  Prefactor  = 76.2113
  norm       = 0.0001
  Prefactor  = 1.15808
  norm       = 1.31434
  Prefactor  = 0.00010014
  Normalizat = 1.10153
  Prefactor  = 0.931711
 **********
 **   18 **HESSE 
 **********

 FCN=   7325.329     FROM HESSE     STATUS=OK           729 CALLS     4393 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6957        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10003E-03    70.186        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.8435        8.5430        .35792E-02   -1.5148    
   4  Prefactor     54.002        68.921        .13645E-02   -1.4237    
   5  Prefactor     15.415        8.9435        .25503E-02   -1.4923    
   6  Prefactor     13.553        17.699        .27201E-02   -1.4972    
   7  Prefactor     .10004E-03    42.713        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10024E-03    15.111        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10096E-03    52.068        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9458        39.031        .45180E-02   -1.5263    
  11  Prefactor     .10001E-03    12.477        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.6595        11.172        .42225E-02   -1.5232    
  13  norm          .10000E-03    1.8866        .35167E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          14.824        4.6696        .26006E-02   -1.4938    
  15  Prefactor     .10010E-03    13.811        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    12.429        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10063E-03    73.838        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1752        .54597        .88210E-02   -1.5491    
  19  Prefactor     3.5233        10.173        .53730E-02   -1.5333    
  20  Prefactor     .10006E-03    66.486        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.447        10.222        .23971E-02   -1.4872    
  22  norm          .10000E-03    .72107        .25270E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10019E-03    11.668        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10015E-03    12.983        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10013E-03    32.785        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     76.211        56.413        .11500E-02   -1.3960    
  27  norm          .10000E-03    6.5594        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.1581        32.887        .10547E-01   -1.5493    
  29  norm          1.3143        .27139        .44080E-02   -1.5479    
  30  Prefactor     .10014E-03    35.707        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1015        .20973        .66665E-01   -.89703    
  32  Prefactor     .93171        .15568        .45408E-01   -.95042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34531e-06
Minuit parameter uncertainties:
  1  2.75537e-05
  2  0.00298437
  3  8.54431
  4  69.0234
  5  8.94428
  6  17.7061
  7  0.00275805
  8  0.00382678
  9  0.0141859
  10  27.8124
  11  0.000728045
  12  11.1765
  13  1.34701e-05
  14  4.66971
  15  0.00239573
  16  0.000357171
  17  0.0136092
  18  0.545973
  19  10.1778
  20  0.00388478
  21  10.2235
  22  3.62386e-06
  23  0.00300769
  24  0.00276487
  25  0.00419377
  26  56.4523
  27  1.22785e-05
  28  12.3497
  29  0.271387
  30  0.00446723
  31  0.209892
  32  0.155754
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.175e+00  5.460e-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:  9.317e-01  1.558e-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.102e+00  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.12
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.29e-07 +/- 5.99e-08
Energy Flux (Fixed Index): 3.07e-05 +/- 1.43e-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) = 7323.51505736
delta logL = 1.8143356142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7323.50578136
delta logL = 1.82361162018

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73673        .38134        .72683E-02   -.43950E-03
   2  alpha         1.6946        .31566        .23460       -.69062E-04
   3  Normalizat    1.1862        .19449        .64639E-01    .14153E-04
   4  Prefactor     .88503        .15390        .44814E-01    .16219E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.736735
  alpha      = 1.69458
  Normalizat = 1.18619
  Prefactor  = 0.885032
 **********
 **   18 **HESSE 
 **********

 FCN=   7323.506     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73673        .47884        .32130E-04   -1.5536    
   2  alpha         1.6946        .42238        .97437E-02   -.32802    
   3  Normalizat    1.1862        .22841        .28594E-03   -.87031    
   4  Prefactor     .88503        .18042        .25748E-03   -.96666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90594e-11
Minuit parameter uncertainties:
  1  0.478847
  2  0.424658
  3  0.228602
  4  0.180538
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706572': 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) = 7323.50578133
delta logL = 1.82361164361

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  7.367e-01  4.788e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  1.695e+00  4.247e-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.850e-01  1.805e-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.186e+00  2.286e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.88
Ra Dec: 187.268 2.045
Photon Index (Free Index): 1.69 +/- 0.42
Photon Flux (Free Index): 6.23e-08 +/- 3.99e-08
Energy Flux (Free Index): 4.29e-05 +/- 2.44e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/706572/cmap_HighResolution_349488001_349747201_4FGL_J1229.0+0202_daily_bin425.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.29e-07', energy_flux2='4.29e-05', photon_flux_error='5.99e-08', dlogl='1.82e+00', energy_flux='3.07e-05', photon_flux2='6.23e-08', job_status='DONE', time_completed='2021-09-05 19:06:44.635950', photon_index_error2='0.42', photon_index2='1.69', ts='11.12', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.44e-05', EG='1.10', time_epoch_completed='1630894004.64', return_code='0', job_id='706572', GAL2='0.89', EG2='1.19', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='3.99e-08', ts2='14.88', photon_index='2.61' WHERE bin_id='425' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:06:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 706572: <4FGL_J1229.0+0202_daily_bin425> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin425> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 18:50:28 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:50:31 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:50:31 2021
Terminated at Sun Sep  5 19:06:45 2021
Results reported at Sun Sep  5 19:06:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin425 187.268 2.0454 349488001 349747201 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 :                                   829.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            977 sec.

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

