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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin740
RA = 187.268, Dec = 2.0454
tmin = 431136001, tmax = 431395201
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='708381', job_status='RUN', time_executed='2021-09-05 18:56:18.464995', time_epoch_executed='1630893378.47' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708381

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708381/ft1_4FGL_J1229.0+0202_daily_bin740.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708381/ft2_4FGL_J1229.0+0202_daily_bin740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708381/ft1_4FGL_J1229.0+0202_daily_bin740.fits outfile=/scratch/kocevski/708381/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin740.fits ra=187.268 dec=2.0454 rad=12.0 tmin=431136001.0 tmax=431395201.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 5.56
user 5.30
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708381/ft1_filtered_4FGL_J1229.0+0202_daily_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/708381/ft2_4FGL_J1229.0+0202_daily_bin740.fits sctable="SC_DATA" expcube=/scratch/kocevski/708381/ltcube_431136001_431395201_4FGL_J1229.0+0202_daily_bin740.fits outfile=/scratch/kocevski/708381/expmap_431136001_431395201_4FGL_J1229.0+0202_daily_bin740.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/708381/ltcube_431136001_431395201_4FGL_J1229.0+0202_daily_bin740.fits
.....................!
real 189.53
user 184.81
sys 4.03

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/708381/ft1_filtered_4FGL_J1229.0+0202_daily_bin740.fits scfile=/scratch/kocevski/708381/ft2_4FGL_J1229.0+0202_daily_bin740.fits outfile=/scratch/kocevski/708381/cmap_431136001_431395201_4FGL_J1229.0+0202_daily_bin740.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.56
user 0.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6801       1.0000         .10000E-03   10000.    
     2 'Prefactor '    73.508       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12662E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.8102       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.758       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10533E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.375       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8321       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15792E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8942       1.0000         .10000E-03   10000.    
    14 'norm      '    4.0980       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    102.24       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.0010       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.577       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .85197       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .58239E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    52.844       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10558E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    14.374       1.0000         .10000E-03   10000.    
    28 'Prefactor '    18.510       1.0000         .10000E-03   10000.    
    29 'norm      '    .53421       1.0000         .10000E-03   10000.    
    30 'Prefactor '    56.186       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3756       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .72030       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=   5426.170     FROM MIGRAD    STATUS=CONVERGED    826 CALLS     4312 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6812        18.957        .29131E-05    .29139E-03
   2  Prefactor     73.521        118.67       -.65439E-06   -.48384E-05
   3  Prefactor     .10000E-03    6.2945        .11913E-06** at limit **
   4  Prefactor     .10000E-03    81.604        .92817E-06** at limit **
   5  Prefactor     8.8120        9.4282       -.17298E-06   -.32105E-04
   6  Prefactor     24.753        15.233        .28841E-06    .15675E-03
   7  Prefactor     .10000E-03    54.503       -.50653E-06** at limit **
   8  Prefactor     .10000E-03    39.350        .53049E-06** at limit **
   9  Prefactor     40.389        45.893       -.11048E-05   -.23850E-04
  10  Prefactor     1.8225        99.481        .41987E-06    .14701E-04
  11  Prefactor     .10000E-03    70.876       -.26260E-05** at limit **
  12  Prefactor     .10000E-03    6.7723       -.91495E-07** at limit **
  13  norm          1.8948        1.8950       -.49742E-07   -.71023E-04
  14  norm          4.0847        6.3846        .20424E-05    .81513E-03
  15  Prefactor     .10000E-03    11.105       -.19255E-07** at limit **
  16  norm          102.31        87.543       -.24398E-05    .30116E-04
  17  Prefactor     .10000E-03    61.385       -.36823E-06** at limit **
  18  norm          4.0018        1.0140       -.20154E-06   -.11551E-02
  19  Prefactor     12.577        9.4463       -.51643E-07   -.32442E-04
  20  Prefactor     .10000E-03    9.7798       -.46024E-07** at limit **
  21  Prefactor     .10000E-03    11.722       -.23055E-06** at limit **
  22  norm          .85201        1.1751        .69025E-08    .51859E-04
  23  Prefactor     .10876E-03    14.393       -.35844E-05** at limit **
  24  Prefactor     .10000E-03    77.175        .78721E-06** at limit **
  25  Prefactor     52.832        55.216       -.46693E-06    .30494E-04
  26  Prefactor     .10000E-03    78.764        .69211E-06** at limit **
  27  norm          14.369        24.446       -.15648E-06    .14450E-03
  28  Prefactor     18.505        17.982        .50846E-06    .13300E-03
  29  norm          .53430        .29583        .17074E-07    .13704E-02
  30  Prefactor     56.181        56.371       -.16295E-06    .11730E-04
  31  Normalizat    1.3753        .25825        .16432E-05    .28263E-03
  32  Prefactor     .72043        .18434       -.18610E-05    .19017E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.6812
  Prefactor  = 73.5212
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.81195
  Prefactor  = 24.7528
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 40.3891
  Prefactor  = 1.82253
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 1.89482
  norm       = 4.08467
  Prefactor  = 0.0001
  norm       = 102.314
  Prefactor  = 0.0001
  norm       = 4.00182
  Prefactor  = 12.5773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.852008
  Prefactor  = 0.000108758
  Prefactor  = 0.000100001
  Prefactor  = 52.8322
  Prefactor  = 0.0001
  norm       = 14.3687
  Prefactor  = 18.5046
  norm       = 0.534296
  Prefactor  = 56.1808
  Normalizat = 1.37534
  Prefactor  = 0.720432
 **********
 **   18 **HESSE 
 **********

 FCN=   5426.170     FROM HESSE     STATUS=OK           665 CALLS     4977 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6812        18.958        .64400E-03   -1.5086    
   2  Prefactor     73.521        119.13        .46828E-04   -1.3991    
   3  Prefactor     .10000E-03    6.3334        .18047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    81.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.8120        9.4007        .13504E-03   -1.5114    
   6  Prefactor     24.753        15.280        .80506E-04   -1.4713    
   7  Prefactor     .10000E-03    54.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    39.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.389        45.982        .63084E-04   -1.4436    
  10  Prefactor     1.8225        99.025        .30831E-03   -1.5438    
  11  Prefactor     .10000E-03    72.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.8021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8948        1.8925        .97498E-04   -1.5433    
  14  norm          4.0847        6.5319        .17281E-03   -1.5304    
  15  Prefactor     .10000E-03    11.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          102.31        88.055        .19882E-03   -1.3681    
  17  Prefactor     .10000E-03    61.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.0018        1.0218        .32071E-04   -1.5308    
  19  Prefactor     12.577        9.4468        .11295E-03   -1.4999    
  20  Prefactor     .10000E-03    9.7819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .85201        1.1747        .50529E-04   -1.5523    
  23  Prefactor     .10876E-03    14.123        .58428E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    77.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     52.832        55.606        .55174E-04   -1.4253    
  26  Prefactor     .10000E-03    78.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          14.369        24.522        .10564E-03   -1.4950    
  28  Prefactor     18.505        18.054        .93093E-04   -1.4847    
  29  norm          .53430        .29411        .26466E-04   -1.5562    
  30  Prefactor     56.181        56.387        .53516E-04   -1.4207    
  31  Normalizat    1.3753        .30563        .27577E-03   -.81345    
  32  Prefactor     .72043        .21428        .28686E-03   -1.0273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.15379e-09
