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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin215
RA = 187.268, Dec = 2.0454
tmin = 295056001, tmax = 295315201
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='705208', job_status='RUN', time_executed='2021-09-05 18:49:15.839435', time_epoch_executed='1630892955.84' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705208

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705208/ft1_4FGL_J1229.0+0202_daily_bin215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705208/ft2_4FGL_J1229.0+0202_daily_bin215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705208/ft1_4FGL_J1229.0+0202_daily_bin215.fits outfile=/scratch/kocevski/705208/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin215.fits ra=187.268 dec=2.0454 rad=12.0 tmin=295056001.0 tmax=295315201.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.00
user 2.35
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/705208/ft1_filtered_4FGL_J1229.0+0202_daily_bin215.fits" evtable="EVENTS" scfile=/scratch/kocevski/705208/ft2_4FGL_J1229.0+0202_daily_bin215.fits sctable="SC_DATA" outfile=/scratch/kocevski/705208/ltcube_295056001_295315201_4FGL_J1229.0+0202_daily_bin215.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/705208/ft2_4FGL_J1229.0+0202_daily_bin215.fits
.....................!
real 11.96
user 11.54
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705208/ft1_filtered_4FGL_J1229.0+0202_daily_bin215.fits evtable="EVENTS" scfile=/scratch/kocevski/705208/ft2_4FGL_J1229.0+0202_daily_bin215.fits sctable="SC_DATA" expcube=/scratch/kocevski/705208/ltcube_295056001_295315201_4FGL_J1229.0+0202_daily_bin215.fits outfile=/scratch/kocevski/705208/expmap_295056001_295315201_4FGL_J1229.0+0202_daily_bin215.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/705208/ltcube_295056001_295315201_4FGL_J1229.0+0202_daily_bin215.fits
.....................!
real 190.23
user 185.32
sys 4.55

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/705208/ft1_filtered_4FGL_J1229.0+0202_daily_bin215.fits scfile=/scratch/kocevski/705208/ft2_4FGL_J1229.0+0202_daily_bin215.fits outfile=/scratch/kocevski/705208/cmap_295056001_295315201_4FGL_J1229.0+0202_daily_bin215.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/705208/ft1_filtered_4FGL_J1229.0+0202_daily_bin215.fits scfile=/scratch/kocevski/705208/ft2_4FGL_J1229.0+0202_daily_bin215.fits outfile=/scratch/kocevski/705208/cmap_HighResolution_295056001_295315201_4FGL_J1229.0+0202_daily_bin215.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.474       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .76230       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    53.924       1.0000         .10000E-03   10000.    
     8 'Prefactor '    55.551       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.8747       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    19.910       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.2235       1.0000         .10000E-03   10000.    
    18 'norm      '    3.9139       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.875       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.3206       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.8168       1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.382       1.0000         .10000E-03   10000.    
    25 'Prefactor '    53.926       1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.650       1.0000         .10000E-03   10000.    
    27 'norm      '    10.753       1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.235       1.0000         .10000E-03   10000.    
    29 'norm      '    .44816       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .75499       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0964       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=   5477.112     FROM MIGRAD    STATUS=CONVERGED    818 CALLS     4344 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8111        .11852E-05** at limit **
   2  Prefactor     .10000E-03    55.480        .73465E-06** at limit **
   3  Prefactor     28.476        14.856       -.28079E-06    .40014E-05
   4  Prefactor     .10000E-03    25.819       -.14700E-05** at limit **
   5  Prefactor     .76968        5.9537       -.10256E-05    .84442E-05
   6  Prefactor     .10000E-03    19.760       -.18145E-05** at limit **
   7  Prefactor     53.928        65.277        .45760E-05    .95131E-06
   8  Prefactor     55.550        38.235       -.39260E-06    .16737E-04
   9  Prefactor     .10000E-03    27.869        .55626E-05** at limit **
  10  Prefactor     .10000E-03    13.808        .48606E-05** at limit **
  11  Prefactor     9.8735        27.071        .14794E-05   -.43245E-05
  12  Prefactor     .10000E-03    13.233        .21358E-05** at limit **
  13  norm          .10000E-03    .88617        .14051E-06** at limit **
  14  norm          .10000E-03    4.1418        .68044E-06** at limit **
  15  Prefactor     .10000E-03    12.942       -.50623E-05** at limit **
  16  norm          19.903        37.305       -.80267E-05    .18449E-05
  17  Prefactor     5.1619        335.46       -.24376E-03    .13264E-04
  18  norm          3.9141        .85044        .13661E-06   -.69372E-03
  19  Prefactor     .10000E-03    5.6009        .49245E-07** at limit **
  20  Prefactor     26.875        33.017       -.79702E-07   -.94981E-06
  21  Prefactor     .10000E-03    7.6146       -.13586E-05** at limit **
  22  norm          1.3206        1.0173        .16879E-06    .30807E-03
  23  Prefactor     6.8171        8.6057        .74699E-07   -.94672E-04
  24  Prefactor     25.382        32.344       -.42698E-07    .41998E-06
  25  Prefactor     53.921        56.471       -.62249E-05    .13335E-04
  26  Prefactor     13.672        66.171        .47632E-04    .13161E-04
  27  norm          10.752        22.049       -.16402E-05   -.35442E-03
  28  Prefactor     11.234        15.775       -.79684E-05   -.99748E-04
  29  norm          .44820        .28865        .11626E-06   -.90925E-03
  30  Prefactor     .10000E-03    25.567       -.21339E-05** at limit **
  31  Normalizat    .75481        .22558       -.16000E-05    .11557E-03
  32  Prefactor     1.0965        .17332        .22897E-05   -.36464E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.4759
  Prefactor  = 0.0001
  Prefactor  = 0.769683
  Prefactor  = 0.0001
  Prefactor  = 53.928
  Prefactor  = 55.5505
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.87347
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 19.9032
  Prefactor  = 5.16191
  norm       = 3.91411
  Prefactor  = 0.0001
  Prefactor  = 26.8746
  Prefactor  = 0.0001
  norm       = 1.32055
  Prefactor  = 6.81706
  Prefactor  = 25.3824
  Prefactor  = 53.9207
  Prefactor  = 13.6717
  norm       = 10.7523
  Prefactor  = 11.2342
  norm       = 0.4482
  Prefactor  = 0.0001
  Normalizat = 0.754807
  Prefactor  = 1.09654
 **********
 **   18 **HESSE 
 **********

 FCN=   5477.112     FROM HESSE     STATUS=OK           663 CALLS     5007 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.8133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    55.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.476        14.880        .75079E-04   -1.4640    
   4  Prefactor     .10000E-03    25.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .76968        28.994        .33538E-02   -1.5533    
   6  Prefactor     .10000E-03    20.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     53.928        65.293        .27311E-03   -1.4238    
   8  Prefactor     55.550        38.226        .53820E-04   -1.4216    
   9  Prefactor     .10000E-03    27.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.8735        26.999        .12752E-03   -1.5079    
  12  Prefactor     .10000E-03    13.581        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .89485        .68011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.2680        .29166E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          19.903        37.409        .89762E-04   -1.4815    
  17  Prefactor     5.1619        337.66        .17588E-03   -1.5254    
  18  norm          3.9141        .85672        .28459E-04   -1.5312    
  19  Prefactor     .10000E-03    5.6087        .17091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     26.875        33.077        .77277E-04   -1.4671    
  21  Prefactor     .10000E-03    7.6746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.3206        1.0213        .63380E-04   -1.5478    
  23  Prefactor     6.8171        8.5864        .15367E-03   -1.5186    
  24  Prefactor     25.382        32.336        .79512E-04   -1.4700    
  25  Prefactor     53.921        56.873        .54620E-04   -1.4238    
  26  Prefactor     13.672        65.562        .10841E-03   -1.4968    
  27  norm          10.752        22.052        .61091E-03   -1.5052    
  28  Prefactor     11.234        15.719        .11952E-03   -1.5037    
  29  norm          .44820        .28539        .27056E-04   -1.5574    
  30  Prefactor     .10000E-03    25.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .75481        .25526        .32077E-03   -1.0177    
  32  Prefactor     1.0965        .19777        .22309E-03   -.89577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00334e-09
