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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin850
RA = 187.268, Dec = 2.0454
tmin = 459648001, tmax = 459907201
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='709568', job_status='RUN', time_executed='2021-09-05 19:02:31.984729', time_epoch_executed='1630893751.98' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='850'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/709568

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/709568/ft1_4FGL_J1229.0+0202_daily_bin850.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/709568/ft2_4FGL_J1229.0+0202_daily_bin850.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/709568/ft1_4FGL_J1229.0+0202_daily_bin850.fits outfile=/scratch/kocevski/709568/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin850.fits ra=187.268 dec=2.0454 rad=12.0 tmin=459648001.0 tmax=459907201.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.40
user 3.16
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/709568/ft1_filtered_4FGL_J1229.0+0202_daily_bin850.fits" evtable="EVENTS" scfile=/scratch/kocevski/709568/ft2_4FGL_J1229.0+0202_daily_bin850.fits sctable="SC_DATA" outfile=/scratch/kocevski/709568/ltcube_459648001_459907201_4FGL_J1229.0+0202_daily_bin850.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/709568/ft2_4FGL_J1229.0+0202_daily_bin850.fits
.....................!
real 11.83
user 11.49
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/709568/ft1_filtered_4FGL_J1229.0+0202_daily_bin850.fits evtable="EVENTS" scfile=/scratch/kocevski/709568/ft2_4FGL_J1229.0+0202_daily_bin850.fits sctable="SC_DATA" expcube=/scratch/kocevski/709568/ltcube_459648001_459907201_4FGL_J1229.0+0202_daily_bin850.fits outfile=/scratch/kocevski/709568/expmap_459648001_459907201_4FGL_J1229.0+0202_daily_bin850.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/709568/ltcube_459648001_459907201_4FGL_J1229.0+0202_daily_bin850.fits
.....................!
real 190.51
user 184.95
sys 4.78

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/709568/ft1_filtered_4FGL_J1229.0+0202_daily_bin850.fits scfile=/scratch/kocevski/709568/ft2_4FGL_J1229.0+0202_daily_bin850.fits outfile=/scratch/kocevski/709568/cmap_459648001_459907201_4FGL_J1229.0+0202_daily_bin850.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.59
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/709568/ft1_filtered_4FGL_J1229.0+0202_daily_bin850.fits scfile=/scratch/kocevski/709568/ft2_4FGL_J1229.0+0202_daily_bin850.fits outfile=/scratch/kocevski/709568/cmap_HighResolution_459648001_459907201_4FGL_J1229.0+0202_daily_bin850.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.74
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20958E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2690       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.660       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.650       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.160       1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.369       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.8467       1.0000         .10000E-03   10000.    
    13 'norm      '    .48021E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.9450       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10310E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    85.910       1.0000         .10000E-03   10000.    
    18 'norm      '    1.5326       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.462       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.5305       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .30830E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    10.550       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.1297       1.0000         .10000E-03   10000.    
    30 'Prefactor '    69.618       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1138       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0957       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=   6675.030     FROM MIGRAD    STATUS=CONVERGED    845 CALLS     4363 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.380        .50007E-08** at limit **
   2  Prefactor     .10000E-03    47.936       -.13860E-05** at limit **
   3  Prefactor     .10813E-03    7.7593       -.21303E-05** at limit **
   4  Prefactor     .10000E-03    32.599       -.65592E-06** at limit **
   5  Prefactor     1.2632        17.896        .42229E-05    .31017E-04
   6  Prefactor     13.655        15.802        .17803E-05    .33982E-04
   7  Prefactor     15.654        48.010        .38152E-06    .27254E-04
   8  Prefactor     .10000E-03    29.431        .28096E-06** at limit **
   9  Prefactor     .10000E-03    18.962       -.27425E-06** at limit **
  10  Prefactor     14.155        20.222       -.26580E-06   -.61906E-04
  11  Prefactor     34.364        30.101       -.32094E-06   -.16449E-04
  12  Prefactor     6.8313        12.130       -.60627E-06   -.21612E-03
  13  norm          .10000E-03    1.5394        .28391E-06** at limit **
  14  norm          2.9459        3.8881        .12409E-05    .15663E-03
  15  Prefactor     .10000E-03    10.700       -.93672E-07** at limit **
  16  norm          .10001E-03    70.382        .19915E-05** at limit **
  17  Prefactor     85.918        100.97        .18017E-06    .10526E-04
  18  norm          1.5327        .63680       -.20545E-07   -.64789E-03
  19  Prefactor     15.459        10.749        .13434E-06   -.24506E-05
  20  Prefactor     .10000E-03    10.536       -.25907E-07** at limit **
  21  Prefactor     .10000E-03    3.8161       -.68160E-07** at limit **
  22  norm          .10000E-03    .90297        .94691E-07** at limit **
  23  Prefactor     7.5303        9.5254        .34944E-05    .20153E-03
  24  Prefactor     .10000E-03    28.739        .54748E-06** at limit **
  25  Prefactor     .10000E-03    12.426        .14419E-07** at limit **
  26  Prefactor     .10000E-03    256.17       -.16914E-07** at limit **
  27  norm          10.547        25.507       -.10721E-05   -.98007E-05
  28  Prefactor     .10000E-03    10.302        .25680E-06** at limit **
  29  norm          1.1296        .29306       -.13672E-08   -.37755E-03
  30  Prefactor     69.594        65.930       -.26102E-06   -.90776E-04
  31  Normalizat    1.1139        .21866       -.17999E-05   -.41131E-04
  32  Prefactor     1.0958        .16670       -.52534E-06   -.13023E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000108129
  Prefactor  = 0.000100001
  Prefactor  = 1.26323
  Prefactor  = 13.6552
  Prefactor  = 15.6536
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.1545
  Prefactor  = 34.3643
  Prefactor  = 6.83131
  norm       = 0.0001
  norm       = 2.94594
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 85.9176
  norm       = 1.53271
  Prefactor  = 15.4592
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.53029
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.5467
  Prefactor  = 0.0001
  norm       = 1.12963
  Prefactor  = 69.5939
  Normalizat = 1.11391
  Prefactor  = 1.09575
 **********
 **   18 **HESSE 
 **********

 FCN=   6675.030     FROM HESSE     STATUS=OK           669 CALLS     5032 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    47.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10813E-03    8.6777        .69788E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    32.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2632        18.084        .39511E-03   -1.5483    
   6  Prefactor     13.655        15.802        .54188E-03   -1.4969    
   7  Prefactor     15.654        48.000        .10124E-03   -1.4916    
   8  Prefactor     .10000E-03    29.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.155        20.171        .10644E-03   -1.4955    
  11  Prefactor     34.364        30.053        .68355E-04   -1.4535    
  12  Prefactor     6.8313        10.574        .15333E-03   -1.5185    
  13  norm          .10000E-03    7.9722        .16901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.9459        3.8447        .16348E-03   -1.5365    
  15  Prefactor     .10000E-03    10.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    70.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     85.918        100.93        .21671E-03   -1.3851    
  18  norm          1.5327        .62593        .37867E-04   -1.5460    
  19  Prefactor     15.459        10.752        .10186E-03   -1.4921    
  20  Prefactor     .10000E-03    10.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.8253        .15585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.8790        .14598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.5303        9.5077        .73071E-03   -1.5159    
  24  Prefactor     .10000E-03    28.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    266.62        .42756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          10.547        25.492        .12335E-03   -1.5058    
  28  Prefactor     .10000E-03    10.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.1296        .29288        .21479E-04   -1.5495    
  30  Prefactor     69.594        65.947        .24055E-03   -1.4038    
  31  Normalizat    1.1139        .25752        .30614E-03   -.89306    
  32  Prefactor     1.0958        .19809        .24642E-03   -.89602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87932e-09
