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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin670
RA = 187.268, Dec = 2.0454
tmin = 412992001, tmax = 413251201
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='708273', job_status='RUN', time_executed='2021-09-05 18:58:51.891192', time_epoch_executed='1630893531.89' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='670'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708273

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708273/ft1_4FGL_J1229.0+0202_daily_bin670.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708273/ft2_4FGL_J1229.0+0202_daily_bin670.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708273/ft1_4FGL_J1229.0+0202_daily_bin670.fits outfile=/scratch/kocevski/708273/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin670.fits ra=187.268 dec=2.0454 rad=12.0 tmin=412992001.0 tmax=413251201.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.52
user 3.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708273/ft1_filtered_4FGL_J1229.0+0202_daily_bin670.fits" evtable="EVENTS" scfile=/scratch/kocevski/708273/ft2_4FGL_J1229.0+0202_daily_bin670.fits sctable="SC_DATA" outfile=/scratch/kocevski/708273/ltcube_412992001_413251201_4FGL_J1229.0+0202_daily_bin670.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/708273/ft2_4FGL_J1229.0+0202_daily_bin670.fits
.....................!
real 13.01
user 12.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708273/ft1_filtered_4FGL_J1229.0+0202_daily_bin670.fits evtable="EVENTS" scfile=/scratch/kocevski/708273/ft2_4FGL_J1229.0+0202_daily_bin670.fits sctable="SC_DATA" expcube=/scratch/kocevski/708273/ltcube_412992001_413251201_4FGL_J1229.0+0202_daily_bin670.fits outfile=/scratch/kocevski/708273/expmap_412992001_413251201_4FGL_J1229.0+0202_daily_bin670.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/708273/ltcube_412992001_413251201_4FGL_J1229.0+0202_daily_bin670.fits
.....................!
real 193.14
user 187.56
sys 5.20

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/708273/ft1_filtered_4FGL_J1229.0+0202_daily_bin670.fits scfile=/scratch/kocevski/708273/ft2_4FGL_J1229.0+0202_daily_bin670.fits outfile=/scratch/kocevski/708273/cmap_412992001_413251201_4FGL_J1229.0+0202_daily_bin670.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.39
sys 0.14

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/708273/ft1_filtered_4FGL_J1229.0+0202_daily_bin670.fits', '/scratch/kocevski/708273/ft2_4FGL_J1229.0+0202_daily_bin670.fits', expMap='/scratch/kocevski/708273/expmap_412992001_413251201_4FGL_J1229.0+0202_daily_bin670.fits', expCube='/scratch/kocevski/708273/ltcube_412992001_413251201_4FGL_J1229.0+0202_daily_bin670.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/708273/Model_4FGL_J1229.0+0202_daily_bin670.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/708273/ft1_filtered_4FGL_J1229.0+0202_daily_bin670.fits
Spacecraft file(s): /scratch/kocevski/708273/ft2_4FGL_J1229.0+0202_daily_bin670.fits
Exposure map: /scratch/kocevski/708273/expmap_412992001_413251201_4FGL_J1229.0+0202_daily_bin670.fits
Exposure cube: /scratch/kocevski/708273/ltcube_412992001_413251201_4FGL_J1229.0+0202_daily_bin670.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/708273/Model_4FGL_J1229.0+0202_daily_bin670.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 705.006030671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 697.911953714

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39973E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .26999E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.615       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2270       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.663       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3550       1.0000         .10000E-03   10000.    
     7 'Prefactor '    222.04       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.3280       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10664       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17231       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14853E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11161E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10569E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10400E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.093       1.0000         .10000E-03   10000.    
    16 'norm      '    .18825       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .92014E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    1.8409       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.575       1.0000         .10000E-03   10000.    
    20 'Prefactor '    58.398       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .36598E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    20.167       1.0000         .10000E-03   10000.    
    23 'Prefactor '    115.40       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .50330E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.5788       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .37170       1.0000         .10000E-03   10000.    
    27 'norm      '    32.169       1.0000         .10000E-03   10000.    
    28 'Prefactor '    61.884       1.0000         .10000E-03   10000.    
    29 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .11140E-01   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .17395       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .74032E-01   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=   697.8995     FROM MIGRAD    STATUS=CONVERGED    269 CALLS      623 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10083E-03    101.30        .27928E-04** at limit **
   2  Prefactor     .10047E-03    6.9234        .10724E-05** at limit **
   3  Prefactor     18.815        22.609        .75102E-05   -.14310E-03
   4  Prefactor     5.2270        1.0046         .0000         .0000    
   5  Prefactor     24.552        29.354        .23793E-05   -.36735E-02
   6  Prefactor     3.3550        1.0116         .0000         .0000    
   7  Prefactor     224.76        24.282       -.84031E-05   -.21880E-02
   8  Prefactor     9.3280        1.0014         .0000         .0000    
   9  Prefactor     .10000E-03    71.898       -.47332E-06** at limit **
  10  Prefactor     .10001E-03    110.05       -.12260E-04** at limit **
  11  Prefactor     .10000E-03    27.468        .18569E-05** at limit **
  12  Prefactor     .10000E-03    37.585        .65592E-06** at limit **
  13  norm          .10000E-03    8.9690       -.15222E-07** at limit **
  14  norm          .10000E-03    5.3689       -.83564E-06** at limit **
  15  Prefactor     25.594        19.753        .12358E-05   -.13285E-01
  16  norm          .10000E-03    65.109       -.57128E-05** at limit **
  17  Prefactor     .10003E-03    136.05       -.14955E-04** at limit **
  18  norm          1.8494        2.1792       -.70800E-06   -.17604E-04
  19  Prefactor     32.261        21.704        .66053E-05    .21475E-02
  20  Prefactor     59.757        44.003       -.28700E-05   -.11974E-01
  21  Prefactor     .10000E-03    42.408        .42773E-05** at limit **
  22  norm          20.223        7.8775        .50397E-06   -.39754E-03
  23  Prefactor     105.58        124.68        .38113E-04   -.20521E-02
  24  Prefactor     .10000E-03    89.019       -.17334E-04** at limit **
  25  Prefactor     .12677E-03    1019.5        .19484E-03** at limit **
  26  Prefactor     .10403E-03    483.90        .18522E-03** at limit **
  27  norm          53.906        215.71       -.16093E-03   -.74267E-03
  28  Prefactor     61.513        13.291        .16632E-05   -.17182E-01
  29  norm          .10000E-03    2.1486        .19924E-05** at limit **
  30  Prefactor     .10868E-03    257.05        .24673E-04** at limit **
  31  Normalizat    .17371        .43162       -.43141E-05   -.44722E-04
  32  Prefactor     .74704E-01    .35078        .30961E-04   -.49957E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100831
  Prefactor  = 0.000100466
  Prefactor  = 18.8152
  Prefactor  = 5.22701
  Prefactor  = 24.5519
  Prefactor  = 3.35499
  Prefactor  = 224.756
  Prefactor  = 9.32801
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 25.5939
  norm       = 0.0001
  Prefactor  = 0.000100027
  norm       = 1.84945
  Prefactor  = 32.2609
  Prefactor  = 59.7571
  Prefactor  = 0.0001
  norm       = 20.2235
  Prefactor  = 105.581
  Prefactor  = 0.0001
  Prefactor  = 0.000126773
  Prefactor  = 0.000104032
  norm       = 53.9062
  Prefactor  = 61.5128
  norm       = 0.0001
  Prefactor  = 0.000108676
  Normalizat = 0.173713
  Prefactor  = 0.074704
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   697.8995     FROM HESSE     STATUS=FAILED        23 CALLS      646 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10083E-03    104.12        .92210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10047E-03    124.77        .99699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.815        22.191        .23207E-02   -1.4840    
   4  Prefactor     529.26        523.98         .0000       -1.5251    
   5  Prefactor     24.552        .99796        .23793E-05   -1.4717    
   6  Prefactor     3.3550        1.0116         .0000       -1.5342    
   7  Prefactor     224.76        1.0060       -.84031E-05   -1.2698    
   8  Prefactor     9.3280        1.0014         .0000       -1.5097    
   9  Prefactor     .10000E-03    .22766       -.47332E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    .24258       -.12260E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .20571        .18569E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .26751        .65592E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .20571       -.15222E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .20571       -.83564E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.594        .99060        .12358E-05   -1.4696    
  16  norm          .10000E-03    .24621       -.57128E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10003E-03    .22435       -.14955E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8494        1.0451       -.70800E-06   -1.5436    
  19  Prefactor     32.261        .99530        .66053E-05   -1.4571    
  20  Prefactor     59.757        1.0115       -.28700E-05   -1.4160    
  21  Prefactor     .10000E-03    .21180        .42773E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          20.223        1.0017        .50397E-06   -1.4808    
  23  Prefactor     105.58        .95699        .38113E-04   -1.3649    
  24  Prefactor     .10000E-03    .23024       -.17334E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .12677E-03    .55292E-01    .19484E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10403E-03    .28811        .18522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          53.906        1.2932       -.16093E-03   -1.4238    
  28  Prefactor     61.513        .99705        .16632E-05   -1.4138    
  29  norm          .10000E-03    .20571        .19924E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10868E-03    .20605        .24673E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .17371        .43177       -.43141E-05   -1.3141    
  32  Prefactor     .74704E-01    .28140        .30961E-04   -1.3977    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.12176e-09