Minuit parameter uncertainties:
  1  18.9693
  2  119.515
  3  9.98126e-06
  4  0.000540589
  5  9.40232
  6  15.2821
  7  0.000378674
  8  0.00017886
  9  46.0223
  10  26.9145
  11  0.00100346
  12  5.47786e-06
  13  1.89253
  14  6.53306
  15  3.9966e-06
  16  88.1675
  17  0.000257919
  18  1.0218
  19  9.44795
  20  7.90906e-06
  21  9.12965e-06
  22  1.17472
  23  0.0222475
  24  0.000575784
  25  55.6603
  26  0.000388179
  27  24.5394
  28  18.0588
  29  0.294107
  30  56.4405
  31  0.30604
  32  0.214522
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  4.002e+00  1.022e+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:  7.204e-01  2.145e-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.375e+00  3.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 33.94
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 4.40e-07 +/- 1.12e-07
Energy Flux (Fixed Index): 1.05e-04 +/- 2.67e-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) = 5426.17025332
delta logL = 4.79403570353e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5426.17025264
delta logL = 5.47048148292e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0019       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6138       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3756       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72025       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=   5426.170     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      199 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0023        1.3052        .50400E-02    .14866E-03
   2  alpha         2.6137        .44510        .20847       -.15497E-04
   3  Normalizat    1.3756        .23650        .62345E-01    .48484E-05
   4  Prefactor     .72025        .18271        .64850E-01    .17437E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.0023
  alpha      = 2.6137
  Normalizat = 1.37562
  Prefactor  = 0.720254
 **********
 **   18 **HESSE 
 **********

 FCN=   5426.170     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0023        .95403        .32077E-04   -1.5308    
   2  alpha         2.6137        .34419        .88419E-02    .45494E-01
   3  Normalizat    1.3756        .28642        .27575E-03   -.81336    
   4  Prefactor     .72025        .21605        .28690E-03   -1.0274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25079e-13
Minuit parameter uncertainties:
  1  0.954038
  2  0.345289
  3  0.286755
  4  0.216303
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708381': 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) = 5426.17025249
delta logL = 5.61527849641e-06

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  4.002e+00  9.540e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.614e+00  3.453e-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:  7.203e-01  2.163e-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.376e+00  2.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 34.68
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.61 +/- 0.35
Photon Flux (Free Index): 4.39e-07 +/- 1.19e-07
Energy Flux (Free Index): 1.05e-04 +/- 2.60e-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/708381/cmap_HighResolution_431136001_431395201_4FGL_J1229.0+0202_daily_bin740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.40e-07', energy_flux2='1.05e-04', photon_flux_error='1.12e-07', dlogl='5.62e-06', energy_flux='1.05e-04', photon_flux2='4.39e-07', job_status='DONE', time_completed='2021-09-05 19:09:02.541149', photon_index_error2='0.35', photon_index2='2.61', ts='33.94', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='2.60e-05', EG='1.38', time_epoch_completed='1630894142.54', return_code='0', job_id='708381', GAL2='0.72', EG2='1.38', return_code2='0', energy_flux_error='2.67e-05', photon_flux_error2='1.19e-07', ts2='34.68', photon_index='2.61' WHERE bin_id='740' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:09:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 708381: <4FGL_J1229.0+0202_daily_bin740> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin740 187.268 2.0454 431136001 431395201 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 :                                   760.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            787 sec.

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