Minuit parameter uncertainties:
  1  1.06205e-05
  2  0.000948877
  3  0.0167998
  4  0.000347911
  5  9.56222
  6  15.8065
  7  48.1186
  8  0.000165944
  9  9.18633e-05
  10  20.1807
  11  30.0665
  12  10.5769
  13  7.78056e-05
  14  3.84498
  15  3.70009e-05
  16  0.00151695
  17  101.13
  18  0.625928
  19  10.7535
  20  1.44615e-05
  21  8.66625e-06
  22  9.62994e-06
  23  9.50956
  24  0.000279829
  25  1.00463e-05
  26  3.22738e-05
  27  25.5183
  28  6.04786e-05
  29  0.292884
  30  66.0161
  31  0.257809
  32  0.198221
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.533e+00  6.259e-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:  1.096e+00  1.982e-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.114e+00  2.578e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.98
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.68e-07 +/- 6.87e-08
Energy Flux (Fixed Index): 4.00e-05 +/- 1.63e-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) = 6674.87352153
delta logL = 0.156271290968

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6674.86438493
delta logL = 0.165407883496

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5002       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3616       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1419       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0789       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=   6674.864     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      207 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5002        .63103        .86122E-02   -.49200E-03
   2  alpha         2.3616        .39439        .29541       -.32939E-04
   3  Normalizat    1.1419        .20842        .68467E-01    .14269E-04
   4  Prefactor     1.0789        .16557        .56102E-01    .70302E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.50022
  alpha      = 2.36163
  Normalizat = 1.1419
  Prefactor  = 1.07887
 **********
 **   18 **HESSE 
 **********

 FCN=   6674.864     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5002        .61627        .38263E-04   -1.5463    
   2  alpha         2.3616        .42273        .12013E-01   -.55375E-01
   3  Normalizat    1.1419        .25052        .30292E-03   -.88418    
   4  Prefactor     1.0789        .19760        .24806E-03   -.90145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85492e-11
Minuit parameter uncertainties:
  1  0.616268
  2  0.424772
  3  0.250783
  4  0.197733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/709568': 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) = 6674.86438492
delta logL = 0.16540789449

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.500e+00  6.163e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.362e+00  4.248e-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:  1.079e+00  1.977e-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.142e+00  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.25
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.36 +/- 0.42
Photon Flux (Free Index): 1.47e-07 +/- 7.03e-08
Energy Flux (Free Index): 4.19e-05 +/- 1.73e-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/709568/cmap_HighResolution_459648001_459907201_4FGL_J1229.0+0202_daily_bin850.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.68e-07', energy_flux2='4.19e-05', photon_flux_error='6.87e-08', dlogl='1.65e-01', energy_flux='4.00e-05', photon_flux2='1.47e-07', job_status='DONE', time_completed='2021-09-05 19:16:24.321800', photon_index_error2='0.42', photon_index2='2.36', ts='13.98', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.73e-05', EG='1.11', time_epoch_completed='1630894584.32', return_code='0', job_id='709568', GAL2='1.08', EG2='1.14', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='7.03e-08', ts2='14.25', photon_index='2.61' WHERE bin_id='850' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:16:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 709568: <4FGL_J1229.0+0202_daily_bin850> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin850 187.268 2.0454 459648001 459907201 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 :                                   827.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            961 sec.

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

