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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin582
RA = 187.268, Dec = 2.0454
tmin = 390182401, tmax = 390441601
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='706792', job_status='RUN', time_executed='2021-09-05 18:52:51.313884', time_epoch_executed='1630893171.31' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='582'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706792

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706792/ft1_4FGL_J1229.0+0202_daily_bin582.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706792/ft2_4FGL_J1229.0+0202_daily_bin582.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706792/ft1_4FGL_J1229.0+0202_daily_bin582.fits outfile=/scratch/kocevski/706792/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin582.fits ra=187.268 dec=2.0454 rad=12.0 tmin=390182401.0 tmax=390441601.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.20
user 4.00
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/706792/ft1_filtered_4FGL_J1229.0+0202_daily_bin582.fits" evtable="EVENTS" scfile=/scratch/kocevski/706792/ft2_4FGL_J1229.0+0202_daily_bin582.fits sctable="SC_DATA" outfile=/scratch/kocevski/706792/ltcube_390182401_390441601_4FGL_J1229.0+0202_daily_bin582.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/706792/ft2_4FGL_J1229.0+0202_daily_bin582.fits
.....................!
real 11.52
user 11.15
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706792/ft1_filtered_4FGL_J1229.0+0202_daily_bin582.fits evtable="EVENTS" scfile=/scratch/kocevski/706792/ft2_4FGL_J1229.0+0202_daily_bin582.fits sctable="SC_DATA" expcube=/scratch/kocevski/706792/ltcube_390182401_390441601_4FGL_J1229.0+0202_daily_bin582.fits outfile=/scratch/kocevski/706792/expmap_390182401_390441601_4FGL_J1229.0+0202_daily_bin582.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/706792/ltcube_390182401_390441601_4FGL_J1229.0+0202_daily_bin582.fits
.....................!
real 191.84
user 186.52
sys 4.94

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/706792/ft1_filtered_4FGL_J1229.0+0202_daily_bin582.fits scfile=/scratch/kocevski/706792/ft2_4FGL_J1229.0+0202_daily_bin582.fits outfile=/scratch/kocevski/706792/cmap_390182401_390441601_4FGL_J1229.0+0202_daily_bin582.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706792/ft1_filtered_4FGL_J1229.0+0202_daily_bin582.fits scfile=/scratch/kocevski/706792/ft2_4FGL_J1229.0+0202_daily_bin582.fits outfile=/scratch/kocevski/706792/cmap_HighResolution_390182401_390441601_4FGL_J1229.0+0202_daily_bin582.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=187.268 yref=2.0454 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.40
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1116       1.0000         .10000E-03   10000.    
     4 'Prefactor '    67.804       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11334E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .21644E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1740       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.9834       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6530       1.0000         .10000E-03   10000.    
    16 'norm      '    .12361E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    186.91       1.0000         .10000E-03   10000.    
    18 'norm      '    1.4519       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.0707       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.0399       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.335       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.2139       1.0000         .10000E-03   10000.    
    27 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.3745       1.0000         .10000E-03   10000.    
    30 'Prefactor '    23.314       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .60572       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2294       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=   2988.257     FROM MIGRAD    STATUS=CONVERGED    862 CALLS     4361 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.412        .28313E-07** at limit **
   2  Prefactor     .10000E-03    84.807       -.38507E-06** at limit **
   3  Prefactor     8.1149        14.288        .52189E-06   -.18568E-04
   4  Prefactor     67.819        101.57        .25061E-05   -.57370E-05
   5  Prefactor     .10000E-03    5.0757        .47184E-07** at limit **
   6  Prefactor     .10000E-03    19.739        .46893E-06** at limit **
   7  Prefactor     .10000E-03    56.629       -.13689E-05** at limit **
   8  Prefactor     .10000E-03    60.622        .15810E-05** at limit **
   9  Prefactor     .10000E-03    371.54        .16433E-04** at limit **
  10  Prefactor     2.1714        51.096        .30788E-05   -.39723E-06
  11  Prefactor     .10000E-03    19.385       -.12870E-06** at limit **
  12  Prefactor     .10000E-03    5.3470       -.13555E-07** at limit **
  13  norm          .10000E-03    1.1046        .19815E-07** at limit **
  14  norm          1.9856        7.6437        .29614E-05   -.28253E-04
  15  Prefactor     2.3240        407.81        .27252E-04   -.21080E-04
  16  norm          .10000E-03    118.35       -.30849E-05** at limit **
  17  Prefactor     188.00        289.11        .38452E-05   -.14014E-04
  18  norm          1.4514        1.3097       -.40730E-06   -.51729E-03
  19  Prefactor     6.0722        9.2394        .10780E-05   -.24384E-04
  20  Prefactor     .10000E-03    14.797       -.22487E-06** at limit **
  21  Prefactor     .10000E-03    14.126        .41281E-06** at limit **
  22  norm          4.0391        2.6850       -.27650E-06   -.20446E-03
  23  Prefactor     13.328        14.829        .79432E-06   -.13032E-04
  24  Prefactor     .10000E-03    26.674        .31638E-06** at limit **
  25  Prefactor     .10000E-03    77.341        .14630E-05** at limit **
  26  Prefactor     7.2022        60.538        .20537E-05   -.26365E-05
  27  norm          .10000E-03    18.409        .21732E-06** at limit **
  28  Prefactor     .10000E-03    5.8469        .56326E-07** at limit **
  29  norm          1.3745        .49940        .79256E-07   -.30816E-03
  30  Prefactor     23.290        79.129       -.16881E-06   -.17941E-05
  31  Normalizat    .60595        .30114       -.29727E-05   -.13430E-03
  32  Prefactor     1.2296        .24263       -.31000E-05   -.13937E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.11488
  Prefactor  = 67.8186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.17137
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.98559
  Prefactor  = 2.32399
  norm       = 0.0001
  Prefactor  = 188.004
  norm       = 1.45141
  Prefactor  = 6.07216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.03914
  Prefactor  = 13.3284
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.20223
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.37453
  Prefactor  = 23.2902
  Normalizat = 0.605951
  Prefactor  = 1.22959
 **********
 **   18 **HESSE 
 **********

 FCN=   2988.257     FROM HESSE     STATUS=OK           651 CALLS     5012 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.412        .18039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    84.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.1149        14.284        .14077E-03   -1.5138    
   4  Prefactor     67.819        101.46        .48744E-04   -1.4059    
   5  Prefactor     .10000E-03    5.0824        .12028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    56.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    60.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    384.76        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1714        51.230        .27926E-03   -1.5413    
  11  Prefactor     .10000E-03    19.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.3505        .12345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.1061        .56109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.9856        7.4976        .21596E-03   -1.5426    
  15  Prefactor     2.3240        424.78        .25027E-02   -1.5403    
  16  norm          .10000E-03    118.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     188.00        292.99        .14768E-03   -1.2957    
  18  norm          1.4514        1.2709        .43793E-04   -1.5467    
  19  Prefactor     6.0722        9.2301        .81477E-03   -1.5215    
  20  Prefactor     .10000E-03    14.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.0391        2.6759        .67577E-04   -1.5306    
  23  Prefactor     13.328        14.822        .10969E-03   -1.4978    
  24  Prefactor     .10000E-03    26.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    77.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.2022        60.633        .14934E-03   -1.5171    
  27  norm          .10000E-03    18.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.8510        .12909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.3745        .49870        .22103E-04   -1.5473    
  30  Prefactor     23.290        79.164        .82958E-04   -1.4742    
  31  Normalizat    .60595        .33296        .35209E-03   -1.0773    
  32  Prefactor     1.2296        .26817        .21282E-03   -.85425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52973e-10
