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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin748
RA = 187.268, Dec = 2.0454
tmin = 433209601, tmax = 433468801
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='708394', job_status='RUN', time_executed='2021-09-05 18:58:42.434546', time_epoch_executed='1630893522.43' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708394

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708394/ft1_4FGL_J1229.0+0202_daily_bin748.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708394/ft2_4FGL_J1229.0+0202_daily_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708394/ft1_4FGL_J1229.0+0202_daily_bin748.fits outfile=/scratch/kocevski/708394/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin748.fits ra=187.268 dec=2.0454 rad=12.0 tmin=433209601.0 tmax=433468801.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.63
user 4.35
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708394/ft1_filtered_4FGL_J1229.0+0202_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/708394/ft2_4FGL_J1229.0+0202_daily_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/708394/ltcube_433209601_433468801_4FGL_J1229.0+0202_daily_bin748.fits outfile=/scratch/kocevski/708394/expmap_433209601_433468801_4FGL_J1229.0+0202_daily_bin748.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/708394/ltcube_433209601_433468801_4FGL_J1229.0+0202_daily_bin748.fits
.....................!
real 140.57
user 136.63
sys 3.63

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/708394/ft1_filtered_4FGL_J1229.0+0202_daily_bin748.fits scfile=/scratch/kocevski/708394/ft2_4FGL_J1229.0+0202_daily_bin748.fits outfile=/scratch/kocevski/708394/cmap_433209601_433468801_4FGL_J1229.0+0202_daily_bin748.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.44
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708394/ft1_filtered_4FGL_J1229.0+0202_daily_bin748.fits scfile=/scratch/kocevski/708394/ft2_4FGL_J1229.0+0202_daily_bin748.fits outfile=/scratch/kocevski/708394/cmap_HighResolution_433209601_433468801_4FGL_J1229.0+0202_daily_bin748.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.44
user 0.29
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.235       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.751       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0155       1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.203       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14807E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .59900E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    143.12       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.308       1.0000         .10000E-03   10000.    
    13 'norm      '    2.7300       1.0000         .10000E-03   10000.    
    14 'norm      '    4.6371       1.0000         .10000E-03   10000.    
    15 'Prefactor '    45.543       1.0000         .10000E-03   10000.    
    16 'norm      '    10.968       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.4850       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.6115       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.240       1.0000         .10000E-03   10000.    
    22 'norm      '    5.7640       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.717       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    184.45       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    23.139       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .57450E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .80029       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.4382       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1431       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=   5782.542     FROM MIGRAD    STATUS=CONVERGED    888 CALLS     5169 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.104       -.21367E-06** at limit **
   2  Prefactor     10.664        653.95       -.47542E-04   -.79277E-04
   3  Prefactor     12.742        12.366        .55478E-06   -.29705E-04
   4  Prefactor     .10000E-03    37.707        .21381E-06** at limit **
   5  Prefactor     2.0132        10.010       -.28324E-06   -.20358E-03
   6  Prefactor     37.210        28.090        .49807E-07   -.26577E-04
   7  Prefactor     .10000E-03    45.015        .60757E-07** at limit **
   8  Prefactor     .10000E-03    188.09       -.14383E-06** at limit **
   9  Prefactor     .33538E-03    142.90        .15938E-04** at limit **
  10  Prefactor     143.12        59.895       -.38773E-06   -.17205E-03
  11  Prefactor     .10000E-03    17.094        .21380E-06** at limit **
  12  Prefactor     31.307        34.348       -.86284E-08   -.12496E-03
  13  norm          2.7333        5.9956       -.72061E-07   -.42021E-04
  14  norm          4.6359        6.3330        .87808E-06    .32298E-03
  15  Prefactor     45.555        56.282        .92048E-06    .10828E-04
  16  norm          10.980        68.575        .27786E-06    .78871E-05
  17  Prefactor     .10000E-03    66.605       -.13784E-06** at limit **
  18  norm          1.4850        .94171        .29638E-08   -.21364E-03
  19  Prefactor     6.6122        7.5380        .11532E-07    .10003E-04
  20  Prefactor     .10000E-03    10.167       -.32175E-07** at limit **
  21  Prefactor     14.245        16.646       -.10428E-06   -.29644E-05
  22  norm          5.7648        2.5475        .55166E-07    .22401E-03
  23  Prefactor     10.720        12.379       -.11194E-07   -.74175E-05
  24  Prefactor     .10000E-03    18.098       -.74844E-07** at limit **
  25  Prefactor     184.45        96.510       -.30295E-06   -.13327E-05
  26  Prefactor     .10000E-03    38.552       -.44088E-06** at limit **
  27  norm          23.142        22.234       -.14075E-06   -.67749E-05
  28  Prefactor     .10032E-03    13.115       -.26372E-05** at limit **
  29  norm          .80045        .35385        .14771E-07    .46287E-04
  30  Prefactor     .10000E-03    24.244       -.85775E-07** at limit **
  31  Normalizat    1.4382        .32895       -.45467E-05   -.34938E-03
  32  Prefactor     1.1429        .24402        .40924E-05   -.22021E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.6641
  Prefactor  = 12.7423
  Prefactor  = 0.0001
  Prefactor  = 2.01318
  Prefactor  = 37.21
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000335385
  Prefactor  = 143.124
  Prefactor  = 0.0001
  Prefactor  = 31.3066
  norm       = 2.73334
  norm       = 4.63589
  Prefactor  = 45.5547
  norm       = 10.9795
  Prefactor  = 0.0001
  norm       = 1.48498
  Prefactor  = 6.61216
  Prefactor  = 0.0001
  Prefactor  = 14.2449
  norm       = 5.76483
  Prefactor  = 10.72
  Prefactor  = 0.0001
  Prefactor  = 184.454
  Prefactor  = 0.0001
  norm       = 23.1415
  Prefactor  = 0.000100321
  norm       = 0.800447
  Prefactor  = 0.0001
  Normalizat = 1.43816
  Prefactor  = 1.14287
 **********
 **   18 **HESSE 
 **********

 FCN=   5782.542     FROM HESSE     STATUS=OK           669 CALLS     5838 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.664        716.94        .12525E-03   -1.5055    
   3  Prefactor     12.742        12.368        .11218E-03   -1.4994    
   4  Prefactor     .10000E-03    37.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.0132        9.9061        .29155E-03   -1.5424    
   6  Prefactor     37.210        28.088        .65708E-04   -1.4487    
   7  Prefactor     .10000E-03    45.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    189.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .33538E-03    63.166        .16428       -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     143.12        59.889        .33677E-04   -1.3310    
  11  Prefactor     .10000E-03    17.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     31.307        33.693        .71609E-04   -1.4588    
  13  norm          2.7333        5.8602        .20795E-03   -1.5377    
  14  norm          4.6359        6.4027        .92336E-03   -1.5277    
  15  Prefactor     45.555        56.309        .59411E-04   -1.4357    
  16  norm          10.980        68.485        .12097E-03   -1.5045    
  17  Prefactor     .10000E-03    66.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.4850        .92715        .50831E-04   -1.5464    
  19  Prefactor     6.6122        7.5386        .15607E-03   -1.5194    
  20  Prefactor     .10000E-03    10.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.245        16.613        .10614E-03   -1.4953    
  22  norm          5.7648        2.5445        .37987E-03   -1.5228    
  23  Prefactor     10.720        12.357        .12239E-03   -1.5053    
  24  Prefactor     .10000E-03    18.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     184.45        97.239        .29728E-04   -1.2983    
  26  Prefactor     .10000E-03    38.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          23.142        22.231        .83271E-04   -1.4745    
  28  Prefactor     .10032E-03    92.391        .48243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .80045        .35467        .26132E-04   -1.5529    
  30  Prefactor     .10000E-03    24.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.4382        .36811        .34583E-03   -.79531    
  32  Prefactor     1.1429        .27290        .30030E-03   -.88108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.28834e-09
