/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 9 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 = 7484
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1229.0+0202_daily_bin161
RA = 187.268, Dec = 2.0454
tmin = 281059201, tmax = 281318401
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='705143', job_status='RUN', time_executed='2021-09-05 18:46:12.489796', time_epoch_executed='1630892772.49' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='161'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705143

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705143/ft1_4FGL_J1229.0+0202_daily_bin161.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705143/ft2_4FGL_J1229.0+0202_daily_bin161.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705143/ft1_4FGL_J1229.0+0202_daily_bin161.fits outfile=/scratch/kocevski/705143/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin161.fits ra=187.268 dec=2.0454 rad=12.0 tmin=281059201.0 tmax=281318401.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 4.46
user 4.23
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705143/ft1_filtered_4FGL_J1229.0+0202_daily_bin161.fits evtable="EVENTS" scfile=/scratch/kocevski/705143/ft2_4FGL_J1229.0+0202_daily_bin161.fits sctable="SC_DATA" expcube=/scratch/kocevski/705143/ltcube_281059201_281318401_4FGL_J1229.0+0202_daily_bin161.fits outfile=/scratch/kocevski/705143/expmap_281059201_281318401_4FGL_J1229.0+0202_daily_bin161.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/705143/ltcube_281059201_281318401_4FGL_J1229.0+0202_daily_bin161.fits
.....................!
real 190.14
user 185.06
sys 4.20

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/705143/ft1_filtered_4FGL_J1229.0+0202_daily_bin161.fits scfile=/scratch/kocevski/705143/ft2_4FGL_J1229.0+0202_daily_bin161.fits outfile=/scratch/kocevski/705143/cmap_281059201_281318401_4FGL_J1229.0+0202_daily_bin161.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/705143/ft1_filtered_4FGL_J1229.0+0202_daily_bin161.fits scfile=/scratch/kocevski/705143/ft2_4FGL_J1229.0+0202_daily_bin161.fits outfile=/scratch/kocevski/705143/cmap_HighResolution_281059201_281318401_4FGL_J1229.0+0202_daily_bin161.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10691E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.729       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4131       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    62.429       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    71.179       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .86330E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4057       1.0000         .10000E-03   10000.    
    13 'norm      '    1.3914       1.0000         .10000E-03   10000.    
    14 'norm      '    16.023       1.0000         .10000E-03   10000.    
    15 'Prefactor '    67.707       1.0000         .10000E-03   10000.    
    16 'norm      '    .10368E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10688E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.567       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.991       1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.305       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.7399       1.0000         .10000E-03   10000.    
    22 'norm      '    9.8786       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9132       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.3254       1.0000         .10000E-03   10000.    
    27 'norm      '    8.4458       1.0000         .10000E-03   10000.    
    28 'Prefactor '    17.714       1.0000         .10000E-03   10000.    
    29 'norm      '    2.3446       1.0000         .10000E-03   10000.    
    30 'Prefactor '    219.24       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .54635       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2368       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=   6733.815     FROM MIGRAD    STATUS=CONVERGED    852 CALLS     4408 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.099       -.97004E-06** at limit **
   2  Prefactor     .10000E-03    130.06        .15738E-04** at limit **
   3  Prefactor     17.738        14.760       -.61315E-06   -.25450E-04
   4  Prefactor     .10000E-03    35.088       -.20101E-05** at limit **
   5  Prefactor     3.4098        10.120       -.31749E-05    .44528E-04
   6  Prefactor     .10000E-03    15.353        .31443E-07** at limit **
   7  Prefactor     62.424        77.033       -.22876E-05   -.62870E-05
   8  Prefactor     .10000E-03    17.081        .18500E-06** at limit **
   9  Prefactor     71.210        45.329        .68608E-07    .44396E-04
  10  Prefactor     .11774E-03    30.095        .72498E-08** at limit **
  11  Prefactor     .10000E-03    66.998        .43397E-05** at limit **
  12  Prefactor     1.2855        178.44       -.29290E-04    .76159E-04
  13  norm          1.4036        4.1470        .41501E-05    .20278E-03
  14  norm          16.028        5.9681       -.16263E-07    .44378E-04
  15  Prefactor     67.714        46.424       -.73324E-06    .98672E-05
  16  norm          .10000E-03    69.861        .28673E-05** at limit **
  17  Prefactor     .10000E-03    103.24       -.30615E-04** at limit **
  18  norm          10.569        1.3874        .11939E-06    .86358E-03
  19  Prefactor     18.992        11.895       -.18944E-07    .46002E-05
  20  Prefactor     28.305        27.897        .28897E-06    .45950E-05
  21  Prefactor     6.7393        11.345        .14794E-06    .43366E-06
  22  norm          9.8785        2.6599       -.81173E-07    .25925E-04
  23  Prefactor     1.9161        7.9254       -.25407E-06   -.10930E-03
  24  Prefactor     .10000E-03    28.677        .31131E-05** at limit **
  25  Prefactor     .10000E-03    26.637       -.54793E-06** at limit **
  26  Prefactor     5.3404        82.867       -.19143E-05   -.37428E-05
  27  norm          8.4373        19.708       -.13838E-06   -.34150E-05
  28  Prefactor     17.717        16.363       -.59467E-06   -.61872E-05
  29  norm          2.3446        .44167        .64376E-07   -.31612E-03
  30  Prefactor     219.21        109.30       -.79225E-05   -.29404E-04
  31  Normalizat    .54616        .28699        .34991E-05    .17380E-03
  32  Prefactor     1.2369        .20721       -.52594E-06    .24861E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.7383
  Prefactor  = 0.0001
  Prefactor  = 3.40982
  Prefactor  = 0.0001
  Prefactor  = 62.4242
  Prefactor  = 0.0001
  Prefactor  = 71.2097
  Prefactor  = 0.000117741
  Prefactor  = 0.0001
  Prefactor  = 1.28553
  norm       = 1.40357
  norm       = 16.0279
  Prefactor  = 67.7141
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 10.5689
  Prefactor  = 18.9917
  Prefactor  = 28.3046
  Prefactor  = 6.73927
  norm       = 9.87849
  Prefactor  = 1.91606
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.3404
  norm       = 8.43728
  Prefactor  = 17.7172
  norm       = 2.3446
  Prefactor  = 219.211
  Normalizat = 0.54616
  Prefactor  = 1.23694
 **********
 **   18 **HESSE 
 **********

 FCN=   6733.815     FROM HESSE     STATUS=OK           665 CALLS     5073 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    130.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.738        14.742        .95121E-04   -1.4865    
   4  Prefactor     .10000E-03    35.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.4098        10.096        .21897E-03   -1.5339    
   6  Prefactor     .10000E-03    15.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     62.424        77.017        .50786E-04   -1.4126    
   8  Prefactor     .10000E-03    17.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     71.210        45.232        .47582E-04   -1.4018    
  10  Prefactor     .11774E-03    32.235        .11290       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    69.653        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.2855        197.76        .36567E-03   -1.5481    
  13  norm          1.4036        4.2863        .16853E-03   -1.5471    
  14  norm          16.028        5.9729        .10006E-03   -1.4907    
  15  Prefactor     67.714        46.356        .48779E-04   -1.4060    
  16  norm          .10000E-03    70.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    102.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.569        1.3886        .29874E-04   -1.5058    
  19  Prefactor     18.992        11.892        .91907E-04   -1.4836    
  20  Prefactor     28.305        27.884        .75303E-04   -1.4643    
  21  Prefactor     6.7393        11.329        .15456E-03   -1.5189    
  22  norm          9.8785        2.6555        .65852E-04   -1.5079    
  23  Prefactor     1.9161        7.8213        .30052E-03   -1.5431    
  24  Prefactor     .10000E-03    28.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    26.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     5.3404        81.880        .17416E-03   -1.5246    
  27  norm          8.4373        19.671        .13794E-03   -1.5127    
  28  Prefactor     17.717        16.270        .95160E-04   -1.4866    
  29  norm          2.3446        .44216        .22224E-04   -1.5402    
  30  Prefactor     219.21        109.27        .13658E-03   -1.2736    
  31  Normalizat    .54616        .30845        .47611E-03   -1.1032    
  32  Prefactor     1.2369        .23085        .26448E-03   -.85202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13913e-09
