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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin808
RA = 187.268, Dec = 2.0454
tmin = 448761601, tmax = 449020801
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='709502', job_status='RUN', time_executed='2021-09-05 19:00:30.826644', time_epoch_executed='1630893630.83' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='808'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/709502

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/709502/ft1_4FGL_J1229.0+0202_daily_bin808.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/709502/ft2_4FGL_J1229.0+0202_daily_bin808.fits


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

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

Done.
real 5.74
user 5.45
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/709502/ft1_filtered_4FGL_J1229.0+0202_daily_bin808.fits evtable="EVENTS" scfile=/scratch/kocevski/709502/ft2_4FGL_J1229.0+0202_daily_bin808.fits sctable="SC_DATA" expcube=/scratch/kocevski/709502/ltcube_448761601_449020801_4FGL_J1229.0+0202_daily_bin808.fits outfile=/scratch/kocevski/709502/expmap_448761601_449020801_4FGL_J1229.0+0202_daily_bin808.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/709502/ltcube_448761601_449020801_4FGL_J1229.0+0202_daily_bin808.fits
.....................!
real 190.92
user 185.69
sys 4.86

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/709502/ft1_filtered_4FGL_J1229.0+0202_daily_bin808.fits scfile=/scratch/kocevski/709502/ft2_4FGL_J1229.0+0202_daily_bin808.fits outfile=/scratch/kocevski/709502/cmap_448761601_449020801_4FGL_J1229.0+0202_daily_bin808.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/709502/ft1_filtered_4FGL_J1229.0+0202_daily_bin808.fits scfile=/scratch/kocevski/709502/ft2_4FGL_J1229.0+0202_daily_bin808.fits outfile=/scratch/kocevski/709502/cmap_HighResolution_448761601_449020801_4FGL_J1229.0+0202_daily_bin808.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14593E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6836       1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.113       1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.905       1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.423       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4128       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10635E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3122       1.0000         .10000E-03   10000.    
    14 'norm      '    8.2869       1.0000         .10000E-03   10000.    
    15 'Prefactor '    76.682       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .73916       1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.777       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.6285       1.0000         .10000E-03   10000.    
    22 'norm      '    1.3247       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.976       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .34467E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .15560E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    38.690       1.0000         .10000E-03   10000.    
    27 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    72.190       1.0000         .10000E-03   10000.    
    29 'norm      '    1.5457       1.0000         .10000E-03   10000.    
    30 'Prefactor '    35.734       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.4415       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .51882       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=   5316.255     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     4383 TOTAL
                     EDM=   .45E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.354        .41892E-07** at limit **
   2  Prefactor     .10000E-03    41.633        .53108E-07** at limit **
   3  Prefactor     .10000E-03    14.909        .18841E-06** at limit **
   4  Prefactor     .10000E-03    177.45       -.26520E-04** at limit **
   5  Prefactor     4.6854        7.8376        .27096E-06   -.20131E-04
   6  Prefactor     25.114        17.355        .15502E-06    .38222E-04
   7  Prefactor     39.912        65.295        .76932E-07    .25559E-05
   8  Prefactor     33.261        46.374        .10180E-05    .25028E-06
   9  Prefactor     .10000E-03    10.995        .21875E-07** at limit **
  10  Prefactor     8.4136        14.846        .17006E-05   -.28979E-04
  11  Prefactor     .10000E-03    12.847        .53807E-07** at limit **
  12  Prefactor     .10000E-03    26.808        .34633E-06** at limit **
  13  norm          2.3114        2.8828        .38153E-06   -.69229E-04
  14  norm          8.2882        4.5649        .61995E-08   -.82118E-04
  15  Prefactor     76.691        44.226        .48054E-07   -.87881E-06
  16  norm          .10000E-03    24.070       -.11056E-06** at limit **
  17  Prefactor     .10000E-03    64.360       -.43365E-07** at limit **
  18  norm          .73903        .67876        .41429E-07   -.29511E-03
  19  Prefactor     26.779        14.542        .11279E-06   -.14759E-04
  20  Prefactor     .10000E-03    16.558        .12192E-06** at limit **
  21  Prefactor     4.6286        11.000        .32179E-06   -.22401E-04
  22  norm          1.3239        2.1353        .31743E-06   -.54137E-04
  23  Prefactor     16.961        12.185       -.13650E-07   -.32870E-04
  24  Prefactor     .10000E-03    252.72        .13038E-05** at limit **
  25  Prefactor     .10000E-03    144.31        .15576E-05** at limit **
  26  Prefactor     38.696        71.363        .34429E-07   -.19540E-05
  27  norm          .10000E-03    63.135        .19314E-06** at limit **
  28  Prefactor     72.195        31.962        .12460E-06   -.22636E-04
  29  norm          1.5450        .38075        .48984E-07   -.38477E-03
  30  Prefactor     35.741        80.712        .42108E-06    .10263E-05
  31  Normalizat    1.4414        .24539       -.17058E-05    .50354E-04
  32  Prefactor     .51871        .17796        .12471E-05   -.50385E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 4.68543
  Prefactor  = 25.1144
  Prefactor  = 39.9125
  Prefactor  = 33.2606
  Prefactor  = 0.0001
  Prefactor  = 8.41362
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.31139
  norm       = 8.28823
  Prefactor  = 76.691
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.739027
  Prefactor  = 26.779
  Prefactor  = 0.0001
  Prefactor  = 4.62861
  norm       = 1.32389
  Prefactor  = 16.9606
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 38.6961
  norm       = 0.0001
  Prefactor  = 72.195
  norm       = 1.54498
  Prefactor  = 35.7414
  Normalizat = 1.44141
  Prefactor  = 0.518708
 **********
 **   18 **HESSE 
 **********

 FCN=   5316.255     FROM HESSE     STATUS=OK           659 CALLS     5042 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    41.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    180.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.6854        7.8330        .18595E-03   -1.5275    
   6  Prefactor     25.114        17.387        .79937E-04   -1.4705    
   7  Prefactor     39.912        65.320        .63453E-04   -1.4444    
   8  Prefactor     33.261        46.484        .69313E-04   -1.4554    
   9  Prefactor     .10000E-03    10.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.4136        14.816        .69106E-03   -1.5128    
  11  Prefactor     .10000E-03    12.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.472        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3114        2.8508        .13019E-03   -1.5404    
  14  norm          8.2882        4.5570        .10381E-03   -1.5132    
  15  Prefactor     76.691        44.235        .45856E-04   -1.3954    
  16  norm          .10000E-03    24.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    64.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .73903        .64393        .49441E-03   -1.5536    
  19  Prefactor     26.779        14.555        .77418E-04   -1.4673    
  20  Prefactor     .10000E-03    16.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.6286        10.951        .18708E-03   -1.5278    
  22  norm          1.3239        2.0850        .12177E-03   -1.5478    
  23  Prefactor     16.961        12.157        .97209E-04   -1.4884    
  24  Prefactor     .10000E-03    261.06        .42660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    145.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     38.696        71.349        .64437E-04   -1.4463    
  27  norm          .10000E-03    63.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     72.195        32.036        .47250E-04   -1.4007    
  29  norm          1.5450        .38176        .20498E-04   -1.5459    
  30  Prefactor     35.741        81.051        .67041E-04   -1.4512    
  31  Normalizat    1.4414        .28219        .26216E-03   -.79438    
  32  Prefactor     .51871        .20096        .31505E-03   -1.1113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08356e-10
