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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin614
RA = 187.268, Dec = 2.0454
tmin = 398476801, tmax = 398736001
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='706837', job_status='RUN', time_executed='2021-09-05 18:52:49.858171', time_epoch_executed='1630893169.86' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='614'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706837

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706837/ft1_4FGL_J1229.0+0202_daily_bin614.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706837/ft2_4FGL_J1229.0+0202_daily_bin614.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706837/ft1_4FGL_J1229.0+0202_daily_bin614.fits outfile=/scratch/kocevski/706837/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin614.fits ra=187.268 dec=2.0454 rad=12.0 tmin=398476801.0 tmax=398736001.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 7.38
user 7.11
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/706837/ft1_filtered_4FGL_J1229.0+0202_daily_bin614.fits" evtable="EVENTS" scfile=/scratch/kocevski/706837/ft2_4FGL_J1229.0+0202_daily_bin614.fits sctable="SC_DATA" outfile=/scratch/kocevski/706837/ltcube_398476801_398736001_4FGL_J1229.0+0202_daily_bin614.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/706837/ft2_4FGL_J1229.0+0202_daily_bin614.fits
.....................!
real 11.78
user 11.39
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706837/ft1_filtered_4FGL_J1229.0+0202_daily_bin614.fits evtable="EVENTS" scfile=/scratch/kocevski/706837/ft2_4FGL_J1229.0+0202_daily_bin614.fits sctable="SC_DATA" expcube=/scratch/kocevski/706837/ltcube_398476801_398736001_4FGL_J1229.0+0202_daily_bin614.fits outfile=/scratch/kocevski/706837/expmap_398476801_398736001_4FGL_J1229.0+0202_daily_bin614.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/706837/ltcube_398476801_398736001_4FGL_J1229.0+0202_daily_bin614.fits
.....................!
real 191.49
user 185.69
sys 5.13

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/706837/ft1_filtered_4FGL_J1229.0+0202_daily_bin614.fits scfile=/scratch/kocevski/706837/ft2_4FGL_J1229.0+0202_daily_bin614.fits outfile=/scratch/kocevski/706837/cmap_398476801_398736001_4FGL_J1229.0+0202_daily_bin614.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.15

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

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    121.92       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0182       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.9991       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.4602       1.0000         .10000E-03   10000.    
    14 'norm      '    4.3711       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .39965       1.0000         .10000E-03   10000.    
    16 'norm      '    4.3454       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1805       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12961E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    68.632       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.6580       1.0000         .10000E-03   10000.    
    22 'norm      '    3.3985       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    29.791       1.0000         .10000E-03   10000.    
    28 'Prefactor '    17.345       1.0000         .10000E-03   10000.    
    29 'norm      '    1.0285       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3639       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .98033       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5566.905     FROM MIGRAD    STATUS=CONVERGED   1589 CALLS     5108 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7697        .18142E-02** at limit **
   2  Prefactor     122.09        149.79        .18225E-03    .24952E-05
   3  Prefactor     .10000E-03    15.805        .18142E-02** at limit **
   4  Prefactor     .10000E-03    19.287        .18142E-02** at limit **
   5  Prefactor     1.0179        5.9606        .93934E-01    .40098E-03
   6  Prefactor     9.9997        12.976        .12672E-03    .15655E-03
   7  Prefactor     .10000E-03    77.288        .18142E-02** at limit **
   8  Prefactor     .10000E-03    12.601        .18142E-02** at limit **
   9  Prefactor     .10000E-03    22.122        .18142E-02** at limit **
  10  Prefactor     .10000E-03    34.016        .18142E-02** at limit **
  11  Prefactor     .10000E-03    14.516        .18142E-02** at limit **
  12  Prefactor     .10000E-03    4.6434        .15675E-02** at limit **
  13  norm          1.4601        1.5008        .89436E-04    .31143E-03
  14  norm          4.3678        5.6651        .70339E-03    .13577E-04
  15  Prefactor     .58596E-01    62.756        .14973        .49027E-04
  16  norm          4.5767        304.02        .19323E-03   -.15179E-04
  17  Prefactor     .10000E-03    64.613        .18142E-02** at limit **
  18  norm          1.1800        .68463        .41232E-04   -.22499E-03
  19  Prefactor     .10002E-03    131.44        .54382E-02** at limit **
  20  Prefactor     68.627        55.946        .48451E-04   -.10465E-04
  21  Prefactor     6.6555        8.1519        .15551E-03    .18927E-03
  22  norm          3.3987        2.3557        .89314E-04    .31899E-03
  23  Prefactor     .10000E-03    4.6511        .15630E-02** at limit **
  24  Prefactor     .10000E-03    35.732        .18142E-02** at limit **
  25  Prefactor     .10000E-03    16.530        .18142E-02** at limit **
  26  Prefactor     .10000E-03    109.75        .18142E-02** at limit **
  27  norm          29.791        26.105        .73405E-04    .95900E-04
  28  Prefactor     17.344        22.908        .96169E-04   -.69274E-04
  29  norm          1.0285        .30182        .21226E-04    .18184E-02
  30  Prefactor     .10000E-03    28.679        .18142E-02** at limit **
  31  Normalizat    1.3636        .32352        .28875E-03    .28143E-03
  32  Prefactor     .98079        .23646        .26686E-03    .29816E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 122.086
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 1.0179
  Prefactor  = 9.99972
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.46007
  norm       = 4.36776
  Prefactor  = 0.058596
  norm       = 4.57666
  Prefactor  = 0.0001
  norm       = 1.18003
  Prefactor  = 0.000100022
  Prefactor  = 68.6272
  Prefactor  = 6.6555
  norm       = 3.39872
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 29.7907
  Prefactor  = 17.3441
  norm       = 1.02851
  Prefactor  = 0.0001
  Normalizat = 1.36356
  Prefactor  = 0.980789
 **********
 **   18 **HESSE 
 **********

 FCN=   5566.905     FROM HESSE     STATUS=OK           641 CALLS     5749 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.7700        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     122.09        149.77        .72899E-05   -1.3494    
   3  Prefactor     .10000E-03    15.810        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.287        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0179        19.913        .34188E-02   -1.5506    
   6  Prefactor     9.9997        12.977        .50688E-05   -1.5075    
   7  Prefactor     .10000E-03    77.289        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.601        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.123        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    34.034        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.516        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.6438        .31350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4601        1.5008        .35774E-05   -1.5466    
  14  norm          4.3678        5.6600        .28136E-04   -1.5290    
  15  Prefactor     .58596E-01    62.999        .14932       -1.5660    
  16  norm          4.5767        303.56        .77292E-05   -1.5280    
  17  Prefactor     .10000E-03    64.613        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1800        .68437        .16493E-05   -1.5491    
  19  Prefactor     .10002E-03    133.28        .21753E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     68.627        55.496        .96902E-05   -1.4049    
  21  Prefactor     6.6555        8.1522        .62206E-05   -1.5192    
  22  norm          3.3987        2.3552        .35726E-05   -1.5339    
  23  Prefactor     .10000E-03    4.6525        .31261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    35.735        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    16.530        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    109.76        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          29.791        26.104        .14681E-04   -1.4616    
  28  Prefactor     17.344        22.900        .38468E-05   -1.4875    
  29  norm          1.0285        .30175        .84904E-06   -1.5505    
  30  Prefactor     .10000E-03    28.680        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.3636        .32181        .57750E-04   -.81688    
  32  Prefactor     .98079        .23674        .53373E-04   -.93373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51543e-10