Minuit parameter uncertainties:
  1  8.36565e-05
  2  0.000437355
  3  14.7446
  4  3.35349e-05
  5  10.1014
  6  4.07246e-06
  7  77.1401
  8  3.38021e-07
  9  45.2541
  10  0.0478535
  11  8.06115e-05
  12  31.9959
  13  4.28728
  14  5.97311
  15  46.3809
  16  7.22778e-05
  17  0.000746807
  18  1.38864
  19  11.8934
  20  27.8971
  21  11.3321
  22  2.65557
  23  7.74391
  24  3.59337e-05
  25  1.45494e-05
  26  41.8903
  27  19.6863
  28  16.2737
  29  0.442165
  30  109.376
  31  0.309424
  32  0.231043
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.057e+01  1.389e+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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.237e+00  2.310e-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:  5.462e-01  3.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 196.91
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.16e-06 +/- 1.52e-07
Energy Flux (Fixed Index): 2.76e-04 +/- 3.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) = 6733.80792149
delta logL = 0.00721023453298

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6733.80674497
delta logL = 0.00838675383147

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.534       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6354       1.0000          .0000       5.0000    
     3 'Normalizat'    .53828       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2420       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=   6733.807     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      196 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.534        1.3771        .30861E-02   -.15213E-02
   2  alpha         2.6354        .16809        .10851       -.24161E-04
   3  Normalizat    .53828        .26063        .10808        .95788E-04
   4  Prefactor     1.2420        .20689        .59719E-01   -.30028E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.5344
  alpha      = 2.63536
  Normalizat = 0.538277
  Prefactor  = 1.24197
 **********
 **   18 **HESSE 
 **********

 FCN=   6733.807     FROM HESSE     STATUS=OK            25 CALLS      221 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.534        1.2882        .29772E-04   -1.5059    
   2  alpha         2.6354        .15868        .47729E-03    .54169E-01
   3  Normalizat    .53828        .28829        .47925E-03   -1.1067    
   4  Prefactor     1.2420        .22959        .26405E-03   -.85049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24086e-10