Minuit parameter uncertainties:
  1  0.0186379
  2  0.0152901
  3  22.201
  4  1.00465
  5  0.99796
  6  1.01156
  7  1.00596
  8  1.00144
  9  5.22794e-06
  10  0.000105097
  11  1.32501e-06
  12  1.55135e-06
  13  4.62186e-08
  14  6.42521e-07
  15  0.990596
  16  6.70257e-06
  17  0.000155824
  18  1.04512
  19  0.995296
  20  1.01154
  21  1.1197e-06
  22  1.0017
  23  0.956988
  24  7.38106e-06
  25  0.0024334
  26  0.00215566
  27  1.29325
  28  0.997046
  29  9.40239e-07
  30  0.00267417
  31  0.440576
  32  0.286668
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 697.899525234

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.849e+00  1.045e+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.470e-02  2.867e-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.737e-01  4.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.42
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 2.03e-07 +/- 1.15e-07
Energy Flux (Fixed Index): 4.83e-05 +/- 2.73e-05

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

Saving results to:
/scratch/kocevski/708273/likelihoodResults_412992001_413251201_4FGL_J1229.0+0202_daily_bin670.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): 0
logL (Free Index) = 697.874295548
delta logL = 0.0252296859726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 697.871321675
delta logL = 0.02820355885

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6880       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3408       1.0000          .0000       5.0000    
     3 'Normalizat'    .18360       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69077E-01   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=   697.8713     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      224 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6874        2.1221        .37952E-04    .25284E-02
   2  alpha         2.3410        1.0953        .10528E-02   -.39826E-04
   3  Normalizat    .18370        .42323        .41810E-03    .35144E-05
   4  Prefactor     .69054E-01    .37349        .48997E-03    .28858E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.68738
  alpha      = 2.34099
  Normalizat = 0.183703
  Prefactor  = 0.0690543
 **********
 **   18 **HESSE 
 **********

 FCN=   697.8713     FROM HESSE     STATUS=OK            23 CALLS      247 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6874        2.1233        .75903E-05   -1.5448    
   2  alpha         2.3410        1.0959        .42113E-04   -.63649E-01
   3  Normalizat    .18370        .42171        .16724E-04   -1.3063    
   4  Prefactor     .69054E-01    .37071        .19599E-04   -1.4044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37834e-09