Minuit parameter uncertainties:
  1  3.77008e-07
  2  1.33105e-06
  3  14.8816
  4  2.74484e-06
  5  9.45239
  6  1.0043e-05
  7  65.3794
  8  38.2427
  9  2.31628e-05
  10  9.42325e-06
  11  27.0326
  12  4.39647e-05
  13  2.10139e-06
  14  0.000115659
  15  5.05278e-05
  16  37.4527
  17  83.9962
  18  0.856725
  19  2.396e-06
  20  33.1
  21  8.37956e-06
  22  1.02132
  23  8.58798
  24  32.3586
  25  56.9303
  26  59.9845
  27  22.0684
  28  15.7244
  29  0.285393
  30  2.80143e-06
  31  0.255661
  32  0.197905
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  3.914e+00  8.567e-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.097e+00  1.979e-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:  7.548e-01  2.557e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 48.84
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 4.30e-07 +/- 9.40e-08
Energy Flux (Fixed Index): 1.02e-04 +/- 2.24e-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) = 5475.05591465
delta logL = 2.05583720316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5475.03422569
delta logL = 2.07752616402

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1293       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2896       1.0000          .0000       5.0000    
     3 'Normalizat'    .63759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1774       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=   5475.034     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      259 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1291        .89658        .24249E-04   -.41846E-02
   2  alpha         3.2895        .37915        .76635E-03   -.14627E-03
   3  Normalizat    .63767        .24772        .34562E-03    .10904E-03
   4  Prefactor     1.1773        .20183        .21663E-03    .22340E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.12905
  alpha      = 3.28949
  Normalizat = 0.637674
  Prefactor  = 1.17732
 **********
 **   18 **HESSE 
 **********

 FCN=   5475.034     FROM HESSE     STATUS=OK            23 CALLS      282 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1291        .89444        .48498E-05   -1.5354    
   2  alpha         3.2895        .37825        .30654E-04    .32130    
   3  Normalizat    .63767        .24790        .13825E-04   -1.0641    
   4  Prefactor     1.1773        .20197        .43327E-04   -.87032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64908e-10
