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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin958
RA = 187.268, Dec = 2.0454
tmin = 487641601, tmax = 487900801
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='710931', job_status='RUN', time_executed='2021-09-05 19:09:22.774317', time_epoch_executed='1630894162.77' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='958'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/710931

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/710931/ft1_4FGL_J1229.0+0202_daily_bin958.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/710931/ft2_4FGL_J1229.0+0202_daily_bin958.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/710931/ft1_4FGL_J1229.0+0202_daily_bin958.fits outfile=/scratch/kocevski/710931/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin958.fits ra=187.268 dec=2.0454 rad=12.0 tmin=487641601.0 tmax=487900801.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.03
user 4.80
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/710931/ft1_filtered_4FGL_J1229.0+0202_daily_bin958.fits" evtable="EVENTS" scfile=/scratch/kocevski/710931/ft2_4FGL_J1229.0+0202_daily_bin958.fits sctable="SC_DATA" outfile=/scratch/kocevski/710931/ltcube_487641601_487900801_4FGL_J1229.0+0202_daily_bin958.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/710931/ft2_4FGL_J1229.0+0202_daily_bin958.fits
.....................!
real 11.80
user 11.43
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/710931/ft1_filtered_4FGL_J1229.0+0202_daily_bin958.fits evtable="EVENTS" scfile=/scratch/kocevski/710931/ft2_4FGL_J1229.0+0202_daily_bin958.fits sctable="SC_DATA" expcube=/scratch/kocevski/710931/ltcube_487641601_487900801_4FGL_J1229.0+0202_daily_bin958.fits outfile=/scratch/kocevski/710931/expmap_487641601_487900801_4FGL_J1229.0+0202_daily_bin958.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/710931/ltcube_487641601_487900801_4FGL_J1229.0+0202_daily_bin958.fits
.....................!
real 189.70
user 185.06
sys 4.27

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/710931/ft1_filtered_4FGL_J1229.0+0202_daily_bin958.fits scfile=/scratch/kocevski/710931/ft2_4FGL_J1229.0+0202_daily_bin958.fits outfile=/scratch/kocevski/710931/cmap_487641601_487900801_4FGL_J1229.0+0202_daily_bin958.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/710931/ft1_filtered_4FGL_J1229.0+0202_daily_bin958.fits scfile=/scratch/kocevski/710931/ft2_4FGL_J1229.0+0202_daily_bin958.fits outfile=/scratch/kocevski/710931/cmap_HighResolution_487641601_487900801_4FGL_J1229.0+0202_daily_bin958.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/710931/ft1_filtered_4FGL_J1229.0+0202_daily_bin958.fits evtable="EVENTS" scfile=/scratch/kocevski/710931/ft2_4FGL_J1229.0+0202_daily_bin958.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/710931/Model_4FGL_J1229.0+0202_daily_bin958.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/710931/ft1_filtered_4FGL_J1229.0+0202_daily_bin958.fits.....................!
real 47.27
user 45.97
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10064E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5344       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    55.764       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.657       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.826       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.977       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.9695       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0416       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.9457       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5826       1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.959       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.044       1.0000         .10000E-03   10000.    
    22 'norm      '    2.4782       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.2103       1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.952       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    41.190       1.0000         .10000E-03   10000.    
    27 'norm      '    4.5765       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.9193       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.4570       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .74231       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=   5145.484     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     4331 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2375       -.20514E-06** at limit **
   2  Prefactor     .10000E-03    126.52       -.43388E-05** at limit **
   3  Prefactor     .10000E-03    6.8271        .13108E-06** at limit **
   4  Prefactor     .10000E-03    42.868        .53191E-05** at limit **
   5  Prefactor     .10000E-03    9.2546       -.21153E-06** at limit **
   6  Prefactor     1.5368        91.020       -.41944E-06   -.23828E-04
   7  Prefactor     .10000E-03    55.620       -.69175E-05** at limit **
   8  Prefactor     55.758        58.802        .82211E-06   -.11281E-04
   9  Prefactor     10.659        39.866        .46859E-06    .80679E-05
  10  Prefactor     12.822        24.464        .32953E-06    .73048E-05
  11  Prefactor     14.979        22.713        .11149E-06    .21760E-05
  12  Prefactor     .10000E-03    8.5192        .29937E-06** at limit **
  13  norm          4.9695        3.3739        .21619E-07   -.31379E-04
  14  norm          1.0391        3.6274        .32282E-06   -.69383E-04
  15  Prefactor     .10000E-03    23.927       -.14753E-05** at limit **
  16  norm          .10000E-03    19.354        .16649E-05** at limit **
  17  Prefactor     .10000E-03    148.90        .96666E-05** at limit **
  18  norm          1.9458        .79881       -.25516E-07   -.14244E-03
  19  Prefactor     4.5833        18.369        .41724E-05   -.13605E-04
  20  Prefactor     28.954        56.265       -.23611E-05    .16991E-04
  21  Prefactor     11.045        11.966       -.90145E-06   -.14301E-04
  22  norm          2.4784        1.6930        .31944E-09   -.53711E-04
  23  Prefactor     2.2123        12.935        .10010E-04   -.14426E-04
  24  Prefactor     18.928        35.856        .17536E-05    .12111E-04
  25  Prefactor     .10000E-03    26.483        .11110E-05** at limit **
  26  Prefactor     41.194        50.423       -.22796E-06   -.28729E-05
  27  norm          4.5805        50.568       -.34789E-05   -.45649E-05
  28  Prefactor     .10000E-03    6.1990        .23469E-07** at limit **
  29  norm          1.9193        .39398       -.16272E-07   -.14444E-03
  30  Prefactor     .10000E-03    21.759       -.18860E-05** at limit **
  31  Normalizat    1.4572        .25559       -.45814E-06    .42374E-04
  32  Prefactor     .74214        .19216       -.74915E-06    .37411E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.53681
  Prefactor  = 0.0001
  Prefactor  = 55.7578
  Prefactor  = 10.6586
  Prefactor  = 12.8217
  Prefactor  = 14.9792
  Prefactor  = 0.0001
  norm       = 4.96948
  norm       = 1.03913
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.94581
  Prefactor  = 4.58331
  Prefactor  = 28.9539
  Prefactor  = 11.0453
  norm       = 2.4784
  Prefactor  = 2.21226
  Prefactor  = 18.928
  Prefactor  = 0.0001
  Prefactor  = 41.1943
  norm       = 4.58046
  Prefactor  = 0.0001
  norm       = 1.91935
  Prefactor  = 0.0001
  Normalizat = 1.45722
  Prefactor  = 0.742139
 **********
 **   18 **HESSE 
 **********

 FCN=   5145.484     FROM HESSE     STATUS=OK           661 CALLS     4992 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    126.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.8456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    42.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.3787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.5368        88.831        .34443E-03   -1.5460    
   7  Prefactor     .10000E-03    55.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     55.758        57.875        .53717E-04   -1.4213    
   9  Prefactor     10.659        39.893        .12273E-03   -1.5055    
  10  Prefactor     12.822        24.421        .11185E-03   -1.4992    
  11  Prefactor     14.979        22.611        .10349E-03   -1.4934    
  12  Prefactor     .10000E-03    8.5331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.9695        3.3703        .10394E-03   -1.5262    
  14  norm          1.0391        3.5693        .23104E-03   -1.5504    
  15  Prefactor     .10000E-03    23.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    19.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    149.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.9458        .79029        .37426E-04   -1.5429    
  19  Prefactor     4.5833        18.072        .94018E-03   -1.5280    
  20  Prefactor     28.954        55.500        .74449E-04   -1.4631    
  21  Prefactor     11.045        11.960        .12055E-03   -1.5043    
  22  norm          2.4784        1.6900        .73778E-04   -1.5393    
  23  Prefactor     2.2123        12.913        .13834E-02   -1.5410    
  24  Prefactor     18.928        35.834        .92002E-04   -1.4838    
  25  Prefactor     .10000E-03    26.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     41.194        50.434        .62459E-04   -1.4423    
  27  norm          4.5805        50.702        .18816E-03   -1.5280    
  28  Prefactor     .10000E-03    6.2037        .17440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.9193        .39445        .19465E-04   -1.5431    
  30  Prefactor     .10000E-03    21.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.4572        .30315        .27842E-03   -.78988    
  32  Prefactor     .74214        .22637        .29172E-03   -1.0190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09043e-10