Minuit parameter uncertainties:
  1  1.28822
  2  0.158785
  3  0.289094
  4  0.229774
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705143': 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) = 6733.80674497
delta logL = 0.00838675453633

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.053e+01  1.288e+00  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.635e+00  1.588e-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.242e+00  2.298e-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:  5.383e-01  2.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 202.56
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.64 +/- 0.16
Photon Flux (Free Index): 1.17e-06 +/- 1.53e-07
Energy Flux (Free Index): 2.75e-04 +/- 3.47e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/705143/cmap_HighResolution_281059201_281318401_4FGL_J1229.0+0202_daily_bin161.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.16e-06', energy_flux2='2.75e-04', photon_flux_error='1.52e-07', dlogl='8.39e-03', energy_flux='2.76e-04', photon_flux2='1.17e-06', job_status='DONE', time_completed='2021-09-05 19:01:08.091291', photon_index_error2='0.16', photon_index2='2.64', ts='196.91', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='3.47e-05', EG='0.55', time_epoch_completed='1630893668.09', return_code='0', job_id='705143', GAL2='1.24', EG2='0.54', return_code2='0', energy_flux_error='3.63e-05', photon_flux_error2='1.53e-07', ts2='202.56', photon_index='2.61' WHERE bin_id='161' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:01:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 705143: <4FGL_J1229.0+0202_daily_bin161> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin161 187.268 2.0454 281059201 281318401 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 :                                   891.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            914 sec.

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