Minuit parameter uncertainties:
  1  0.89444
  2  0.379872
  3  0.248337
  4  0.202101
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705208': 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) = 5475.03422547
delta logL = 2.07752638374

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  3.129e+00  8.944e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  3.289e+00  3.799e-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.177e+00  2.021e-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.377e-01  2.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 54.76
Ra Dec: 187.268 2.045
Photon Index (Free Index): 3.29 +/- 0.38
Photon Flux (Free Index): 5.15e-07 +/- 1.07e-07
Energy Flux (Free Index): 9.13e-05 +/- 1.91e-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/705208/cmap_HighResolution_295056001_295315201_4FGL_J1229.0+0202_daily_bin215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.30e-07', energy_flux2='9.13e-05', photon_flux_error='9.40e-08', dlogl='2.08e+00', energy_flux='1.02e-04', photon_flux2='5.15e-07', job_status='DONE', time_completed='2021-09-05 19:01:48.564530', photon_index_error2='0.38', photon_index2='3.29', ts='48.84', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.91e-05', EG='0.75', time_epoch_completed='1630893708.56', return_code='0', job_id='705208', GAL2='1.18', EG2='0.64', return_code2='0', energy_flux_error='2.24e-05', photon_flux_error2='1.07e-07', ts2='54.76', photon_index='2.61' WHERE bin_id='215' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:01:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 705208: <4FGL_J1229.0+0202_daily_bin215> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin215 187.268 2.0454 295056001 295315201 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 :                                   746.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            947 sec.

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

