aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 90 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7533
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1229.0+0202_daily_bin1754
RA = 187.268, Dec = 2.0454
tmin = 693964801, tmax = 694224001
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='642030', job_status='RUN', time_executed='2023-01-01 01:08:30.446854', time_epoch_executed='1672564110.45' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642030

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642030/ft1_4FGL_J1229.0+0202_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642030/ft2_4FGL_J1229.0+0202_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642030/ft1_4FGL_J1229.0+0202_daily_bin1754.fits outfile=/scratch/kocevski/642030/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin1754.fits ra=187.268 dec=2.0454 rad=12.0 tmin=693964801.0 tmax=694224001.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 3.96
user 3.71
sys 0.23

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

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

Number of photons that the gtmktime cut: 596

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642030/ft1_filtered_4FGL_J1229.0+0202_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/642030/ft2_4FGL_J1229.0+0202_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/642030/ltcube_693964801_694224001_4FGL_J1229.0+0202_daily_bin1754.fits outfile=/scratch/kocevski/642030/expmap_693964801_694224001_4FGL_J1229.0+0202_daily_bin1754.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/642030/ltcube_693964801_694224001_4FGL_J1229.0+0202_daily_bin1754.fits
.....................!
real 193.69
user 187.15
sys 5.33

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/642030/ft1_filtered_4FGL_J1229.0+0202_daily_bin1754.fits scfile=/scratch/kocevski/642030/ft2_4FGL_J1229.0+0202_daily_bin1754.fits outfile=/scratch/kocevski/642030/cmap_693964801_694224001_4FGL_J1229.0+0202_daily_bin1754.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642030/ft1_filtered_4FGL_J1229.0+0202_daily_bin1754.fits scfile=/scratch/kocevski/642030/ft2_4FGL_J1229.0+0202_daily_bin1754.fits outfile=/scratch/kocevski/642030/cmap_HighResolution_693964801_694224001_4FGL_J1229.0+0202_daily_bin1754.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.56
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/642030/ft1_filtered_4FGL_J1229.0+0202_daily_bin1754.fits', '/scratch/kocevski/642030/ft2_4FGL_J1229.0+0202_daily_bin1754.fits', expMap='/scratch/kocevski/642030/expmap_693964801_694224001_4FGL_J1229.0+0202_daily_bin1754.fits', expCube='/scratch/kocevski/642030/ltcube_693964801_694224001_4FGL_J1229.0+0202_daily_bin1754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/642030/Model_4FGL_J1229.0+0202_daily_bin1754.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  0.000e+00  1.000e+06 ( 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 -5.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/642030/ft1_filtered_4FGL_J1229.0+0202_daily_bin1754.fits
Spacecraft file(s): /scratch/kocevski/642030/ft2_4FGL_J1229.0+0202_daily_bin1754.fits
Exposure map: /scratch/kocevski/642030/expmap_693964801_694224001_4FGL_J1229.0+0202_daily_bin1754.fits
Exposure cube: /scratch/kocevski/642030/ltcube_693964801_694224001_4FGL_J1229.0+0202_daily_bin1754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/642030/Model_4FGL_J1229.0+0202_daily_bin1754.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) = 6371.70092693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4140       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.8085       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.4697       1.0000          .0000       .10000E+07
     4 'Prefactor '    12.527       1.0000          .0000       .10000E+07
     5 'Prefactor '    .81725E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .25238E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .55913E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .10180E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    37.369       1.0000          .0000       .10000E+07
    10 'Prefactor '    .14002E-03   1.0000          .0000       .10000E+07
    11 'norm      '    1.1343       1.0000          .0000       .10000E+07
    12 'norm      '    .50474       1.0000          .0000       .10000E+07
    13 'Prefactor '    .16495E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .46164E-03   1.0000          .0000       .10000E+07
    15 'norm      '    2.4565       1.0000          .0000       .10000E+07
    16 'Prefactor '    6.0077       1.0000          .0000       .10000E+07
    17 'Prefactor '    .37836E-05   1.0000          .0000       .10000E+07
    18 'norm      '    .14827E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .92245E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .14741E-01   1.0000          .0000       .10000E+07
    21 'norm      '    20.438       1.0000          .0000       .10000E+07
    22 'Prefactor '    .99573E-04   1.0000          .0000       .10000E+07
    23 'norm      '    .25651       1.0000          .0000       .10000E+07
    24 'Prefactor '    9.1047       1.0000          .0000       .10000E+07
    25 'Normalizat'    1.1370       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2229       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6371.650     FROM MIGRAD    STATUS=CONVERGED    226 CALLS     2303 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14105E-04    726.40       -.75731E-04** at limit **
   2  Prefactor     1.8821        7.3531       -.33525E-06    .78855E-04
   3  Prefactor     1.4750        4.4653        .26572E-06    .10371E-02
   4  Prefactor     12.599        16.525       -.37102E-06   -.24618E-02
   5  Prefactor     .46629E-06    58.813        .16197E-04** at limit **
   6  Prefactor     .93264E-06    28.351       -.48537E-05** at limit **
   7  Prefactor     .60818E-06    27.907        .58064E-05** at limit **
   8  Prefactor      .0000        6.2737       -.17448E-05** at limit **
   9  Prefactor     37.433        1.4431        .29831E-08    .45073E-02
  10  Prefactor     .55511E-10    3.5819        .18838E-05** at limit **
  11  norm          1.1348        1.2033        .61088E-06   -.55819E-02
  12  norm          .56168        6.6501        .18066E-05   -.34142E-04
  13  Prefactor     .59569E-06    72.152       -.12189E-04** at limit **
  14  norm          .22204E-09    21.199       -.22622E-05** at limit **
  15  norm          2.4553        .72152       -.84157E-07   -.12854E-02
  16  Prefactor     6.0179        8.4064        .43055E-07    .20228E-02
  17  Prefactor     .55511E-10    6.6504       -.66549E-06** at limit **
  18  norm          .49960E-09    1.2170       -.28059E-06** at limit **
  19  Prefactor      .0000        16.484        .42586E-05** at limit **
  20  Prefactor     .21357E-04    37.347        .63652E-06** at limit **
  21  norm          20.654        12.216       -.12033E-05   -.90119E-01
  22  Prefactor     .27756E-09    3.0304        .18812E-05** at limit **
  23  norm          .25288        .19873        .33808E-06    .20649E-01
  24  Prefactor     15.402        60.120       -.43819E-05    .14624E-01
  25  Normalizat    1.1357        .25535       -.50806E-04    .13833E-03
  26  Prefactor     1.2220        .20337        .32471E-04    .10961E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.41047e-05
  Prefactor  = 1.88209
  Prefactor  = 1.47499
  Prefactor  = 12.5987
  Prefactor  = 4.66294e-07
  Prefactor  = 9.32643e-07
  Prefactor  = 6.0818e-07
  Prefactor  = 0
  Prefactor  = 37.4329
  Prefactor  = 5.55112e-11
  norm       = 1.13478
  norm       = 0.56168
  Prefactor  = 5.9569e-07
  norm       = 2.22045e-10
  norm       = 2.45535
  Prefactor  = 6.01786
  Prefactor  = 5.55112e-11
  norm       = 4.996e-10
  Prefactor  = 0
  Prefactor  = 2.13568e-05
  norm       = 20.6541
  Prefactor  = 2.77556e-10
  norm       = 0.252876
  Prefactor  = 15.4022
  Normalizat = 1.13566
  Prefactor  = 1.222
 **********
 **   18 **HESSE 
 **********

 FCN=   6371.650     FROM HESSE     STATUS=OK           508 CALLS     2811 TOTAL
                     EDM=   .43E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14105E-04    739.28        .65858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.8821        7.3774        .77670E-03   -1.5681    
   3  Prefactor     1.4750        4.5185        .88619E-03   -1.5684    
   4  Prefactor     12.599        16.504        .28276E-03   -1.5637    
   5  Prefactor     .46629E-06    60.242        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .93264E-06    30.628        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .60818E-06    29.268        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        6.2779        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     37.433        33.907        .16360E-03   -1.5586    
  10  Prefactor     .55511E-10    3.5756        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1348        1.1907        .10944E-02   -1.5687    
  12  norm          .56168        7.7599        .78234E-03   -1.5693    
  13  Prefactor     .59569E-06    84.669        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .22204E-09    21.270        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.4553        .73925        .65231E-03   -1.5677    
  16  Prefactor     6.0179        8.4196        .40942E-03   -1.5659    
  17  Prefactor     .55511E-10    6.6369        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .49960E-09    1.2036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        16.505        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .21357E-04    116.26        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          20.654        28.796        .22127E-03   -1.5617    
  22  Prefactor     .27756E-09    3.0297        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .25288        .20450        .67608E-03   -1.5698    
  24  Prefactor     15.402        73.662        .33191E-03   -1.5629    
  25  Normalizat    1.1357        .21607        .66693E-01   -.88615    
  26  Prefactor     1.2220        .17181        .53760E-01   -.85657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27086e-06