Minuit parameter uncertainties:
  1  7.0416e-05
  2  150.242
  3  0.000368998
  4  5.96184e-05
  5  9.0073
  6  12.9807
  7  1.091e-05
  8  2.92837e-05
  9  7.75313e-06
  10  0.000261605
  11  1.53971e-05
  12  2.22387e-05
  13  1.50081
  14  5.66069
  15  3.84341
  16  74.9456
  17  2.41594e-05
  18  0.684375
  19  0.0034512
  20  55.5379
  21  8.15354
  22  2.35526
  23  5.07491e-05
  24  0.000245847
  25  4.88582e-05
  26  2.96673e-05
  27  26.1141
  28  22.9114
  29  0.301754
  30  0.000115214
  31  0.322288
  32  0.236987
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.180e+00  6.844e-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:  9.808e-01  2.370e-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.364e+00  3.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.41
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.30e-07 +/- 7.51e-08
Energy Flux (Fixed Index): 3.08e-05 +/- 1.79e-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) = 5566.85395823
delta logL = 0.0508718583706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5566.85108173
delta logL = 0.0537483575417

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1536       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8095       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3476       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99095       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=   5566.851     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      199 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1537        14.872        .89166E-02    .20418E-02
   2  alpha         2.8094        3.0035        .38514        .74144E-04
   3  Normalizat    1.3476        .15576        .65590E-01   -.12150E-04
   4  Prefactor     .99099        .15629        .46154E-01    .16118E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.1537
  alpha      = 2.80944
  Normalizat = 1.34756
  Prefactor  = 0.990986
 **********
 **   18 **HESSE 
 **********

 FCN=   5566.851     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1537        .62956        .40015E-04   -1.5493    
   2  alpha         2.8094        .61251        .15655E-01    .12409    
   3  Normalizat    1.3476        .29439        .29015E-03   -.82158    
   4  Prefactor     .99099        .23258        .26569E-03   -.93031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68944e-10
Minuit parameter uncertainties:
  1  0.629561
  2  0.618912
  3  0.294754
  4  0.23282
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706837': 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) = 5566.85108169
delta logL = 0.0537484024544

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.154e+00  6.296e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.809e+00  6.189e-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:  9.910e-01  2.328e-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.348e+00  2.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.58
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.81 +/- 0.62
Photon Flux (Free Index): 1.41e-07 +/- 7.85e-08
Energy Flux (Free Index): 3.00e-05 +/- 1.61e-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/706837/cmap_HighResolution_398476801_398736001_4FGL_J1229.0+0202_daily_bin614.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.30e-07', energy_flux2='3.00e-05', photon_flux_error='7.51e-08', dlogl='5.37e-02', energy_flux='3.08e-05', photon_flux2='1.41e-07', job_status='DONE', time_completed='2021-09-05 19:06:46.609969', photon_index_error2='0.62', photon_index2='2.81', ts='5.41', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.61e-05', EG='1.36', time_epoch_completed='1630894006.61', return_code='0', job_id='706837', GAL2='0.99', EG2='1.35', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='7.85e-08', ts2='5.58', photon_index='2.61' WHERE bin_id='614' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:06:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 706837: <4FGL_J1229.0+0202_daily_bin614> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin614 187.268 2.0454 398476801 398736001 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 :                                   831.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            960 sec.

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

