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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin506
RA = 187.268, Dec = 2.0454
tmin = 370483201, tmax = 370742401
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='706685', job_status='RUN', time_executed='2021-09-05 18:53:41.441055', time_epoch_executed='1630893221.44' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706685

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706685/ft1_4FGL_J1229.0+0202_daily_bin506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706685/ft2_4FGL_J1229.0+0202_daily_bin506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706685/ft1_4FGL_J1229.0+0202_daily_bin506.fits outfile=/scratch/kocevski/706685/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin506.fits ra=187.268 dec=2.0454 rad=12.0 tmin=370483201.0 tmax=370742401.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 19.55
user 19.02
sys 0.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/706685/ft2_4FGL_J1229.0+0202_daily_bin506.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/706685/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin506.fits evtable="EVENTS" outfile="/scratch/kocevski/706685/ft1_filtered_4FGL_J1229.0+0202_daily_bin506.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.49
user 0.31
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706685/ft1_filtered_4FGL_J1229.0+0202_daily_bin506.fits evtable="EVENTS" scfile=/scratch/kocevski/706685/ft2_4FGL_J1229.0+0202_daily_bin506.fits sctable="SC_DATA" expcube=/scratch/kocevski/706685/ltcube_370483201_370742401_4FGL_J1229.0+0202_daily_bin506.fits outfile=/scratch/kocevski/706685/expmap_370483201_370742401_4FGL_J1229.0+0202_daily_bin506.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/706685/ltcube_370483201_370742401_4FGL_J1229.0+0202_daily_bin506.fits
.....................!
real 191.29
user 186.37
sys 4.56

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/706685/ft1_filtered_4FGL_J1229.0+0202_daily_bin506.fits scfile=/scratch/kocevski/706685/ft2_4FGL_J1229.0+0202_daily_bin506.fits outfile=/scratch/kocevski/706685/cmap_370483201_370742401_4FGL_J1229.0+0202_daily_bin506.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706685/ft1_filtered_4FGL_J1229.0+0202_daily_bin506.fits scfile=/scratch/kocevski/706685/ft2_4FGL_J1229.0+0202_daily_bin506.fits outfile=/scratch/kocevski/706685/cmap_HighResolution_370483201_370742401_4FGL_J1229.0+0202_daily_bin506.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    186.88       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    319.35       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13538       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12141E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15139E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    229.24       1.0000         .10000E-03   10000.    
    13 'norm      '    .10206E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    44.935       1.0000         .10000E-03   10000.    
    15 'Prefactor '    136.73       1.0000         .10000E-03   10000.    
    16 'norm      '    81.788       1.0000         .10000E-03   10000.    
    17 'Prefactor '    397.93       1.0000         .10000E-03   10000.    
    18 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.438       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.388       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    22.907       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    166.24       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .15006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .17316E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .82598E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    .80182       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=   427.1746     FROM MIGRAD    STATUS=CONVERGED    834 CALLS     5073 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    94.945        .15932E-06** at limit **
   2  Prefactor     186.41        341.53       -.17540E-05    .34502E-04
   3  Prefactor     .10000E-03    17.973       -.46363E-06** at limit **
   4  Prefactor     .10000E-03    1339.6        .90719E-06** at limit **
   5  Prefactor     .10000E-03    48.016       -.13928E-05** at limit **
   6  Prefactor     .10000E-03    240.34        .42613E-06** at limit **
   7  Prefactor     319.46        289.90        .23738E-06    .24358E-04
   8  Prefactor     .10004E-03    6880.5        .65892E-05** at limit **
   9  Prefactor     .10000E-03    328.83       -.38660E-05** at limit **
  10  Prefactor     .10000E-03    704.35        .12806E-05** at limit **
  11  Prefactor     .10000E-03    75.486       -.32990E-06** at limit **
  12  Prefactor     229.26        149.25        .20808E-05    .25306E-04
  13  norm          .10000E-03    51.562        .45245E-06** at limit **
  14  norm          44.946        37.127        .17078E-06    .15700E-03
  15  Prefactor     136.70        151.16       -.14237E-06    .33895E-04
  16  norm          81.900        361.35       -.10978E-05    .99599E-05
  17  Prefactor     397.35        953.62       -.12969E-05    .62422E-05
  18  norm          .10000E-03    2.3406       -.81034E-06** at limit **
  19  Prefactor     15.247        175.89        .15012E-04    .89871E-04
  20  Prefactor     19.675        658.83       -.35802E-04    .48734E-04
  21  Prefactor     .10000E-03    57.701       -.34247E-06** at limit **
  22  norm          22.919        14.621        .99439E-07    .13061E-03
  23  Prefactor     .10000E-03    64.723       -.47497E-06** at limit **
  24  Prefactor     165.74        341.81       -.35363E-06    .57821E-05
  25  Prefactor     .10000E-03    1047.0        .61957E-06** at limit **
  26  Prefactor     .10000E-03    202.84        .20711E-05** at limit **
  27  norm          .10000E-03    238.06       -.52470E-06** at limit **
  28  Prefactor     .10000E-03    58.158        .20259E-05** at limit **
  29  norm          .10000E-03    5.8872       -.10277E-06** at limit **
  30  Prefactor     .10000E-03    1551.4        .33778E-07** at limit **
  31  Normalizat    .10000E-01    .73960       -.18073E-04** at limit **
  32  Prefactor     .80223        .44708        .48470E-05    .10982E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 186.411
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 319.462
  Prefactor  = 0.000100041
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 229.258
  norm       = 0.0001
  norm       = 44.9456
  Prefactor  = 136.703
  norm       = 81.9001
  Prefactor  = 397.347
  norm       = 0.0001
  Prefactor  = 15.2468
  Prefactor  = 19.6753
  Prefactor  = 0.0001
  norm       = 22.9185
  Prefactor  = 0.0001
  Prefactor  = 165.739
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.802231
 **********
 **   18 **HESSE 
 **********

 FCN=   427.1746     FROM HESSE     STATUS=OK           629 CALLS     5702 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    94.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     186.41        340.85        .14769E-03   -1.2969    
   3  Prefactor     .10000E-03    17.971        .85620E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1338.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    48.110        .13995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    240.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     319.46        290.08        .11375E-03   -1.2114    
   8  Prefactor     .10004E-03    6875.1        .19357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    329.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    704.36        .20464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    75.491        .17568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     229.26        149.05        .13364E-03   -1.2668    
  13  norm          .10000E-03    51.591        .14467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          44.946        37.198        .59810E-04   -1.4366    
  15  Prefactor     136.70        151.07        .17222E-03   -1.3364    
  16  norm          81.900        362.95        .22206E-03   -1.3896    
  17  Prefactor     397.35        954.52        .10232E-03   -1.1694    
  18  norm          .10000E-03    2.3352        .30771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.247        171.60        .10194E-03   -1.4927    
  20  Prefactor     19.675        581.07        .90963E-04   -1.4821    
  21  Prefactor     .10000E-03    57.701        .15355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          22.919        14.633        .58445E-04   -1.4750    
  23  Prefactor     .10000E-03    64.723        .16264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     165.74        341.85        .15642E-03   -1.3126    
  25  Prefactor     .10000E-03    1046.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    202.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    238.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    58.092        .15401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    5.8870        .49005E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1551.4        .20883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .10000E-01    .89592        .10048E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .80223        .45266        .24862E-03   -.99646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24061e-10
