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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin725
RA = 187.268, Dec = 2.0454
tmin = 427248001, tmax = 427507201
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='708359', job_status='RUN', time_executed='2021-09-05 18:56:14.544951', time_epoch_executed='1630893374.54' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='725'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708359

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708359/ft1_4FGL_J1229.0+0202_daily_bin725.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708359/ft2_4FGL_J1229.0+0202_daily_bin725.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708359/ft1_4FGL_J1229.0+0202_daily_bin725.fits outfile=/scratch/kocevski/708359/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin725.fits ra=187.268 dec=2.0454 rad=12.0 tmin=427248001.0 tmax=427507201.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.51
user 5.24
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/708359/ft2_4FGL_J1229.0+0202_daily_bin725.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/708359/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin725.fits evtable="EVENTS" outfile="/scratch/kocevski/708359/ft1_filtered_4FGL_J1229.0+0202_daily_bin725.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/708359/ft1_filtered_4FGL_J1229.0+0202_daily_bin725.fits" evtable="EVENTS" scfile=/scratch/kocevski/708359/ft2_4FGL_J1229.0+0202_daily_bin725.fits sctable="SC_DATA" outfile=/scratch/kocevski/708359/ltcube_427248001_427507201_4FGL_J1229.0+0202_daily_bin725.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/708359/ft2_4FGL_J1229.0+0202_daily_bin725.fits
.....................!
real 12.00
user 11.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708359/ft1_filtered_4FGL_J1229.0+0202_daily_bin725.fits evtable="EVENTS" scfile=/scratch/kocevski/708359/ft2_4FGL_J1229.0+0202_daily_bin725.fits sctable="SC_DATA" expcube=/scratch/kocevski/708359/ltcube_427248001_427507201_4FGL_J1229.0+0202_daily_bin725.fits outfile=/scratch/kocevski/708359/expmap_427248001_427507201_4FGL_J1229.0+0202_daily_bin725.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/708359/ltcube_427248001_427507201_4FGL_J1229.0+0202_daily_bin725.fits
.....................!
real 191.01
user 185.61
sys 5.02

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/708359/ft1_filtered_4FGL_J1229.0+0202_daily_bin725.fits scfile=/scratch/kocevski/708359/ft2_4FGL_J1229.0+0202_daily_bin725.fits outfile=/scratch/kocevski/708359/cmap_427248001_427507201_4FGL_J1229.0+0202_daily_bin725.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.9842       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    71.368       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11612E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.8121       1.0000         .10000E-03   10000.    
    14 'norm      '    3.1842       1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.827       1.0000         .10000E-03   10000.    
    16 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .90367       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1613       1.0000         .10000E-03   10000.    
    20 'Prefactor '    38.328       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.1776       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.6579       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    34.134       1.0000         .10000E-03   10000.    
    29 'norm      '    3.8891       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1789       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .81057       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=   5716.037     FROM MIGRAD    STATUS=CONVERGED    839 CALLS     4344 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.4455       -.41557E-07** at limit **
   2  Prefactor     .10000E-03    52.527       -.11895E-04** at limit **
   3  Prefactor     .10000E-03    6.6597        .66545E-07** at limit **
   4  Prefactor     .10000E-03    27.255        .10896E-04** at limit **
   5  Prefactor     .10000E-03    2.6413        .72399E-07** at limit **
   6  Prefactor     9.9851        14.243       -.97250E-06   -.48651E-04
   7  Prefactor     .10000E-03    46.679       -.10763E-04** at limit **
   8  Prefactor     71.377        51.390        .58723E-05   -.11836E-04
   9  Prefactor     .10000E-03    138.14       -.41193E-04** at limit **
  10  Prefactor     .10000E-03    12.248        .92382E-05** at limit **
  11  Prefactor     .10000E-03    10.595        .20355E-05** at limit **
  12  Prefactor     .10000E-03    22.318       -.69388E-05** at limit **
  13  norm          9.8125        4.0967        .13755E-06    .58282E-03
  14  norm          3.1844        3.4640       -.80291E-07   -.34845E-03
  15  Prefactor     31.826        44.009       -.10269E-05   -.91992E-05
  16  norm          .10000E-03    37.605        .76000E-05** at limit **
  17  Prefactor     .10000E-03    76.813        .27172E-04** at limit **
  18  norm          .90372        .58821       -.41623E-07   -.47891E-04
  19  Prefactor     6.1609        21.319        .16890E-04    .31129E-04
  20  Prefactor     38.298        55.653       -.27168E-04   -.49499E-04
  21  Prefactor     .10000E-03    11.474       -.10248E-04** at limit **
  22  norm          3.1777        2.2827       -.15066E-06   -.35511E-03
  23  Prefactor     .10000E-03    5.1590       -.10865E-07** at limit **
  24  Prefactor     7.6730        52.693        .17644E-04    .65079E-05
  25  Prefactor     .10000E-03    65.381        .70448E-05** at limit **
  26  Prefactor     .10000E-03    114.48        .19679E-04** at limit **
  27  norm          .10000E-03    45.503       -.98584E-05** at limit **
  28  Prefactor     34.134        24.742        .88850E-06   -.76869E-04
  29  norm          3.8892        .47604       -.47433E-08    .26180E-03
  30  Prefactor     .10000E-03    24.507       -.67242E-06** at limit **
  31  Normalizat    1.1790        .23351        .15218E-05    .10569E-03
  32  Prefactor     .81048        .17659       -.22687E-05    .24864E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.98513
  Prefactor  = 0.0001
  Prefactor  = 71.3773
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.81254
  norm       = 3.18438
  Prefactor  = 31.8257
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.903717
  Prefactor  = 6.16094
  Prefactor  = 38.2984
  Prefactor  = 0.0001
  norm       = 3.17774
  Prefactor  = 0.0001
  Prefactor  = 7.67303
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 34.1335
  norm       = 3.8892
  Prefactor  = 0.0001
  Normalizat = 1.179
  Prefactor  = 0.810475
 **********
 **   18 **HESSE 
 **********

 FCN=   5716.037     FROM HESSE     STATUS=OK           649 CALLS     4993 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    52.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.7020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.6459        .11999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.9851        14.257        .12681E-03   -1.5076    
   7  Prefactor     .10000E-03    46.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     71.377        51.365        .47520E-04   -1.4016    
   9  Prefactor     .10000E-03    140.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.695        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.8125        4.0784        .94099E-04   -1.5081    
  14  norm          3.1844        3.4452        .13719E-03   -1.5351    
  15  Prefactor     31.826        44.071        .71024E-04   -1.4579    
  16  norm          .10000E-03    37.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    76.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .90372        .57164        .43235E-04   -1.5518    
  19  Prefactor     6.1609        21.099        .16174E-03   -1.5211    
  20  Prefactor     38.298        55.416        .64740E-04   -1.4469    
  21  Prefactor     .10000E-03    11.758        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.1777        2.2772        .90165E-04   -1.5351    
  23  Prefactor     .10000E-03    5.1837        .16768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.6730        52.535        .14491E-03   -1.5154    
  25  Prefactor     .10000E-03    65.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    114.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    45.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     34.134        24.782        .68590E-04   -1.4539    
  29  norm          3.8892        .47669        .17522E-04   -1.5314    
  30  Prefactor     .10000E-03    24.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1790        .27544        .30197E-03   -.87254    
  32  Prefactor     .81048        .20680        .28022E-03   -.99343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51796e-10