Minuit parameter uncertainties:
  1  4.25736e-06
  2  4.45893e-05
  3  14.2902
  4  101.724
  5  6.53193e-06
  6  3.7522e-05
  7  6.39323e-07
  8  2.46694e-05
  9  0.0010137
  10  21.114
  11  3.31459e-05
  12  6.22096e-06
  13  1.86408e-06
  14  7.50117
  15  63.2985
  16  8.4542e-05
  17  295.311
  18  1.27095
  19  9.23229
  20  4.94547e-06
  21  5.99154e-05
  22  2.67598
  23  14.8264
  24  4.67102e-05
  25  7.24484e-05
  26  41.8517
  27  9.10498e-06
  28  7.28309e-06
  29  0.4987
  30  79.524
  31  0.334073
  32  0.268471
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.451e+00  1.271e+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.230e+00  2.685e-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:  6.060e-01  3.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.70
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.59e-07 +/- 1.39e-07
Energy Flux (Fixed Index): 3.79e-05 +/- 3.32e-05

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

Saving results to:
/scratch/kocevski/706792/likelihoodResults_390182401_390441601_4FGL_J1229.0+0202_daily_bin582.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2986.6414306
delta logL = 1.61586425692

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2986.63448969
delta logL = 1.62280516226

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .75818       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4778       1.0000          .0000       5.0000    
     3 'Normalizat'    .45441       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3246       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=   2986.634     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      267 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .75778        8.3150        .50731E-02    .10294E-02
   2  alpha         4.4787        2.7414        .43805        .48692E-06
   3  Normalizat    .45377        .19932        .90719E-01    .55280E-04
   4  Prefactor     1.3252        .13713        .46580E-01   -.34085E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.757777
  alpha      = 4.47871
  Normalizat = 0.453774
  Prefactor  = 1.32519
 **********
 **   18 **HESSE 
 **********

 FCN=   2986.634     FROM HESSE     STATUS=OK            33 CALLS      300 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .75778        1.0632        .22568E-04   -1.5534    
   2  alpha         4.4787        3.6431        .21630E-01    .91323    
   3  Normalizat    .45377        .33164        .40198E-03   -1.1461    
   4  Prefactor     1.3252        .27177        .20589E-03   -.82561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.01943e-11