Minuit parameter uncertainties:
  1  7.79795e-05
  2  177.137
  3  12.3705
  4  2.39337e-05
  5  8.93362
  6  28.0982
  7  7.92272e-06
  8  0.000228237
  9  0.244129
  10  59.914
  11  1.97071e-05
  12  33.7137
  13  5.86148
  14  6.40366
  15  56.375
  16  54.9356
  17  2.87686e-05
  18  0.92716
  19  7.5397
  20  2.99976e-06
  21  16.6184
  22  2.54451
  23  12.3596
  24  1.56541e-05
  25  97.3235
  26  5.06358e-05
  27  22.2387
  28  0.0109068
  29  0.354676
  30  1.5795e-05
  31  0.368797
  32  0.273237
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.485e+00  9.272e-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.143e+00  2.732e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.438e+00  3.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.41
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.63e-07 +/- 1.02e-07
Energy Flux (Fixed Index): 3.88e-05 +/- 2.42e-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) = 5782.43111937
delta logL = 0.111303724516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5782.42594403
delta logL = 0.116479062643

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4876       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9440       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3991       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1664       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=   5782.426     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      228 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4874        19.698        .87901E-02    .72707E-03
   2  alpha         2.9436        2.7913        .42003       -.54218E-05
   3  Normalizat    1.3996        .16415        .78966E-01    .10756E-04
   4  Prefactor     1.1659        .17567        .67309E-01    .16117E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.48738
  alpha      = 2.94359
  Normalizat = 1.39958
  Prefactor  = 1.16591
 **********
 **   18 **HESSE 
 **********

 FCN=   5782.426     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4874        .85344        .48278E-04   -1.5464    
   2  alpha         2.9436        .71248        .17937E-01    .17838    
   3  Normalizat    1.3996        .35153        .34951E-03   -.80641    
   4  Prefactor     1.1659        .27163        .29776E-03   -.87387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18582e-12
Minuit parameter uncertainties:
  1  0.853452
  2  0.722832
  3  0.352144
  4  0.271959
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708394': 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) = 5782.4259426
delta logL = 0.11648049092

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.487e+00  8.535e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.944e+00  7.228e-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.166e+00  2.720e-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.400e+00  3.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.74
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.94 +/- 0.72
Photon Flux (Free Index): 1.96e-07 +/- 1.21e-07
Energy Flux (Free Index): 3.94e-05 +/- 2.17e-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/708394/cmap_HighResolution_433209601_433468801_4FGL_J1229.0+0202_daily_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.63e-07', energy_flux2='3.94e-05', photon_flux_error='1.02e-07', dlogl='1.16e-01', energy_flux='3.88e-05', photon_flux2='1.96e-07', job_status='DONE', time_completed='2021-09-05 19:09:16.192021', photon_index_error2='0.72', photon_index2='2.94', ts='4.41', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='2.17e-05', EG='1.44', time_epoch_completed='1630894156.19', return_code='0', job_id='708394', GAL2='1.17', EG2='1.40', return_code2='0', energy_flux_error='2.42e-05', photon_flux_error2='1.21e-07', ts2='4.74', photon_index='2.61' WHERE bin_id='748' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:09:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 708394: <4FGL_J1229.0+0202_daily_bin748> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin748 187.268 2.0454 433209601 433468801 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 :                                   633.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             272.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            800 sec.

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