Minuit parameter uncertainties:
  1  1.3805e-06
  2  2.42063e-05
  3  5.67581e-06
  4  2.99027e-05
  5  3.32592e-06
  6  14.262
  7  1.57648e-05
  8  51.3972
  9  0.00105058
  10  1.12501e-06
  11  6.3953e-06
  12  6.20689e-05
  13  4.07854
  14  3.44537
  15  44.1163
  16  2.29099e-05
  17  1.82117e-05
  18  0.571641
  19  21.1247
  20  55.4902
  21  9.75004e-05
  22  2.27724
  23  3.36426e-06
  24  40.2053
  25  1.41908e-05
  26  3.22632e-05
  27  2.68145e-05
  28  24.789
  29  0.476693
  30  1.16032e-07
  31  0.275775
  32  0.206995
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  9.037e-01  5.716e-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:  8.105e-01  2.070e-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.179e+00  2.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.43
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 9.93e-08 +/- 6.27e-08
Energy Flux (Fixed Index): 2.36e-05 +/- 1.49e-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) = 5715.86656638
delta logL = 0.170470341574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5715.86308316
delta logL = 0.173953565011

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .89219       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0203       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1543       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82350       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=   5715.863     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      233 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .89248        14.217        .89656E-02    .51381E-03
   2  alpha         3.0208        2.5323        .42338       -.24228E-06
   3  Normalizat    1.1548        .13586        .68838E-01    .15545E-04
   4  Prefactor     .82322        .11763        .62916E-01    .16875E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.892484
  alpha      = 3.02075
  Normalizat = 1.15477
  Prefactor  = 0.823225
 **********
 **   18 **HESSE 
 **********

 FCN=   5715.863     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .89E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .89248        .55051        .40418E-04   -1.5519    
   2  alpha         3.0208        .71502        .19088E-01    .20984    
   3  Normalizat    1.1548        .26552        .30456E-03   -.88012    
   4  Prefactor     .82322        .20553        .27827E-03   -.98878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.88829e-14
Minuit parameter uncertainties:
  1  0.550511
  2  0.725622
  3  0.265829
  4  0.205723
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708359': 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) = 5715.86308023
delta logL = 0.173956491256

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  8.925e-01  5.505e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  3.021e+00  7.256e-01  0.000e+00  5.000e+00 ( 1.000e+00)
337         beta:  9.652e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  3.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  8.232e-01  2.057e-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.155e+00  2.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.78
Ra Dec: 187.268 2.045
Photon Index (Free Index): 3.02 +/- 0.73
Photon Flux (Free Index): 1.23e-07 +/- 7.93e-08
Energy Flux (Free Index): 2.40e-05 +/- 1.41e-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/708359/cmap_HighResolution_427248001_427507201_4FGL_J1229.0+0202_daily_bin725.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.93e-08', energy_flux2='2.40e-05', photon_flux_error='6.27e-08', dlogl='1.74e-01', energy_flux='2.36e-05', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-09-05 19:09:17.404756', photon_index_error2='0.73', photon_index2='3.02', ts='4.43', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.41e-05', EG='1.18', time_epoch_completed='1630894157.4', return_code='0', job_id='708359', GAL2='0.82', EG2='1.15', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='7.93e-08', ts2='4.78', photon_index='2.61' WHERE bin_id='725' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:09:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 708359: <4FGL_J1229.0+0202_daily_bin725> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin725> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 18:55:54 2021
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:55:56 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:55:56 2021
Terminated at Sun Sep  5 19:09:18 2021
Results reported at Sun Sep  5 19:09:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin725 187.268 2.0454 427248001 427507201 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 :                                   778.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            804 sec.

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

