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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin944
RA = 187.268, Dec = 2.0454
tmin = 484012801, tmax = 484272001
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='710906', job_status='RUN', time_executed='2021-09-05 19:08:13.019286', time_epoch_executed='1630894093.02' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/710906

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/710906/ft1_4FGL_J1229.0+0202_daily_bin944.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/710906/ft2_4FGL_J1229.0+0202_daily_bin944.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/710906/ft1_4FGL_J1229.0+0202_daily_bin944.fits outfile=/scratch/kocevski/710906/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin944.fits ra=187.268 dec=2.0454 rad=12.0 tmin=484012801.0 tmax=484272001.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.45
user 3.23
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/710906/ft1_filtered_4FGL_J1229.0+0202_daily_bin944.fits evtable="EVENTS" scfile=/scratch/kocevski/710906/ft2_4FGL_J1229.0+0202_daily_bin944.fits sctable="SC_DATA" expcube=/scratch/kocevski/710906/ltcube_484012801_484272001_4FGL_J1229.0+0202_daily_bin944.fits outfile=/scratch/kocevski/710906/expmap_484012801_484272001_4FGL_J1229.0+0202_daily_bin944.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/710906/ltcube_484012801_484272001_4FGL_J1229.0+0202_daily_bin944.fits
.....................!
real 189.93
user 185.12
sys 4.40

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/710906/ft1_filtered_4FGL_J1229.0+0202_daily_bin944.fits scfile=/scratch/kocevski/710906/ft2_4FGL_J1229.0+0202_daily_bin944.fits outfile=/scratch/kocevski/710906/cmap_484012801_484272001_4FGL_J1229.0+0202_daily_bin944.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.66
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/710906/ft1_filtered_4FGL_J1229.0+0202_daily_bin944.fits scfile=/scratch/kocevski/710906/ft2_4FGL_J1229.0+0202_daily_bin944.fits outfile=/scratch/kocevski/710906/cmap_HighResolution_484012801_484272001_4FGL_J1229.0+0202_daily_bin944.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.62
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24579E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5167       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    105.10       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12467E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.948       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2772       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11531E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6971       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.2548       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.489       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.6481       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.712       1.0000         .10000E-03   10000.    
    24 'Prefactor '    57.368       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.4681       1.0000         .10000E-03   10000.    
    29 'norm      '    .67308       1.0000         .10000E-03   10000.    
    30 'Prefactor '    124.79       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1570       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .64578       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=   5024.987     FROM MIGRAD    STATUS=CONVERGED    817 CALLS     4293 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    101.53       -.24714E-04** at limit **
   2  Prefactor     .10000E-03    70.802        .71034E-05** at limit **
   3  Prefactor     6.5179        9.3014        .21278E-06   -.99850E-04
   4  Prefactor     .10000E-03    21.910        .97917E-06** at limit **
   5  Prefactor     .10000E-03    3.2416        .59729E-07** at limit **
   6  Prefactor     .10000E-03    6.4818       -.49371E-07** at limit **
   7  Prefactor     .10000E-03    66.895       -.27360E-05** at limit **
   8  Prefactor     105.12        51.552        .67019E-05    .27150E-05
   9  Prefactor     .10000E-03    76.714        .15728E-04** at limit **
  10  Prefactor     14.948        20.242       -.18580E-06   -.31725E-03
  11  Prefactor     .10000E-03    13.253       -.12268E-05** at limit **
  12  Prefactor     4.2848        9.9384       -.20957E-06   -.16090E-03
  13  norm          .10000E-03    1.9359        .60089E-07** at limit **
  14  norm          .10000E-03    1.4743        .15209E-06** at limit **
  15  Prefactor     2.6974        131.86        .26604E-05   -.21751E-04
  16  norm          .10000E-03    13.988        .29279E-05** at limit **
  17  Prefactor     .10000E-03    80.226        .16245E-04** at limit **
  18  norm          1.2548        .60571       -.44289E-07   -.78971E-03
  19  Prefactor     12.476        11.357       -.56165E-06   -.18230E-03
  20  Prefactor     .10000E-03    70.778        .91911E-05** at limit **
  21  Prefactor     .10000E-03    14.991       -.17096E-05** at limit **
  22  norm          6.6485        2.4840       -.19949E-06   -.31433E-03
  23  Prefactor     15.716        10.541       -.46936E-06    .29064E-04
  24  Prefactor     57.383        50.671        .12306E-04   -.13005E-07
  25  Prefactor     .10000E-03    61.854       -.20540E-04** at limit **
  26  Prefactor     .10000E-03    16.466       -.93642E-06** at limit **
  27  norm          .10000E-03    16.783        .33351E-06** at limit **
  28  Prefactor     7.4711        11.454        .88320E-06   -.79855E-04
  29  norm          .67310        .26360       -.66939E-07    .71261E-03
  30  Prefactor     124.81        88.180        .14063E-04    .21032E-05
  31  Normalizat    1.1567        .21378       -.15075E-05    .83014E-05
  32  Prefactor     .64583        .16587       -.12776E-05    .45613E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 6.51789
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 105.115
  Prefactor  = 0.0001
  Prefactor  = 14.9478
  Prefactor  = 0.0001
  Prefactor  = 4.28484
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.69743
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.25476
  Prefactor  = 12.4762
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.64852
  Prefactor  = 15.7159
  Prefactor  = 57.3833
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.4711
  norm       = 0.673102
  Prefactor  = 124.806
  Normalizat = 1.15671
  Prefactor  = 0.645834
 **********
 **   18 **HESSE 
 **********

 FCN=   5024.987     FROM HESSE     STATUS=OK           657 CALLS     4950 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    103.55        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    70.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5179        9.3089        .15721E-03   -1.5197    
   4  Prefactor     .10000E-03    21.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.2509        .12463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.5143        .17625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    66.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     105.12        51.539        .19612E-03   -1.3654    
   9  Prefactor     .10000E-03    77.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.948        20.237        .51797E-03   -1.4935    
  11  Prefactor     .10000E-03    13.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.2848        9.8112        .19481E-03   -1.5294    
  13  norm          .10000E-03    1.9607        .19055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.2895        .16490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.6974        131.76        .24806E-03   -1.5379    
  16  norm          .10000E-03    13.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    80.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.2548        .59655        .34950E-04   -1.5484    
  19  Prefactor     12.476        11.344        .11335E-03   -1.5001    
  20  Prefactor     .10000E-03    71.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.6485        2.4869        .62619E-04   -1.5192    
  23  Prefactor     15.716        10.527        .10104E-03   -1.4915    
  24  Prefactor     57.383        50.617        .52965E-04   -1.4191    
  25  Prefactor     .10000E-03    61.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    16.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    16.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     7.4711        11.443        .14676E-03   -1.5161    
  29  norm          .67310        .26274        .21601E-04   -1.5544    
  30  Prefactor     124.81        88.021        .18017E-03   -1.3469    
  31  Normalizat    1.1567        .24734        .25128E-03   -.87951    
  32  Prefactor     .64583        .19036        .26230E-03   -1.0569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.19942e-10