Minuit parameter uncertainties:
  1  0.204253
  2  7.37748
  3  4.51851
  4  16.5042
  5  0.0106005
  6  0.0106894
  7  0.00843805
  8  1.66159e-05
  9  33.9072
  10  3.2005e-05
  11  1.19075
  12  4.17545
  13  0.0142038
  14  0.000141918
  15  0.739249
  16  8.41958
  17  3.64866e-05
  18  4.90539e-05
  19  2.50919e-06
  20  0.0996593
  21  28.7965
  22  6.06258e-05
  23  0.204502
  24  67.3678
  25  0.216236
  26  0.171891
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  2.455e+00  7.392e-01  0.000e+00  1.000e+06 ( 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 -5.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.222e+00  1.719e-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.136e+00  2.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.06
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 2.70e-07 +/- 8.11e-08
Energy Flux (Fixed Index): 6.41e-05 +/- 1.93e-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) = 6369.78357914
delta logL = 1.86637268558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6369.77851185
delta logL = 1.87143997275

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0355       1.0000          .0000       .10000E+07
     2 'alpha     '    3.3962       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0162       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2941       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=   6369.779     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      207 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0355        6.7463        .60083E-03    .11836E-01
   2  alpha         3.3962        4.1950        .23943        .66610E-04
   3  Normalizat    1.0162        .13181        .69807E-01    .95842E-05
   4  Prefactor     1.2941        .12729        .52470E-01   -.42735E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.03548
  alpha      = 3.39615
  Normalizat = 1.01618
  Prefactor  = 1.29408
 **********
 **   18 **HESSE 
 **********

 FCN=   6369.779     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0355        .69845        .26641E-05   -1.5679    
   2  alpha         3.3962        .45308        .10557E-02    .36662    
   3  Normalizat    1.0162        .25532        .30884E-03   -.92490    
   4  Prefactor     1.2941        .20765        .23198E-03   -.83483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22079e-11