Minuit parameter uncertainties:
  1  4.5246e-05
  2  344.567
  3  2.60473e-05
  4  0.00159434
  5  0.000107964
  6  0.000316386
  7  291.412
  8  0.0267833
  9  0.000724891
  10  0.00134218
  11  2.38075e-05
  12  149.293
  13  0.00024342
  14  37.2171
  15  151.495
  16  348.423
  17  997.286
  18  1.23068e-05
  19  102.673
  20  216.197
  21  7.54112e-06
  22  14.6349
  23  7.88959e-05
  24  346.072
  25  0.00238714
  26  0.000163418
  27  2.42995e-05
  28  0.00015053
  29  2.82419e-06
  30  0.000767794
  31  3.77339e-07
  32  0.454783
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.000e-04  1.231e-05  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.022e-01  4.548e-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.000e-02  3.773e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 187.268 2.045
Photon Flux Upper Limit: 1.16e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.75e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/706685/likelihoodResults_370483201_370742401_4FGL_J1229.0+0202_daily_bin506.txt

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) = 427.175140223
delta logL = -0.000538159019015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 427.174614269
delta logL = -1.22042993098e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11436E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6225       1.0000          .0000       5.0000    
     3 'Normalizat'    .10017E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80229       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   427.1746     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      245 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    553.99        .30875E-02** at limit **
   2  alpha         3.3728        3.4874        .16486       -.53169E-07
   3  Normalizat    .10000E-01    .64819        .10048E-01** at limit **
   4  Prefactor     .80222        .28395        .24859E-03   -.74900E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.37278
  Normalizat = 0.01
  Prefactor  = 0.802224
 **********
 **   18 **HESSE 
 **********

 FCN=   427.1746     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7020        .33170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.3728        2.5211        .65943E-02    .35662    
   3  Normalizat    .10000E-01    .89616        .20096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .80222        .33342        .49718E-04   -.99646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37927e-10
Minuit parameter uncertainties:
  1  5.98569e-06
  2  332.905
  3  1.79726e-05
  4  0.334266
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706685': 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) = 427.174599158
delta logL = 2.90612672416e-06

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.000e-04  5.986e-06  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  3.373e+00  3.329e+02  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.022e-01  3.343e-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.000e-02  1.797e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.268 2.045

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/706685/cmap_HighResolution_370483201_370742401_4FGL_J1229.0+0202_daily_bin506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-04', job_status='DONE', photon_flux_upper_limit='1.16e-06', time_completed='2021-09-05 19:01:11.085710', job_id='706685', GAL2='0.80', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630893671.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.91e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='506' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:01:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 706685: <4FGL_J1229.0+0202_daily_bin506> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin506 187.268 2.0454 370483201 370742401 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 :                                   443.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             224.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   632 sec.
    Turnaround time :                            635 sec.

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