Minuit parameter uncertainties:
  1  1.06324
  2  1.5838
  3  0.333096
  4  0.272057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706792': 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) = 2986.63448748
delta logL = 1.62280737643

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.325e+00  2.721e-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:  4.538e-01  3.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.61
Ra Dec: 187.268 2.045
Photon Index (Free Index): 4.48 +/- 1.58
Photon Flux (Free Index): 3.09e-07 +/- 1.61e-07
Energy Flux (Free Index): 4.37e-05 +/- 2.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/706792/cmap_HighResolution_390182401_390441601_4FGL_J1229.0+0202_daily_bin582.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.03e-05', comment='SUCCESS', photon_flux='1.59e-07', energy_flux2='4.37e-05', photon_flux_error='1.39e-07', dlogl='1.62e+00', energy_flux='3.79e-05', photon_flux2='3.09e-07', job_status='DONE', time_completed='2021-09-05 19:02:55.592805', photon_index_error2='1.58', photon_index2='4.48', ts='2.70', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='3.80e-07', energy_flux_error2='2.41e-05', EG='0.61', time_epoch_completed='1630893775.59', return_code='0', job_id='706792', GAL2='1.33', EG2='0.45', return_code2='0', energy_flux_error='3.32e-05', photon_flux_error2='1.61e-07', ts2='6.61', photon_index='2.61' WHERE bin_id='582' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:02:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 706792: <4FGL_J1229.0+0202_daily_bin582> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin582> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 18:50:44 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:50:46 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:50:46 2021
Terminated at Sun Sep  5 19:02:58 2021
Results reported at Sun Sep  5 19:02:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin582 187.268 2.0454 390182401 390441601 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 :                                   601.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            734 sec.

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