Minuit parameter uncertainties:
  1  0.698455
  2  0.455978
  3  0.255627
  4  0.207779
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642030': 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) = 6369.77851185
delta logL = 1.87143997288

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  2.035e+00  6.985e-01  0.000e+00  1.000e+06 ( 1.000e-10)
336        alpha:  3.396e+00  4.560e-01  0.000e+00  5.000e+00 ( 1.000e+00)
337         beta:  9.652e-02  0.000e+00 -5.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.294e+00  2.078e-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.016e+00  2.556e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 29.82
Ra Dec: 187.268 2.045
Photon Index (Free Index): 3.40 +/- 0.46
Photon Flux (Free Index): 3.61e-07 +/- 9.64e-08
Energy Flux (Free Index): 6.20e-05 +/- 1.59e-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/642030/cmap_HighResolution_693964801_694224001_4FGL_J1229.0+0202_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.70e-07', energy_flux2='6.20e-05', photon_flux_error='8.11e-08', dlogl='1.87e+00', energy_flux='6.41e-05', photon_flux2='3.61e-07', job_status='DONE', time_completed='2023-01-01 01:19:10.907903', photon_index_error2='0.46', photon_index2='3.40', ts='25.06', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='1.59e-05', EG='1.14', time_epoch_completed='1672564750.91', return_code='0', job_id='642030', GAL2='1.29', EG2='1.02', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='9.64e-08', ts2='29.82', photon_index='2.61' WHERE bin_id='1754' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:19:10 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 642030: <4FGL_J1229.0+0202_daily_bin1754> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin1754> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jan  1 01:05:21 2023
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 01:06:51 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 01:06:51 2023
Terminated at Sun Jan  1 01:19:11 2023
Results reported at Sun Jan  1 01:19:11 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin1754 187.268 2.0454 693964801 694224001 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 :                                   641.63 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            830 sec.

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

