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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin261
RA = 187.268, Dec = 2.0454
tmin = 306979201, tmax = 307238401
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='705279', job_status='RUN', time_executed='2021-09-05 18:50:01.859078', time_epoch_executed='1630893001.86' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='261'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705279

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705279/ft1_4FGL_J1229.0+0202_daily_bin261.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705279/ft2_4FGL_J1229.0+0202_daily_bin261.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705279/ft1_4FGL_J1229.0+0202_daily_bin261.fits outfile=/scratch/kocevski/705279/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin261.fits ra=187.268 dec=2.0454 rad=12.0 tmin=306979201.0 tmax=307238401.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 14.12
user 13.58
sys 0.51

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/705279/ft1_filtered_4FGL_J1229.0+0202_daily_bin261.fits" evtable="EVENTS" scfile=/scratch/kocevski/705279/ft2_4FGL_J1229.0+0202_daily_bin261.fits sctable="SC_DATA" outfile=/scratch/kocevski/705279/ltcube_306979201_307238401_4FGL_J1229.0+0202_daily_bin261.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/705279/ft2_4FGL_J1229.0+0202_daily_bin261.fits
.....................!
real 11.05
user 10.61
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705279/ft1_filtered_4FGL_J1229.0+0202_daily_bin261.fits evtable="EVENTS" scfile=/scratch/kocevski/705279/ft2_4FGL_J1229.0+0202_daily_bin261.fits sctable="SC_DATA" expcube=/scratch/kocevski/705279/ltcube_306979201_307238401_4FGL_J1229.0+0202_daily_bin261.fits outfile=/scratch/kocevski/705279/expmap_306979201_307238401_4FGL_J1229.0+0202_daily_bin261.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/705279/ltcube_306979201_307238401_4FGL_J1229.0+0202_daily_bin261.fits
.....................!
real 189.89
user 183.99
sys 5.54

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/705279/ft1_filtered_4FGL_J1229.0+0202_daily_bin261.fits scfile=/scratch/kocevski/705279/ft2_4FGL_J1229.0+0202_daily_bin261.fits outfile=/scratch/kocevski/705279/cmap_306979201_307238401_4FGL_J1229.0+0202_daily_bin261.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/705279/ft1_filtered_4FGL_J1229.0+0202_daily_bin261.fits scfile=/scratch/kocevski/705279/ft2_4FGL_J1229.0+0202_daily_bin261.fits outfile=/scratch/kocevski/705279/cmap_HighResolution_306979201_307238401_4FGL_J1229.0+0202_daily_bin261.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10806E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    655.76       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    813.44       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    126.55       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16785E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.647       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2303       1.0000         .10000E-03   10000.    
    14 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    742.02       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .20725E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    50.956       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    22.155       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10582E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .67617E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    303.83       1.0000         .10000E-03   10000.    
    27 'norm      '    .10886E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    33.316       1.0000         .10000E-03   10000.    
    29 'norm      '    12.495       1.0000         .10000E-03   10000.    
    30 'Prefactor '    510.22       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2296       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=   771.9606     FROM MIGRAD    STATUS=CONVERGED    799 CALLS     4936 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    119.44        .21486E-06** at limit **
   2  Prefactor     655.82        376.38        .20333E-06   -.20324E-04
   3  Prefactor     .10000E-03    12.150       -.14995E-07** at limit **
   4  Prefactor     813.23        1195.4       -.45696E-05   -.85728E-06
   5  Prefactor     .10000E-03    57.979        .60845E-06** at limit **
   6  Prefactor     .10000E-03    226.51       -.79017E-06** at limit **
   7  Prefactor     126.54        188.55        .27137E-06   -.17123E-04
   8  Prefactor     .10000E-03    858.44       -.26561E-05** at limit **
   9  Prefactor     .10000E-03    83.874       -.31490E-07** at limit **
  10  Prefactor     38.669        142.33        .13269E-05   -.11146E-04
  11  Prefactor     .10000E-03    85.954       -.64739E-06** at limit **
  12  Prefactor     .10000E-03    45.220       -.43876E-06** at limit **
  13  norm          1.2291        39.532        .24485E-05    .38740E-05
  14  norm          .10000E-03    32.373       -.34925E-05** at limit **
  15  Prefactor     .10000E-03    46.401       -.18552E-06** at limit **
  16  norm          741.88        320.76        .42405E-05    .12779E-03
  17  Prefactor     .10000E-03    284.09       -.20799E-06** at limit **
  18  norm          .10000E-03    5.2896       -.26961E-05** at limit **
  19  Prefactor     50.951        39.030        .37016E-06   -.65950E-04
  20  Prefactor     .10000E-03    38.368        .91548E-07** at limit **
  21  Prefactor     .10000E-03    51.319       -.99690E-07** at limit **
  22  norm          22.154        13.469        .65011E-06    .31095E-03
  23  Prefactor     .10000E-03    55.312        .31466E-06** at limit **
  24  Prefactor     .10000E-03    156.93        .40233E-06** at limit **
  25  Prefactor     .10000E-03    6149.5       -.61416E-06** at limit **
  26  Prefactor     303.55        310.12        .65615E-07   -.29474E-04
  27  norm          .10000E-03    201.23        .50675E-06** at limit **
  28  Prefactor     33.440        89.520        .11226E-06   -.20944E-04
  29  norm          12.497        13.014       -.92161E-07    .74116E-05
  30  Prefactor     511.03        5318.8        .87304E-05    .65274E-06
  31  Normalizat    .10000E-01    .32607        .11922E-04** at limit **
  32  Prefactor     1.2293        .41460       -.36812E-05   -.48377E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 655.818
  Prefactor  = 0.0001
  Prefactor  = 813.226
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 126.54
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 38.6689
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.22914
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 741.878
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 50.951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.1537
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 303.548
  norm       = 0.0001
  Prefactor  = 33.4398
  norm       = 12.4971
  Prefactor  = 511.032
  Normalizat = 0.01
  Prefactor  = 1.22926
 **********
 **   18 **HESSE 
 **********

 FCN=   771.9606     FROM HESSE     STATUS=OK           633 CALLS     5569 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    119.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     655.82        376.78        .80795E-04   -1.0528    
   3  Prefactor     .10000E-03    12.154        .94614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     813.23        1194.5        .73163E-04   -.99243    
   5  Prefactor     .10000E-03    58.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    226.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     126.54        189.01        .17892E-03   -1.3453    
   8  Prefactor     .10000E-03    858.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    83.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     38.669        142.15        .64474E-04   -1.4463    
  11  Prefactor     .10000E-03    85.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    45.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2291        39.687        .32327E-03   -1.5486    
  14  norm          .10000E-03    32.715        .15412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    46.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          741.88        332.43        .76307E-04   -1.0191    
  17  Prefactor     .10000E-03    284.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.6668        .11183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     50.951        39.274        .56181E-04   -1.4279    
  20  Prefactor     .10000E-03    38.378        .16821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    51.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          22.154        13.590        .71994E-04   -1.4766    
  23  Prefactor     .10000E-03    55.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    156.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6149.6        .20999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     303.55        310.03        .11652E-03   -1.2206    
  27  norm          .10000E-03    201.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     33.440        89.398        .69423E-04   -1.4551    
  29  norm          12.497        13.016        .99876E-04   -1.5001    
  30  Prefactor     511.03        5316.9        .90892E-04   -1.1147    
  31  Normalizat    .10000E-01    .34937        .91128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.2293        .42060        .26248E-03   -.85436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.38127e-10