Minuit parameter uncertainties:
  1  1.46192e-05
  2  4.95285e-06
  3  1.25967e-05
  4  0.00114774
  5  7.83475
  6  17.3908
  7  65.4378
  8  46.5349
  9  7.51559e-07
  10  14.823
  11  4.32456e-06
  12  0.000101064
  13  2.85099
  14  4.55717
  15  44.2542
  16  6.35042e-05
  17  6.92412e-05
  18  0.643937
  19  14.5566
  20  3.97705e-05
  21  10.9553
  22  2.08511
  23  12.1586
  24  0.000364461
  25  0.000599698
  26  71.5066
  27  0.000104356
  28  32.0433
  29  0.381765
  30  81.3022
  31  0.282501
  32  0.201237
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  7.390e-01  6.439e-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.187e-01  2.012e-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.441e+00  2.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.98
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 8.12e-08 +/- 7.07e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.68e-05

TS (Fixed Index): 1.98
Ra Dec: 187.268 2.045
Photon Flux Upper Limit: 2.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.10e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/709502/likelihoodResults_448761601_449020801_4FGL_J1229.0+0202_daily_bin808.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) = 5315.49969956
delta logL = 0.755014232792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5315.49297516
delta logL = 0.761738630207

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61780       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7421       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3733       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55639       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=   5315.493     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      235 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61757        7.7204        .75130E-02    .87996E-03
   2  alpha         3.7418        2.8660        .50000        .15415E-04
   3  Normalizat    1.3734        .91043E-01    .60389E-01    .46841E-05
   4  Prefactor     .55642        .70089E-01    .68889E-01    .24801E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.617568
  alpha      = 3.74179
  Normalizat = 1.37341
  Prefactor  = 0.55642
 **********
 **   18 **HESSE 
 **********

 FCN=   5315.493     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .61757        .60950        .33833E-04   -1.5551    
   2  alpha         3.7418        1.0925        .23626E-01    .51981    
   3  Normalizat    1.3734        .26959        .26707E-03   -.81401    
   4  Prefactor     .55642        .19992        .30492E-03   -1.0945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64616e-12
Minuit parameter uncertainties:
  1  0.609501
  2  1.14485
  3  0.269873
  4  0.200173
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/709502': 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) = 5315.49297408
delta logL = 0.761739719146

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  6.176e-01  6.095e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  3.742e+00  1.145e+00  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:  5.564e-01  2.002e-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.373e+00  2.699e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.63
Ra Dec: 187.268 2.045
Photon Index (Free Index): 3.74 +/- 1.14
Photon Flux (Free Index): 1.41e-07 +/- 8.91e-08
Energy Flux (Free Index): 2.23e-05 +/- 1.43e-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/709502/cmap_HighResolution_448761601_449020801_4FGL_J1229.0+0202_daily_bin808.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.10e-05', comment='SUCCESS', photon_flux='8.12e-08', energy_flux2='2.23e-05', photon_flux_error='7.07e-08', dlogl='7.62e-01', energy_flux='1.93e-05', photon_flux2='1.41e-07', job_status='DONE', time_completed='2021-09-05 19:15:07.290824', photon_index_error2='1.14', photon_index2='3.74', ts='1.98', fit_tolerance='1e-08', GAL='0.52', photon_index_error='0.00', photon_flux_upper_limit='2.14e-07', energy_flux_error2='1.43e-05', EG='1.44', time_epoch_completed='1630894507.29', return_code='0', job_id='709502', GAL2='0.56', EG2='1.37', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='8.91e-08', ts2='3.63', photon_index='2.61' WHERE bin_id='808' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:15:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 709502: <4FGL_J1229.0+0202_daily_bin808> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin808 187.268 2.0454 448761601 449020801 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 :                                   871.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             368.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            890 sec.

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