Minuit parameter uncertainties:
  1  1.81433e-06
  2  0.000147551
  3  2.98499e-06
  4  0.00011044
  5  6.32558e-06
  6  23.4038
  7  0.000213209
  8  57.9338
  9  39.9934
  10  24.44
  11  22.6236
  12  1.5624e-06
  13  3.37042
  14  3.56999
  15  2.93971e-05
  16  3.12793e-05
  17  0.000468494
  18  0.790298
  19  18.0932
  20  55.5992
  21  11.9628
  22  1.69006
  23  10.6928
  24  35.8747
  25  1.73794e-05
  26  50.486
  27  30.5112
  28  4.1537e-06
  29  0.394454
  30  3.83654e-05
  31  0.303531
  32  0.226653
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.946e+00  7.903e-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:  7.421e-01  2.267e-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.457e+00  3.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.65
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 2.14e-07 +/- 8.67e-08
Energy Flux (Fixed Index): 5.08e-05 +/- 2.06e-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) = 5145.38964818
delta logL = 0.0939625000246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5145.38553097
delta logL = 0.0980797045822

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8970       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8156       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75393       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=   5145.386     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      200 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8970        1.8977        .75506E-02   -.24675E-02
   2  alpha         2.8156        1.0729        .28297        .18567E-04
   3  Normalizat    1.4381        .24234        .63276E-01    .10027E-04
   4  Prefactor     .75391        .19027        .65486E-01    .13804E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.89696
  alpha      = 2.81558
  Normalizat = 1.43808
  Prefactor  = 0.753913
 **********
 **   18 **HESSE 
 **********

 FCN=   5145.386     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8970        .77104        .36427E-04   -1.5433    
   2  alpha         2.8156        .46744        .12044E-01    .12657    
   3  Normalizat    1.4381        .28826        .27986E-03   -.79533    
   4  Prefactor     .75391        .22111        .28971E-03   -1.0145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77555e-10