Minuit parameter uncertainties:
  1  9.74271e-05
  2  378.254
  3  1.83314e-06
  4  1236.23
  5  3.87394e-05
  6  0.000437292
  7  189.922
  8  0.00411319
  9  4.16535e-05
  10  143.427
  11  2.86441e-05
  12  5.65712e-05
  13  13.9782
  14  8.78899e-05
  15  3.01556e-05
  16  333.331
  17  5.84711e-05
  18  0.000220172
  19  39.2938
  20  1.99449e-05
  21  1.78223e-06
  22  13.5916
  23  2.73305e-05
  24  5.20714e-05
  25  0.00298425
  26  311.746
  27  0.00016328
  28  89.7588
  29  13.0189
  30  2524.49
  31  1.12078e-07
  32  0.421759
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.000e-04  2.202e-04  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.229e+00  4.218e-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.000e-02  1.121e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 187.268 2.045
Photon Flux Upper Limit: 9.75e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.32e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/705279/likelihoodResults_306979201_307238401_4FGL_J1229.0+0202_daily_bin261.txt

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): 102
logL (Free Index) = 771.961288125
delta logL = -0.000687995331077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 771.960603591
delta logL = -3.46168246779e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14402E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6595       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2288       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=   771.8223     FROM MIGRAD    STATUS=CONVERGED    158 CALLS      324 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .38230        .82377        .11863E-02    .20575E-03
   2  alpha         5.0000        4.4418        .16503    ** at limit **
   3  Normalizat    .10000E-01    .31292        .91125E-02** at limit **
   4  Prefactor     1.2094        .31662        .26249E-03    .40865E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.382296
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 1.20943
 **********
 **   18 **HESSE 
 **********

 FCN=   771.8223     FROM HESSE     STATUS=OK            25 CALLS      349 TOTAL
                     EDM=   .40E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .38230        .81497        .35602E-04   -1.5584    
   2  alpha         5.0000        4.4336        .28976E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .31294        .18225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2094        .31654        .52497E-04   -.86042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0439e-13
Minuit parameter uncertainties:
  1  0.814998
  2  4.20058e-06
  3  1.18309e-07
  4  0.317039
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705279': 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) = 771.822306913
delta logL = 0.138293216366

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  3.823e-01  8.150e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  5.000e+00  4.201e-06  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.209e+00  3.170e-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.000e-02  1.183e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.268 2.045

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/705279/cmap_HighResolution_306979201_307238401_4FGL_J1229.0+0202_daily_bin261.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.32e-04', job_status='DONE', photon_flux_upper_limit='9.75e-07', time_completed='2021-09-05 18:57:40.733294', job_id='705279', GAL2='1.21', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630893460.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='1.38e-01', ts2='0.28', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='261' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:57:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 705279: <4FGL_J1229.0+0202_daily_bin261> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin261> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 18:46:08 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:46:10 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:10 2021
Terminated at Sun Sep  5 18:57:41 2021
Results reported at Sun Sep  5 18:57:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin261 187.268 2.0454 306979201 307238401 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 :                                   450.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             200.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            693 sec.

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