Minuit parameter uncertainties:
  1  0.00129432
  2  5.31153e-05
  3  9.31096
  4  2.74545e-05
  5  6.50798e-06
  6  6.34083e-06
  7  5.34119e-05
  8  51.5614
  9  0.000112876
  10  20.2459
  11  1.07752e-05
  12  9.81492
  13  1.18218e-05
  14  1.97184e-05
  15  37.7933
  16  5.09786e-06
  17  2.2471e-05
  18  0.596551
  19  11.346
  20  0.000243468
  21  1.63886e-05
  22  2.48694
  23  10.5286
  24  50.6549
  25  0.000108119
  26  1.65653e-06
  27  2.24748e-05
  28  11.4467
  29  0.262736
  30  88.1137
  31  0.247589
  32  0.190549
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.255e+00  5.966e-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:  6.458e-01  1.905e-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.157e+00  2.476e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.78
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.38e-07 +/- 6.55e-08
Energy Flux (Fixed Index): 3.28e-05 +/- 1.56e-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) = 5024.29170703
delta logL = 0.69555080714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5024.28516518
delta logL = 0.702092655693

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1330       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3592       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0877       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68584       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=   5024.285     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      229 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1330        7.5695        .65321E-02    .32695E-03
   2  alpha         3.3595        3.6290        .35492        .13343E-04
   3  Normalizat    1.0877        .99437E-01    .58212E-01    .77232E-05
   4  Prefactor     .68587        .92978E-01    .42212E-01    .15196E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.13295
  alpha      = 3.35952
  Normalizat = 1.08768
  Prefactor  = 0.685866
 **********
 **   18 **HESSE 
 **********

 FCN=   5024.285     FROM HESSE     STATUS=OK            31 CALLS      260 TOTAL
                     EDM=   .83E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1330        .59869        .29067E-04   -1.5495    
   2  alpha         3.3595        .70846        .15358E-02    .35097    
   3  Normalizat    1.0877        .24436        .25743E-03   -.90148    
   4  Prefactor     .68587        .19242        .25530E-03   -1.0408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.28873e-15
Minuit parameter uncertainties:
  1  0.598688
  2  0.719676
  3  0.244614
  4  0.192606
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/710906': 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) = 5024.28516503
delta logL = 0.702092798866

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.133e+00  5.987e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  3.360e+00  7.197e-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:  6.859e-01  1.926e-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.088e+00  2.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.46
Ra Dec: 187.268 2.045
Photon Index (Free Index): 3.36 +/- 0.72
Photon Flux (Free Index): 1.96e-07 +/- 8.66e-08
Energy Flux (Free Index): 3.40e-05 +/- 1.40e-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/710906/cmap_HighResolution_484012801_484272001_4FGL_J1229.0+0202_daily_bin944.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.38e-07', energy_flux2='3.40e-05', photon_flux_error='6.55e-08', dlogl='7.02e-01', energy_flux='3.28e-05', photon_flux2='1.96e-07', job_status='DONE', time_completed='2021-09-05 19:20:19.043622', photon_index_error2='0.72', photon_index2='3.36', ts='8.78', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='1.40e-05', EG='1.16', time_epoch_completed='1630894819.04', return_code='0', job_id='710906', GAL2='0.69', EG2='1.09', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='8.66e-08', ts2='10.46', photon_index='2.61' WHERE bin_id='944' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:20:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 710906: <4FGL_J1229.0+0202_daily_bin944> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin944> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep  5 19:05:21 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 19:05:23 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:05:23 2021
Terminated at Sun Sep  5 19:20:19 2021
Results reported at Sun Sep  5 19:20:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin944 187.268 2.0454 484012801 484272001 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 :                                   705.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            898 sec.

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