Minuit parameter uncertainties:
  1  2.12344
  2  1.13461
  3  0.429404
  4  0.323161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708273': 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) = 697.871321522
delta logL = 0.028203712426

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.687e+00  2.123e+00  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.341e+00  1.135e+00  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:  6.905e-02  3.232e-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.837e-01  4.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.50
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.34 +/- 1.13
Photon Flux (Free Index): 1.64e-07 +/- 2.47e-07
Energy Flux (Free Index): 4.76e-05 +/- 5.40e-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/708273/cmap_HighResolution_412992001_413251201_4FGL_J1229.0+0202_daily_bin670.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.04e-04', comment='SUCCESS', photon_flux='2.03e-07', energy_flux2='4.76e-05', photon_flux_error='1.15e-07', dlogl='2.82e-02', energy_flux='4.83e-05', photon_flux2='1.64e-07', job_status='DONE', time_completed='2021-09-05 19:04:31.132739', photon_index_error2='1.13', photon_index2='2.34', ts='1.42', fit_tolerance='1e-08', GAL='0.07', photon_index_error='0.00', photon_flux_upper_limit='8.58e-07', energy_flux_error2='5.40e-05', EG='0.17', time_epoch_completed='1630893871.13', return_code='101', job_id='708273', GAL2='0.07', EG2='0.18', return_code2='0', energy_flux_error='2.73e-05', photon_flux_error2='2.47e-07', ts2='1.50', photon_index='2.61' WHERE bin_id='670' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:04:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 708273: <4FGL_J1229.0+0202_daily_bin670> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin670> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 18:55:46 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:55:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 18:55:48 2021
Terminated at Sun Sep  5 19:04:31 2021
Results reported at Sun Sep  5 19:04:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin670 187.268 2.0454 412992001 413251201 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 :                                   339.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             238.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   523 sec.
    Turnaround time :                            525 sec.

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