Minuit parameter uncertainties:
  1  0.771049
  2  0.470249
  3  0.288585
  4  0.221366
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/710931': 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) = 5145.38553097
delta logL = 0.0980797107122

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.897e+00  7.710e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.816e+00  4.702e-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:  7.539e-01  2.214e-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.438e+00  2.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.85
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.82 +/- 0.47
Photon Flux (Free Index): 2.32e-07 +/- 9.73e-08
Energy Flux (Free Index): 4.94e-05 +/- 1.97e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/710931/cmap_HighResolution_487641601_487900801_4FGL_J1229.0+0202_daily_bin958.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.14e-07', energy_flux2='4.94e-05', photon_flux_error='8.67e-08', dlogl='9.81e-02', energy_flux='5.08e-05', photon_flux2='2.32e-07', job_status='DONE', time_completed='2021-09-05 19:21:41.422799', photon_index_error2='0.47', photon_index2='2.82', ts='12.65', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='1.97e-05', EG='1.46', time_epoch_completed='1630894901.42', return_code='0', job_id='710931', GAL2='0.75', EG2='1.44', return_code2='0', energy_flux_error='2.06e-05', photon_flux_error2='9.73e-08', ts2='12.85', photon_index='2.61' WHERE bin_id='958' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:21:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 710931: <4FGL_J1229.0+0202_daily_bin958> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin958 187.268 2.0454 487641601 487900801 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 :                                   728.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            980 sec.

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

